Explain how to create a borderless window with an example

Explain how to create a borderless window.

Following code is used for creating a borderless window:
public static void main(String[]args)
{
   JButton button1=new JButton("MY BUTTON");
   JWindow window=new JWindow();
   window.getContentPane();
   window.setSize(100,100);
   window.setVisible(true);
}
Show with an example the usage of FileDialog object
Usage of FileDialog object - class FileDialog extends from Dialog class. It is used to display a dialog window from which the user can select a file...
Purpose of component’s requestFocus method
Purposes of component’s requestFocus method - The purpose of the requestFocus() is to get the focus on the particular component and also on the window...
Method of the Component class
Method of the Component class - The methods are: setMaximumSize(Dimension maximumSize) : Sets the maximum size of this component to a constant value...
Post your comment