Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to draw in Java?

Posted on 2007-03-20
7
Medium Priority
?
371 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
[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
  • 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 500 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

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…
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

705 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