List of usage examples for javax.swing JFrame subclass-usage
From source file XORModePaintWithMouse.java
public class XORModePaintWithMouse extends JFrame { int chsX = 100, chsY = 100; public static void main(String[] a) { XORModePaintWithMouse f = new XORModePaintWithMouse(); f.setSize(300, 300);
From source file Main.java
public class Main extends JFrame { private JPanel childPanel1 = new JPanel(); private JPanel childPanel2 = new JPanel(); private JPanel childPanel3 = new JPanel(); public Main() {
From source file Main.java
public class Main extends JFrame { JPanel cardPanel = new JPanel(), jp1 = new JPanel(), jp2 = new JPanel(), buttonPanel = new JPanel(); JLabel jl1 = new JLabel("Card 1"), jl2 = new JLabel("Card 2"); JButton btn1 = new JButton("Show Card 1"), btn2 = new JButton("Show Card 2"); CardLayout cardLayout = new CardLayout();
From source file MainClass.java
public class MainClass extends JFrame { AudioClip click; public static void main(String[] args) { new MainClass(); }
From source file JPasswordFieldTest.java
public class JPasswordFieldTest extends JFrame { public static void main(String[] args) { JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
From source file JTextAreaDemo.java
public class JTextAreaDemo extends JFrame { String davidMessage = "David says, \"\u05E9\u05DC\u05D5\u05DD \u05E2\u05D5\u05DC\u05DD\" \n"; String andyMessage = "Andy also says, \"\u05E9\u05DC\u05D5\u05DD \u05E2\u05D5\u05DC\u05DD\""; public JTextAreaDemo() {
From source file Test.java
public class Test extends JFrame { public Test() { 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 { final JButton b = new JButton("Add"); int size = 10; public Main() { setSize(300, 150);
From source file MainClass.java
public class MainClass extends JFrame { private JButton button1 = new JButton("Click Me!"); public static void main(String[] args) { new MainClass(); }
From source file Main.java
public class Main extends JFrame { JComboBox jComboBox1; boolean boloComboBox = false; public Main() {