You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Auto Mode & Manual Mode
* Make Fullscreen GUI
* Enable/Disable Decoration on the go
* Maximize (Both Vertical & Horizontal or Only Vertical and Horizontal)
* Minimize
* Close
Second initialize the class and pass Parameter values
Third and Last call the method DoTheWorkFor(); to actually do the work for you
importargha.util.Fullscreen;
/** * this refers to JFrame * true refers to Decorations enable/disable make it false if you want decorations */Fullscreenscreen = newFullscreen(this, true);
screen.DoTheWorkFor();
Code Snippet :
/* * Copyright (C) 2017 Argha Das * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */packageargha.util;
importjavax.swing.JFrame;
importjavax.swing.SwingUtilities;
importargha.util.Fullscreen;
/** * * @author Argha Das */publicclassSnippetextendsJFrame {
privateFullscreenscreen;
publicSnippet() {
screen = newFullscreen(this, true);
buildGUI();
screen.DoTheWorkFor();
}
privatevoidbuildGUI() {
setTitle("Fullscreen Demo");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
publicstaticvoidmain(String[] args) {
SwingUtilities.invokeLater(newRunnable() {
@Overridepublicvoidrun() {
newSnippet().setVisible(true);
}
});
}
}