List of usage examples for javax.swing JFrame subclass-usage
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.createSoftBevelBorder(BevelBorder.RAISED, Color.red, Color.black)); add(labelTwo);
From source file Main.java
public class Main extends JFrame { public Main() { JPanel panel = new JPanel(); getContentPane().add(panel); setSize(450, 450);
From source file Main.java
public class Main extends JFrame { public Main() throws HeadlessException { setSize(300, 300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setLayout(new FlowLayout(FlowLayout.LEFT));
From source file Main.java
public class Main extends JFrame { public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JMenuBar bar = new JMenuBar(); JMenu menu = new JMenu("File"); bar.add(menu);
From source file Main.java
public class Main extends JFrame { public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JMenuBar bar = new JMenuBar(); JMenu menu = new JMenu("File"); bar.add(menu);
From source file MenuSeparator.java
public class MenuSeparator extends JFrame { public MenuSeparator() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JMenuBar bar = new JMenuBar(); JMenu menu = new JMenu("File"); bar.add(menu);
From source file MainClass.java
public class MainClass extends JFrame { MainClass(String title) { super(title); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JRadioButton rb1 = new JRadioButton("Male");
From source file CompoundBorderLineLineBorder.java
public class CompoundBorderLineLineBorder extends JFrame { public CompoundBorderLineLineBorder() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(); JLabel label;
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.createSoftBevelBorder(BevelBorder.RAISED, Color.red, Color.black));
From source file Main.java
public class Main extends JFrame { JButton qb = new JButton("quit"); JPanel p1 = new JPanel(); JMenuBar menubar = new JMenuBar(); JMenu file = new JMenu("File");