Panel and FlowLayout
Previous    Next    Home    Source Code    Package

  1. The problem with the last example is that the JComboBox has poor proportions because it fills the entire "East" side of the applet. This can be fixed by creating a JPanel, setting its layout to a FlowLayout, adding the JComboBox to the JPanel and "bolting" the JPanel into the "East" side of the applet.