Java Swing BoxLayout newBox(String name, String... items)

Here you can find the source of newBox(String name, String... items)

Description

new Box

License

Open Source License

Declaration

public static JComboBox<String> newBox(String name, String... items) 

Method Source Code


//package com.java2s;
import javax.swing.JComboBox;

public class Main {
    public static JComboBox<String> newBox(String name, String... items) {
        JComboBox<String> box = new JComboBox<>(items);
        box.setName(name);//w  ww  .  j ava 2  s .c o  m
        return box;
    }
}

Related

  1. createVerticalBox(Component... cs)
  2. createVerticalBoxLayout(Component... components)
  3. execLoop(JComponent editor)
  4. hbox(Component[] components, int spacing)
  5. makeVerticalBoxPanel(int margin)
  6. newBoxForComponent(Component c)
  7. show(JComponent comp, String windowName)
  8. show(JComponent component)
  9. vbox(Component c1, Component c2)