Simply put I am try to create a fullscreen image slide show in java. This is the code that is causing the problems:
panel = new JPanel();
frame.add(panel);
// This part sets all the neccessary stuff to make the frame full screen
frame.setUndecorated(true);
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(frame);
frame.setVisible(true);
for (String s : pics) {
try {
photo = new JLabel(new ImageIcon(s));
panel.add(photo);
Thread.currentThread().sleep(wait*1000);
panel.remove(photo);
}
catch (Exception e){
e.printStackTrace();
}
}
The code won't let me add and remove images when it is full screen. The following code works fine, its full screen and the image is there.
RoboForm 9.7.5 by Razvan Serea
RoboForm is the top-rated Password Manager and Web Form Filler that completely automates password entering and form filling. RoboForm makes logging into Web sites and filling forms faster, easier, and more secure. RoboForm memorizes and securely stores each user name and password the first time you log into a site, then automatically supplies them when you return. RoboForm's powerful Logins feature eliminates the manual steps of logging into any online account. With just one click RoboForm will navigate to a Web site, enter your username and password and click the submit button for you.
Completing long registration or checkout forms is also a breeze. Simply click on your RoboForm Identity and RoboForm fills-in the entire form for you. You no longer need to remember all your passwords. You remember one Master Password, and RoboForm remembers the rest. This allows you to use stronger passwords, making your online experience more secure. RoboForm uses strong AES encryption for complete data security.
The all new RoboForm comes with Chrome and Safari browser support, iPhone/iPad and Android support, as well a brand new RoboForm Everywhere license for use on unlimited computers and mobile devices. RoboForm 9.7.5 changelog: Prepared for the upcoming RoboForm browser extension with New Auth.
Download: RoboForm 9.7.5 | 42.1 MB (Free, paid upgrade available)
View: RoboForm Website Get alerted to all of our Software updates on Twitter at @NeowinSoftware
I understand. I am not talking about benchmarks at all, even though I probably should look into those too - I just mean historically Vivaldi was a rather sluggish chromium browser when in use compared to other chromium browsers. I am always willing to give it additional tries whenever performance improvements are mentioned in the patch notes.
Question
-JMC-
Hi
Simply put I am try to create a fullscreen image slide show in java. This is the code that is causing the problems:
The code won't let me add and remove images when it is full screen. The following code works fine, its full screen and the image is there.
The strange thing is that you add the component to the frame before setting it to full screen.
It seems that setting the full screen stuff and then adding the component won't work. Is there any way round this?
Or if anyone knows any better way of doing a slide show please nudge me in the right direction.
Thanks
James
Link to comment
https://www.neowin.net/forum/topic/622761-java-jframe-and-image-slideshow/Share on other sites
3 answers to this question
Recommended Posts