Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

put a detached Window to front
 Post subject: put a detached Window to front Post rating: 0   New post Posted: Tue 15 Jun, 2010, 09:59 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
If I create a new strategy in Java, IUserInterface supports a function
JPanel    getBottomTab(String key) 

It returns a tab by unique key which is displayses in the bottom pane and can be detached.
If I do so and detache this tab, how can I put this window durably to top?
Something like
JFrame jf = (JFrame) panel.getParent();
jf.setAlwaysOnTop(true);

does not work. Why?

Even if I open a new JFrame in JForex, this function "setAlwaysOnTop(true);" does not work. JForex creates an Applet Window, which cannot be controlled by "setAlwaysOnTop(true);". Why?


 
 Post subject: Re: put a detached Window to front Post rating: 0   New post Posted: Tue 15 Jun, 2010, 10:31 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can't.
Because other bottom tabs, such as "Orders", "Positions", etc. should be accessible to.
In your case, we recommend you to use a JDialog. Create your own dialog, where you can put all your necessary components without any limitations.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com