Test

View previous topic View next topic Go down

Test

Post by BIT0112-Rokon on Tue Jul 27, 2010 9:22 am

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....

_________________________________________________________________


Code Explosion Blog | Code Explosion Wiki | The Rokonoid | নির্ঝরিণী
avatar
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

View user profile http://blog.codexplo.org

Back to top Go down

Re: Test

Post by BIT0129-Tabassum on Wed Jul 28, 2010 2:34 am

Whats this? You should give some description on what you are posting. I cant understand confused

_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়
avatar
BIT0129-Tabassum
Global Moderator
Global Moderator

Course(s) :
  • BIT

Blood Group : A+
Posts : 1496
Points : 2298

View user profile http://probe-tabassum.blogspot.com

Back to top Go down

Re: Test

Post by BIT0112-Rokon on Wed Jul 28, 2010 3:49 am

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/

_________________________________________________________________


Code Explosion Blog | Code Explosion Wiki | The Rokonoid | নির্ঝরিণী
avatar
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

View user profile http://blog.codexplo.org

Back to top Go down

Re: Test

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum