Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created java application in netbeans on windows,now i need to run this application in ubuntu,application needs to run on full screen mode it working in windows but not in ubuntu it still showing task bar and menu bar ...thanks for a solution

Java
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            this.removeNotify();
            this.setUndecorated(true);
            this.addNotify();
            this.setSize(screenSize.width, screenSize.height);
            this.setExtendedState(JFrame.MAXIMIZED_BOTH);

in ubuntu it showing task bar wit decorated window
Posted
Updated 1-Aug-13 20:20pm
v2
Comments
Richard MacCutchan 31-Jul-13 3:51am    
Show the code that is not working; we have no way of guessing what you are doing.
harishhn 2-Aug-13 0:33am    
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
this.removeNotify();
this.setUndecorated(true);
this.addNotify();
this.setSize(screenSize.width, screenSize.height);
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
in ubuntu it showing task bar wit decorated window

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900