user2316667
user2316667

Reputation: 5634

How Do I Keep A JFrame Above All Other Applications (That have open or will open) Such As Powerpoint

I am creating a news ticker (that narrow, black box at the bottom of the screen that stretches the length of the screen with text of other news that scrolls by). My application opens other programs. In this case, the powerpoint presentation it opens, opens over my jframe. I need my jframe to always be visible Any ideas?

Upvotes: 1

Views: 1179

Answers (2)

Daniel Kaplan
Daniel Kaplan

Reputation: 67310

myFrame.setAlwaysOnTop(true);

Upvotes: 1

Reimeus
Reimeus

Reputation: 159754

You could use Window#setAlwaysOnTop:

Sets whether this window should always be above other windows.

myJFrame.setAlwaysOnTop(true);

Upvotes: 2

Related Questions