Solved

How to draw in Java?

Posted on 2007-03-20
7
366 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 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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 …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

623 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