@PhilAnderson/

SwingTest

Java Swing

No description

fork
loading
Files
  • Main.java
  • Main.class
  • Main$1.class
  • nohup.out
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import javax.swing.*;
import java.awt.event.*;
import java.awt.geom.*;

import java.awt.*;
import java.applet.*;

public class Main {
  public static void main(String[] args) {
    // creating instance of JFrame
    JFrame f = new JFrame();
    // Line2D.Double l1 = new Line2D.Double(0, 0, 30, 40);
    // f.add(l1);
   
    f.setSize(600, 500);
    f.setLayout(null);
    // make the frame visible
    f.setVisible(true);
    // paint();
  }
  
  // public void paint (Graphics g) {
  //   Graphics2D g2 = (Graphics2D) g;
  //   g2.draw(new Line2D.Double(50, 50, 100, 100));
  // }
}