Over a million developers have joined DZone.

Customize JFrame

·
Remove cursor (f=Frame):


f.setCursor(java.awt.Toolkit.getDefaultToolkit().createCustomCursor(new java.awt.image.BufferedImage(1,1,java.awt.image.BufferedImage.TYPE_4BYTE_ABGR),new java.awt.Point  (0,0),"NOCURSOR"));
  }


Make fullscreen window:

f.setExtendedState(f.MAXIMIZED_BOTH);


Remove window decoration:

f.setUndecorated(true);

 
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}