forked from javatutorials101/Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cbed16
commit 93dc880
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import java.awt.Toolkit; | ||
import javax.swing.JFrame; | ||
|
||
public class DDDTutorial extends JFrame{ | ||
static JFrame F = new DDDTutorial(); | ||
Screen ScreenObject = new Screen(); | ||
|
||
public DDDTutorial() | ||
{ | ||
add(ScreenObject); | ||
setUndecorated(true); | ||
setSize(Toolkit.getDefaultToolkit().getScreenSize()); | ||
setVisible(true); | ||
} | ||
|
||
public static void main(String[] args) | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import java.awt.Graphics; | ||
import javax.swing.JPanel; | ||
|
||
public class Screen extends JPanel{ | ||
public void paintComponent(Graphics g) | ||
{ | ||
g.fillOval(10, 10, 500, 500); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import java.awt.Toolkit; | ||
import javax.swing.JFrame; | ||
|
||
public class DDDTutorial extends JFrame{ | ||
static JFrame F = new DDDTutorial(); | ||
|
||
public DDDTutorial() | ||
{ | ||
setUndecorated(true); | ||
setSize(Toolkit.getDefaultToolkit().getScreenSize()); | ||
setVisible(true); | ||
} | ||
|
||
public static void main(String[] args) | ||
{ | ||
|
||
} | ||
} |