Results 1 to 2 of 2
- 11-12-2010, 07:34 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
Drawing simple graphics in NetBeans
Hi,
I am trying to draw some simple graphics in NetBeans (6.9.1).
Say, I have a jFrame, and a jPanel inside the jFrame... the usual code as generated by a simple NetBeans project.
Now, I need to 'draw' some rectangles side-by-side (much like a checker or chess board) in jFrame.
The total number of rectangles should be modifiable (e.g. in separate textbox.. I have this in the code). Of course, when the user changes this number, the grid should update and show the correct number of rectangles in the grid.
Anyone could link to any simple tutorial or example please? Do I need to use AWT? How does Swing draw graphics?
- 11-12-2010, 10:01 AM #2
There's a NetBeans section of these forums. This one's for AWT/Swing.
Swing is built on AWT.Do I need to use AWT?
Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)How does Swing draw graphics?
Trail: 2D Graphics (The Java™ Tutorials)
db
Similar Threads
-
Simple Graphics
By Freakzoyd in forum New To JavaReplies: 6Last Post: 10-05-2010, 02:47 AM -
Simple drawing on a JPanel
By Catfish1 in forum New To JavaReplies: 2Last Post: 10-04-2010, 03:59 PM -
Drawing graphics primitives
By diegofsza in forum Java 2DReplies: 7Last Post: 09-24-2009, 11:10 PM -
New simple application using a simple database
By webbusiness23 in forum New To JavaReplies: 9Last Post: 08-03-2009, 02:55 AM -
drawing char by char with Graphics
By diggitydoggz in forum New To JavaReplies: 5Last Post: 12-27-2008, 12:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks