javax.swing.JComboBox.setModel java code examples | Tabnine

GridBagConstraints.BOTH,

new

Insets(

0

,

0

,

5

,

5

),

0

,

0

));

fontListModel =

new

DefaultComboBoxModel

(

GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());

fontList =

new

JList();

glyphPageWidthCombo =

new

JComboBox

(

new

DefaultComboBoxModel

(

new

Integer[] {

new

Integer(

32

),

new

Integer(

64

),

new

Integer(

128

),

new

Integer(

256

),

new

Integer(

512

),

new

Integer(

1024

),

new

Integer(

2048

)}));

glyphCachePanel.add(glyphPageWidthCombo,

new

GridBagConstraints(

1

,

1

,

1

,

1

,

0.0

,

0.0

, GridBagConstraints.WEST,

glyphPageHeightCombo =

new

JComboBox

(

new

DefaultComboBoxModel

(

new

Integer[] {

new

Integer(

32

),

new

Integer(

64

),

new

Integer(

128

),

new

Integer(

256

),

new

Integer(

512

),

new

Integer(

1024

),

new

Integer(

2048

)}));

glyphCachePanel.add(glyphPageHeightCombo,

new

GridBagConstraints(

1

,

2

,

1

,

1

,

0.0

,

0.0

, GridBagConstraints.WEST,

glyphPageComboModel =

new

DefaultComboBoxModel

();

glyphPageCombo =

new

JComboBox

();

glyphCachePanel.add(glyphPageCombo,

new

GridBagConstraints(

1

,

0

,

1

,

1

,

0.0

,

0.0

, GridBagConstraints.WEST,

GridBagConstraints.NONE,

new

Insets(

0

,

0

,

5

,

5

),

0

,

0

));