Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Window opens behind the open main window

 
Samba Medavarapu
Greenhorn
Posts: 6
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We are using Arbortext Editor 5.3. We are trying to open a swing window by clicking menu option. Following is the flow
menus.acl:
===========

sos.acl:
===========

SOS.java:
==========

We are able to open the Swing window but it's opening behind the Arbortext window. It would be great, if you can suggest on this issue.
Thanks,
Samba.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try calling JFrame#toFront() after the call to setVisible() or using JFrame#setAlwaysOnTop(boolean onTop)
 
Samba Medavarapu
Greenhorn
Posts: 6
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's working using toFront method. Thanks for your suggestion.
I've one more issue. As of now, we have window size 800*800. User can reduce the winodw size using mouse drag option. But we should not allow user to reduce the size of window.But user can increase the window size. Is there any settings need to be done to achieve this?

Thanks,
Samba.
 
Samba Medavarapu
Greenhorn
Posts: 6
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Able to fix the issue using sos.setMinimumSize(new Dimension(800,800));

Thanks,
Samba.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done on figuring it out yourself and thank you for sharing the solution I have granted you a cow for that !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!