Minimize « Button « Java Swing Q&A





1. There should no close and minimize button on the frame what i have to do?    coderanch.com

Well sir but how will i recursivly iterate the frame to search for button. "I have posted my question many time because i haven't got my answer" what's wrong with my question In my software my requrment is that when the program will execute the minimise,maximise and store button of frame shoude not work but i havn't got answer still.

2. Minimize Button (Swing)    coderanch.com

import java.awt.event.ActionEvent; import javax.swing.JButton; import javax.swing.JFrame; class MainWindow extends JFrame { public MainWindow() { JButton Button1 = new JButton("Example"); Button1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { //[B]DO SOMETHING TO MINIMIZE (?)[/B] } }); add(Button1); } public static void main(String[] args) { MainWindow window = new MainWindow(); window.setVisible(true); window.setSize(100, 100); window.setDefaultCloseOperation(EXIT_ON_CLOSE); } }

3. Frame minimize and maximize buttons    coderanch.com