Solved

how to use swing to draw a grid

Posted on 2006-11-06
3
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

729 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