Results 1 to 3 of 3
- 03-30-2010, 02:58 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 1
- Rep Power
- 0
JFrame declared as setAlwaysOnTop doesn't stay on top during slide show
Hi,
We came across a very typical difference in the behavior of JFrame and JWindow.
We are maintaining a desktop application developed in java swing with one of the functionality to capture the screen. The application is a JFrame with various buttons added to it. The JFrame is set as setAlwaysOnTop(true). This screen capture works fine for all cases expect when OpenOffice presentation is running in slideshow mode on Ubuntu 8.04.
When the slideshow for presentation is activated, the presentation is coming on top of JFrame. Even though JFrame is declared as setAlwaysOnTop, it is not coming on top of slideshow. This is preventing the user from initiating the capture. This is happening only on Ubuntu (Linux Flavor). It works fine on Windows.
When we made a minor change (i.e. changed the JFrame to JWindow), it is staying always on top even when slideshow is activated.
Please go though the below example code. When the below code is run, the JFrame stays on top till a presentation is opened and slideshow activated. When slide show is running, it goes behind the slide show. If you change the JFrame to JWindow (shown in commented line), it is staying always on top even when slideshow is activated and we don’t even have the setAlwaysOnTop() property for JWindow.
Can anybody explain how can I make my JFrame to sit on top of PPT slide show as that of JWindow or any workaround to achieve this?Java Code:import javax.swing.JFrame; import javax.swing.JWindow; public class TopJFrameTester { public static void main(String[] args) { //JWindow topContainer = new JWindow(); JFrame topContainer = new JFrame(); topContainer.setSize(300, 300); topContainer.setAlwaysOnTop(true); topContainer.setVisible(true); } }
Any help in this regard is highly appreciated.
Thanks & Regards,
Ravindra Appikatla
- 03-30-2010, 03:36 PM #2
Cross posted
JFrame declared as setAlwaysOnTop doesn't stay on top during slide show (Swing / AWT / SWT / JFace forum at JavaRanch)
JFrame declared as setAlwaysOnTop doesn't stay on top during slide show - Java Programming Forums
Any more?
db
edit
Swing - JFrame declared as setAlwaysOnTop doesn't stay on top during slide show
JFrame declared as setAlwaysOnTop doesn't stay on top when a presentation slideshow i - Linux ForumsLast edited by DarrylBurke; 03-30-2010 at 03:49 PM.
-
Similar Threads
-
Class is public, should be declared in a file
By goldhouse in forum New To JavaReplies: 7Last Post: 05-10-2012, 09:17 AM -
PLS-00302: component 'FETCH_BUG_DETAILS_FROM_LOG1' must be declared
By smunusam@cisco.com in forum JDBCReplies: 1Last Post: 03-16-2010, 09:39 AM -
Implicit object in jsp declared where?
By mahendra.athneria in forum JavaServer Pages (JSP) and JSTLReplies: 7Last Post: 08-11-2009, 02:23 PM -
[SOLVED] Ready to Program Java IDE Problem #3 PacMan For Loop to Slide Across the Scr
By Starr29 in forum New To JavaReplies: 3Last Post: 07-18-2009, 01:26 PM -
netbeans 6.0 not show commpunent or show blank page
By fahimaamir in forum NetBeansReplies: 1Last Post: 01-26-2008, 06:20 AM


LinkBack URL
About LinkBacks


Bookmarks