Layout « JComboBox « Java Swing Q&A





1. Swing BoxLayout problem with JComboBox without using setXXXSize    stackoverflow.com

here's an SSCCE:

import java.awt.Color;
import java.awt.Dimension;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;


public class BoxLayoutTest extends JFrame {

    public BoxLayoutTest(){
        JPanel main = ...

2. JComboBox & Layout Manager Qu    coderanch.com

I have a gui that uses many combo boxes in different areas and they work fine except for one particular instance when i have added it using GridBag Layout. it is presented fine at first but when clicked the options are not seen unless the mouse is moved over the area which until then is white space. Does anyone know why ...