List of usage examples for javax.swing JFrame subclass-usage
From source file Main.java
public class Main extends JFrame {
Main() {
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(500, 500);
From source file Main.java
public class Main extends JFrame { public Main() { setSize(300, 300); setTitle("Window Listener"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
From source file MainClass.java
public class MainClass extends JFrame { public static void main(String[] args) { new MainClass().setVisible(true); }
From source file Main.java
public class Main extends JFrame { public Main() { this.setDefaultCloseOperation(EXIT_ON_CLOSE); String[] sList = new String[] { "Spring", "Summer", "Fall", "Winter" }; JComboBox<String> seasons = new JComboBox<>(sList);
From source file MainClass.java
public class MainClass extends JFrame { MainClass(String title) { super(title); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JButton jb = new JButton("Ok", new ImageIcon("bullet.gif"));
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.createStrokeBorder(new BasicStroke(0), Color.red));
From source file Main.java
public class Main extends JFrame { JLabel label = new JLabel("Welcome!", JLabel.CENTER); public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(new Dimension(200, 200));
From source file Main.java
public class Main extends JFrame { public Main() { JPanel bigPanel = new JPanel(new GridBagLayout()); JPanel panel_a = new JPanel(); JButton btnA = new JButton("button a"); panel_a.add(btnA);
From source file MainClass.java
public class MainClass extends JFrame { public static void main(String args[]) { String name = "Test print job"; Properties properties = new Properties(); PrintJob pj = Toolkit.getDefaultToolkit().getPrintJob(new MainClass(), name, properties);
From source file CenterTextRectangle.java
public class CenterTextRectangle extends JFrame { public static void main(String[] a) { CenterTextRectangle f = new CenterTextRectangle(); f.setSize(300, 300); f.setVisible(true);