答案 0 :(得分:0)
我知道如何做的唯一方法是使用金属LAF的未装饰框架:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class SSCCE5
{
private static void createAndShowGUI()
{
JFrame frame = new JFrame("SSCCE5");
frame.setUndecorated(true);
frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
frame.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocationByPlatform( true );
frame.setSize(200, 200);
frame.setVisible( true );
}
public static void main(String[] args)
{
EventQueue.invokeLater(new Runnable()
{
public void run()
{
createAndShowGUI();
}
});
}
}