List of usage examples for javax.swing JFrame subclass-usage
From source file Main.java
public class Main extends JFrame { JComboBox<String> comboBox; Main() { String[] items = { "Item1", "Item2" }; comboBox = new JComboBox<>(items);
From source file Main.java
public class Main extends JFrame { public Main() { JEditorPane editorPane = new JEditorPane(); editorPane.setContentType("text/HTML"); editorPane.setEditorKit(new HTMLEditorKit());
From source file CascadeDemo.java
public class CascadeDemo extends JFrame implements ActionListener { private static ImageIcon EARTH; private int m_count; private int m_tencount; private JButton m_newFrame; private JDesktopPane m_desktop;
From source file Main.java
public class Main extends JFrame { public Main() { setSize(200, 100); setDefaultCloseOperation(EXIT_ON_CLOSE);
From source file Main.java
public class Main extends JFrame { public Main(String name) { getContentPane().setLayout(new FlowLayout()); JLabel labelTwo = new JLabel("www.java2s.com"); labelTwo.setBorder(BorderFactory.createEtchedBorder());
From source file Main.java
public class Main extends JFrame { public Main() { super("Month Spinner"); setSize(200, 100); setDefaultCloseOperation(EXIT_ON_CLOSE);
From source file Main.java
public class Main extends JFrame { public Main() { super("Month Spinner"); setSize(200, 100); setDefaultCloseOperation(EXIT_ON_CLOSE);
From source file MainClass.java
public class MainClass extends JFrame { public MainClass() { Box box = new Box(BoxLayout.Y_AXIS); box.add(new JButton("Test button")); box.add(new JSlider());
From source file Main.java
public class Main extends JFrame { public Main() { getContentPane().setLayout(new FlowLayout()); JLabel labelTwo = new JLabel("www.java2s.com"); labelTwo.setBorder(BorderFactory.createEtchedBorder(Color.red, Color.black));
From source file Main.java
public class Main extends JFrame implements AdjustmentListener { JScrollBar bar = new JScrollBar(SwingConstants.HORIZONTAL, 50, 10, 0, 100); public Main() { setSize(350, 100); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);