Solved

how to use swing to draw a grid

Posted on 2006-11-06
3
331 Views
Last Modified: 2010-03-31
hi, i am trying to use swing to draw
a small grid.

i have drawn a example with a paint
program:
http://www.adelu.net/spielfeld.jpg

any body have any tutorial for me
or write me some basic code?

thanx.

:)
0
Comment
Question by:Knightley
  • 2
3 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 17881544
0
 
LVL 1

Author Comment

by:Knightley
ID: 17881979
thanx, seems i do not have the objectdraw library. :(

it would be nice just to use the basic  swing components, like layout manager or so.
0
 
LVL 35

Accepted Solution

by:
girionis earned 50 total points
ID: 17882238
Yes you are right, sorry didn't notice that. Try this url: http://forum.java.sun.com/thread.jspa?threadID=763410&tstart=210 and tell us if it helps.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JUnit 4 @Before and @BeforeClass differences 3 60
Java DateChooser? 3 36
servlet doXXX methods 3 49
How to convert String matching to regex in java 4 33
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question