List of usage examples for javax.swing JFrame subclass-usage
From source file Main.java
public class Main extends JFrame { JTable table = new JTable(); DefaultTableModel model = new DefaultTableModel(); JScrollPane scroll; String headers[] = { "col1", "col2" }; String[] data = { "AA", "BB", "CC", "DD", "EE", "FF", "GG", "HH", "II", "JJ", "KK", "LL", "MM", "NN", "OO",
From source file Main.java
public class Main extends JFrame { JComboBox combo = new JComboBox(); public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
From source file Main.java
public class Main extends JFrame { public Main() throws HeadlessException { this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); JButton button = new JButton("Close"); button.addActionListener(new ActionListener() {
From source file Main.java
public class Main extends JFrame { JTextArea textArea; public Main() { super(); this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
From source file Main.java
public class Main extends JFrame { public static void main(String[] args) { new Main().setVisible(true); } private JTextPane text = new JTextPane();
From source file MainClass.java
public class MainClass extends JFrame { JTextField field = new JTextField(); public static void main(String[] args) { MainClass st = new MainClass(); }
From source file Main.java
public class Main extends JFrame { public Main() { setDefaultCloseOperation(EXIT_ON_CLOSE); setSize(400, 400); JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
From source file Main.java
public class Main extends JFrame { private JButton buzz = new JButton("BUZZ ME!!"); public void prepareGUI() { buzz.addActionListener(new BuzzActionListener(this)); setSize(300, 200);
From source file Main.java
public class Main extends JFrame { public static void main(String[] args) { new Main(); } public Main() {
From source file Main.java
public class Main extends JFrame implements ListSelectionListener { public Main() { setLayout(new GridLayout(1, 2)); String[] numbers = { "one", "two", "three", "four", "five", "six", "seven" }; JList<String> list = new JList<>(numbers); list.setVisibleRowCount(1);