Test
2 posters
Page 1 of 1
Test
- Code:
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Test extends JPanel {
public void paint(Graphics g) {
for (int i = 0; i < 400; i = i + 20) {
g.drawOval(20, 20, i + 10, i + 10);
g.draw3DRect(20, 20, i + 10, i + 10, true);
}
}
public static void main(String[] args) {
JFrame frame = new JFrame();
Test test = new Test();
frame.add(test);
frame.setVisible(true);
frame.setSize(new Dimension(500, 500));
}
}
and thanks to amit to add this section....
Re: Test
This is nothing.. it was a test..
btw I requested to admin to make a section that is called something like paste bin so that we can paste some code there with some purposes. For say we everybody need a code, we know about that, so description is not so important ... we will use this section like this way...
better go through the link ... http://pastebin.com/
btw I requested to admin to make a section that is called something like paste bin so that we can paste some code there with some purposes. For say we everybody need a code, we know about that, so description is not so important ... we will use this section like this way...
better go through the link ... http://pastebin.com/
Similar topics
» Eclipse Hangs: When auto complete is used
» MCQ Test using JavaScript
» Test your reaction time
» Networking test on Monday
» A pretty simple test for you....
» MCQ Test using JavaScript
» Test your reaction time
» Networking test on Monday
» A pretty simple test for you....
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford