List of usage examples for javax.swing JFrame subclass-usage
From source file Main.java
public class Main extends JFrame implements ActionListener { JTextArea f = new JTextArea("A medium sized text"); public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel all = new JPanel();
From source file Main.java
public class Main extends JFrame { public Main() throws HeadlessException { setSize(300, 300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER));
From source file Main.java
public class Main extends JFrame { public Main() { this.setSize(400, 100); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLayout(new FlowLayout(FlowLayout.CENTER)); JButton button = new JButton("Change Frame Color");
From source file MainClass.java
public class MainClass extends JFrame { MainClass() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel p = new JPanel(); p.setPreferredSize(new Dimension(300, 50)); JTextField jtf = new JTextField(20);
From source file TableRowSorterWithoutColumnClass.java
public class TableRowSorterWithoutColumnClass extends JFrame { public TableRowSorterWithoutColumnClass() { setDefaultCloseOperation(EXIT_ON_CLOSE); String[] columns = { "Item", "Price" };
From source file Main.java
public class Main extends JFrame { public Main() { this.setSize(400, 100); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLayout(new FlowLayout(FlowLayout.CENTER)); JButton button = new JButton("Change Frame Color");
From source file Main.java
public class Main extends JFrame { public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JSlider slider = new JSlider(); BoundedRangeModel model = slider.getModel(); model.addChangeListener(new ChangeListener() {
From source file Main.java
public class Main extends JFrame { public Main() { DefaultListModel<String> model = new DefaultListModel<>(); model.addElement("one"); model.addElement("two"); model.addElement("three");
From source file MainClass.java
public class MainClass extends JFrame { public MainClass() { super("Dynamic Data Test"); setSize(300, 200); setDefaultCloseOperation(EXIT_ON_CLOSE);
From source file SimpleList.java
public class SimpleList extends JFrame { protected JList list; public SimpleList() { super("Simple Swing List");