Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to get session through UI

  • Thread starter Thread starter ssnivas
  • Start date Start date
S

ssnivas

Guest
Hi,


I have written a J-Link program to regenerate the skeleton through UI. For this purpose i have created a JFrame and added buttons. When i click on the button, then the skeleton should regenerate.


But after clicking on the button the frame is not responding. I guess as i am not getting session object in actionPerformed method. Because the line


Logger.write("session in actionPerformed= "+session.GetCurrentDirectory));


is not displaying the logger message and not executing the next lines of code.


Please let me know the solution to the problem.


Thanks,


srinivas
 
Perhaps the problem is with the previous line of

Logger.write("session in actionPerformed= "+session.GetCurrentDirectory));

of ur code
smiley36.gif

 
All these unfinished threads...

i'm having same problem i guess, with JFrame and it's JButtons. Everything responds well to the ButtonListener, but the moment i use a JLink method, the JFrame freezes and does not finish. (example, Model mdl = session.getCurrentModel()).

has it something to do with the focus being on the JFrame and thus not giving the handle to ProE ?
 
The JFrame was not a good choice it seemed. The UI must in a Dialog state (thus using JDialog (with JFrame in it if desired)) If it is in state Window, then multiple threads are connected to ProE and things get frozen.
 

Part and Inventory Search

Sponsor

Back
Top