0

How to set undecorated JTattoo used JFrame?

I've tried this, but it does not work.

undecorated(true);
Udeesha Induwara
  • 605
  • 1
  • 10
  • 20
  • 1
    The answer in linked question seems clear to me: call `DecorationHelper.decorateWindows(false);` before `this.undecorated(true);` Is there any issue with it? – Piro May 07 '18 at 12:31

2 Answers2

3

Here I make something using java's Property class not only undecorated but also window title font and other properties like this

Properties p = new Properties();
p.put("windowTitleFont", "Ebrima PLAIN 15");
p.put("logoString", "");
p.put("windowDecoration", "off");
HiFiLookAndFeel.setCurrentTheme(p);
UIManager.setLookAndFeel("com.jtattoo.plaf.hifi.HiFiLookAndFeel");
Tadesse
  • 76
  • 2
  • 4
1

Here is the code that works for me Just code setDefaultLookAndFeelDecorated(false) inside the main method

Ex -

java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
setDefaultLookAndFeelDecorated(false);
}
});