Solved

How to draw in Java?

Posted on 2007-03-20
7
354 Views
Last Modified: 2010-03-31
I am new to Java and I am coding a small drawing application for learning purpose.
My question is simple: how can I draw in Java. For example, I have some icons. Whenever I click one icon, if I click on the drawing area (how to define a drawing area?), then a figure represented by the icon will be put on the drawing area. I can move, scale, delete the figure. Just like any drawing program.

Thanks.

(Demo code will be appreciated)
0
Comment
Question by:tiger0516
  • 4
7 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18757348
You should start by reading the Swing tutorial:

http://java.sun.com/docs/books/tutorial/uiswing/
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 125 total points
ID: 18757353
0
 
LVL 1

Author Comment

by:tiger0516
ID: 18760980
I know the existence of this tutorial and it is not what I want here at EE. Were it what I wanted, I would not ask here in EE.

Tks anyway.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18761011
You need to understand the basics of drawing first and then come up with some code of your own so that we can help you with it. We cannot post complete working code otherwise.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18761013
Its against site rules.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
javap not working 8 60
check java version using powershell 13 182
ejb entity bean example 2 17
American Express @Work site and Java 4 33
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

820 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