Java JFrame default look and feel decoration

Description

Java JFrame default look and feel decoration

import java.awt.ComponentOrientation;

import javax.swing.JFrame;

public class Main {
   public static void main(String[] args) {
      JFrame.setDefaultLookAndFeelDecorated(true);
      JFrame frame = new JFrame("Right to Left Frame");

      frame.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

      frame.setSize(300, 300);/*from w  ww  . ja  v  a 2s . co m*/
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setVisible(true);
   }
}



PreviousNext

Related