List of usage examples for javax.swing JFrame subclass-usage
From source file MainClass.java
public class MainClass extends JFrame { public static void main(String[] a) { MainClass f = new MainClass(); f.setSize(300, 300); f.setVisible(true);
From source file MainClass.java
public class MainClass extends JFrame { public MainClass(String name) { super("Revived Beans!"); try { Object bean = Beans.instantiate(getClass().getClassLoader(), name);
From source file Main.java
public class Main extends JFrame { public static void main(String[] args) { Main stt = new Main(); stt.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); stt.setSize(250, 250);
From source file SimpleTreeTest.java
public class SimpleTreeTest extends JFrame { public static void main(String[] args) { SimpleTreeTest stt = new SimpleTreeTest(); stt.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); stt.setSize(250, 250);
From source file MediaPlayerDemo.java
public class MediaPlayerDemo extends JFrame { public static void main(String args[]) { Player player; File file = new File("yourFile");
From source file ScrollPaneDemo.java
public class ScrollPaneDemo extends JFrame { public ScrollPaneDemo() { super("JScrollPane Demo"); ImageIcon ii = new ImageIcon("largeJava2sLogo.jpg"); JScrollPane jsp = new JScrollPane(new JLabel(ii)); getContentPane().add(jsp);
From source file Main.java
public class Main extends JFrame { JProgressBar current = new JProgressBar(0, 2000); int num = 0; public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
From source file Main.java
public class Main extends JFrame { static JMenuBar exampleMenuBar = new JMenuBar(); static JMenu fileMenu = new JMenu("Help"); static JMenuItem Exit = new JMenuItem("Exit"); public static void main(String args[]) {
From source file Main.java
public class Main extends JFrame { public Main() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); getContentPane().add(new JLabel("Placeholder label")); pack(); setSize(200, 200);
From source file Main.java
public class Main extends JFrame { public Main() { setDefaultCloseOperation(EXIT_ON_CLOSE); JPanel panel = new JPanel(); panel.setPreferredSize(new Dimension(333, 666)); add(panel);