Solved

How to draw in Java?

Posted on 2007-03-20
7
330 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:mayankeagle
Comment Utility
You should start by reading the Swing tutorial:

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

Accepted Solution

by:
mayankeagle earned 125 total points
Comment Utility
0
 
LVL 1

Author Comment

by:tiger0516
Comment Utility
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:mayankeagle
Comment Utility
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:mayankeagle
Comment Utility
Its against site rules.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
count8 challlenge 13 84
maven java path setting 5 49
wordmultiple challenge 12 89
Checkbox and ListView in Android Layout 4 35
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now