There은 최대화하지 않고 "JFrame의"를 구현하고 버튼을 최소화하는 방법을 설명합니다. 당신은 그냥 "incapsulate"되는 JDialog의 JFrame의 필요 :
이
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class RemoveMaxAndMinButton extends JDialog{
public RemoveMaxAndMinButton(JFrame frame, String str){
super(frame,str);
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent evt){
System.exit(0);
}
});
}
public static void main(String[] args){
try{
RemoveMaxAndMinButton frame = new RemoveMaxAndMinButton(new JFrame(),
"Remove the Minimize and Maximize button from the Title Bar");
JPanel panel = new JPanel();
panel.setSize(200,200);
JLabel lbl = new JLabel("RoseIndia.Net");
panel.add(lbl);
frame.add(panel);
frame.setSize(400, 400);
frame.setVisible(true);
}
catch(IllegalArgumentException e){
System.exit(0);
}
}
}
* 도움이 될 수도 있습니다. http://geekycoder.wordpress.com/2009/07/17/java-tips-disabling-the-maximize-button-of-jframe/ – MByD