This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JFileChooser problem  . jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFileChooser problem  . jar" Watch "JFileChooser problem  . jar" New topic
Author

JFileChooser problem . jar

Nouf Nassri
Ranch Hand

Joined: Apr 22, 2010
Posts: 40


Hello,


I have a big problem I made a application everything is fine except when I have created. jar application crashes every time I'm worth using the keyword FileChooser to select an image


Code:


thank you
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

Define "crashes". What exactly happens? Do you get an exception? Does the user interface disappear? To make it easier to troubleshoot, run the application from the command line using "java", not "javaw". That way you still see all exception stack traces.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Nouf Nassri
Ranch Hand

Joined: Apr 22, 2010
Posts: 40
I executed the application on the command line using "java"; the appicattion execute without any problem but the picture appears when I use. jar application crashes and I know the problem
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

Nouf Nassri wrote:the picture appears

Which picture? Please TellTheDetails.

application crashes

So it simply closes down?

I know the problem

That's fine, but you're not really getting it through to the rest of us. I think you're leaving a lot of information out (unintentionally), and we cannot help you like this.
Nouf Nassri
Ranch Hand

Joined: Apr 22, 2010
Posts: 40


I'm worth when I click on a label appears FileChooser

I then selects an image to display in the label

everything goes well without any problem

but when I turned the application. jar
the traitemenent goes well except when I use and I FileChooser selects an image application crashes
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

It's about time I ask you for an SSCCE. Nothing too fancy; just the frame, the label, the file chooser, and the entire logic of showing the file chooser and handling its selection.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFileChooser problem . jar
 
Similar Threads
JFileChooser in an applet
HELP! me pls i can't open image on JLabel
retrieve picture database
how to open picture in JPanel
JFileChooser problem