473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Paint Application In Java

Hello everyone.
i am a young boy who wants to be a programmer in the future. i want to develop a paint application in java so that my parents will know that i am serious about becoming a programmer. im however finding it difficult to do such thing.can anyone help out. i will be very happy and really grateful if someone could get me the the cod for such an application. i wnt the interface or outlook of the the paint application to be very simple and such that a user can select the line color to use to draw. i only need four shapes draw. like rectangle,circle,polygon,and elipse.

i will be very greatful if someone could help.
Oct 7 '07 #1
1 1806
JosAH
11,448 Expert 8TB
Do you know how to draw a line or two on the screen? Using the 'drawComponent()' method?
If not, try that first, e.g. try to draw a diagonal cross from top left to bottom right
and from top right to bottom left.

kind regards,

Jos
Oct 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Evan Dekker | last post by:
hi all im not why this code doesn't work: ///////// import java.applet.*; import java.awt.*; public class TestApplet extends Applet { public void init() {
2
by: Sean Berry | last post by:
I have an applet, here http://www.aquaticwhirlpools.com/sean/selectMenu.html What I need is for the select menus to have some space between them so that I can have the orange/yellow images next...
4
by: Franck | last post by:
Hello, Sorry if that question has already been raised... I'm looking for the exact equivalent of Java paint(Graphics g) method in c# in order to paint a specific component and all its children...
2
by: Serge Klokov | last post by:
Hi! 1. Please, help with example "paint on form by mouse" 2. Below is my example, but it clear the line after each Refresh()... how to fix? 3. How to draw the line in Mouse_Move event? ...
0
by: Christian Lipps | last post by:
Hello, I've the following problem: There is a form having a picture box on it. The box's paint event is implementet as follow: <within the paint event> Size drawArea = pictureBox1.Size; ...
3
by: Macca | last post by:
Hi, I have been using MS paint to manipulate bitmaps by adding layers and points to existing bitmaps. I need to know where in the bitmaps i have been adding layers and points and paint tells me...
6
by: Jrsmith | last post by:
I am developing a mdi application that will act as a front end to a database. I am finding that when i show any of the mdi child forms in my application it is noticeable that the form is shown...
4
by: Sam | last post by:
Hai, I use a paintbox paint event to draw some images in a paintbox. I call the paint event by refreshing the paintbox using paintboxname.refresh() or paintboxname.update(). Problem with this...
1
by: bouncydeath | last post by:
I think my question ultimately stems from the fact that I don't fully understand classes: how they work together, when to make them, etc. So I have a class called Creature. These guys have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.