Java JLabel JPanel Graphics etc...
From: Jean-Philippe Martin (jpmartin_at_student.info.ucl.ac.be)
Date: 02/17/04
- Next message: kaiwing18_at_hotmail.com: "How to return GMT like HTTP/1.0 format in java"
- Previous message: George Palmer: "Re: Java Events"
- Next in thread: Jean-Philippe Martin: "Re: Java JLabel JPanel Graphics etc..."
- Reply: Jean-Philippe Martin: "Re: Java JLabel JPanel Graphics etc..."
- Reply: Tom N: "Re: Java JLabel JPanel Graphics etc..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 17 Feb 2004 16:06:32 +0100
Hi all,
It's my first post here, so you doubt I have a question :o)
I want to develop a mini graphical editor. Imagine that I have 2 JFrame, I
want to have one with a list of JToggleButton with a ImageIcon and one
called DrawingAeraWind with nothing into.
I would like to be able to draw the ImageIcon of the selected JToggleButton
in the DrawingAeraWind if I click into this window. I would like to be able
to drag and drop the drawn image in the DrawingAeraWind (just to change its
position).
For now, I'm able to do this.
I want to add a functionality to my light editor. I want to add a
JToggleButton which didn't represent a ImageIcon to add in the
DrawingAeraWind but wich represent a link between 2 drawn Images. For
exemple, if I already have drawn 2 images in the DrawingAeraWind and that I
select this new (link) JToggleButton, I want to be able to select the 2
drawn images in the DrawingAeraWind (by clicking on it) and to display a
line (graphic.drawline(image1, image2) )between these 2 images.
My problem is that my 'link' line is not visible, or is clipped, etc...
I use some JLabel to represent my drawn Image (to be able to do drag and
drop on it) and I use graphic.drawline() for the link line.
ps: excuse my english :o) I hope you have understand my problem.
- Next message: kaiwing18_at_hotmail.com: "How to return GMT like HTTP/1.0 format in java"
- Previous message: George Palmer: "Re: Java Events"
- Next in thread: Jean-Philippe Martin: "Re: Java JLabel JPanel Graphics etc..."
- Reply: Jean-Philippe Martin: "Re: Java JLabel JPanel Graphics etc..."
- Reply: Tom N: "Re: Java JLabel JPanel Graphics etc..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]