File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JLabel + GUI problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Storm Applied this week in the Other Open Source APIs forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JLabel + GUI problem" Watch "JLabel + GUI problem" New topic

JLabel + GUI problem

tony altaico

Joined: Jan 31, 2009
Posts: 23

I have a JLabel2 which shows the spanish map. The thing is I do wanna draw lines on my spanish map and save it to as an image file in my desktop . I'm able to draw lines and save my JLabel2(spanish map) as an image in my Desktop. The problem is I'm not able to see any lines that I draw before in my image file. I can see those lines when I do click draw button but I can not see them when I save my file as an image to my desktop.Please help me.This problem killed me for two can see how i converted to icon and how i save it as an image file below.Thank you for your helps from now.

I have drawn lines by using draw function as you see below and I can not see those lines without any problem..Lines disapper in the image file when I do save it..Here is the draw button..
Rob Spoor

Joined: Oct 27, 2005
Posts: 19972

Please Use Code Tags. It will make your code that much easier to read.
You can edit your post to add them.

Moving to Swing / AWT forum.

How To Ask Questions How To Answer Questions
pete stein

Joined: Feb 23, 2007
Posts: 1561
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10708

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Darryl Burke

Joined: May 03, 2008
Posts: 4883


And tested the slangword filter to breaking point on the Sun forum.

Definitely not a gentleman (nor lady)


luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: JLabel + GUI problem