• Post Reply Bookmark Topic Watch Topic
  • New Topic

Two JFrames in one app / event handling  RSS feed

 
Wolfgang Meyer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody!

I just developed a program on a Windows 2000 machine and now tried to test it on a Linux machine. I discovered the following problem:
My main application window (a JFrame) has a help menu entry that opens another JFrame (displaying html userguide files) by creating a new process like this:


Runtime rt = Runtime.getRuntme();
rt.exec("java -classpath \"runme.jar\" suncertify.ui.HelpDialog");

The string that I pass to the exec() method is created dynamically and proved to be correct. That is, entering this on the command line opens the help window on both machines. Making this call from my application opens the help window on the Windows machine, but not on the Linux machine. I don't get any exception, everything looks just fine.

Any suggestions?
Is there another way of creating a new JFrame from the main window that has it's own event dispatch thread? I surely don't want a modal dialog from the main window block the help window...

Thanks!
 
Petr Blahos
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Wolfgang,

Have you tried without the \"s? Because, in Unix you
can have a file called "runme.jar" (including the ").

BTW there is some kind of a toolbox/api from sun for
integrating help into your application. I am sure you
can find it on google...

P.
[ September 02, 2004: Message edited by: Petr Blahos ]
 
Wolfgang Meyer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Petr!

you were right, the \"s were the problem (as one can tell, I'm not really that familiar with Unix...)!
Thank you very much for your help, that has really made my day!!

wolfGANGSTER

"I just bought a Mac to help me design the next Cray."
Seymoure Cray (1925-1996) when was informed that Apple Inc. had recently bought a Cray supercomputer to help them design the next Mac.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!