Demos and Usage of java.awt.Frame.setResizable(boolean resizable)


   1: 
   2: Frame mf=new Frame("Java Climate Model");
   3:         ...
   4: mf.setResizable(true);
   5: mf.addWindowListener(new WindowAdapter() { public void windowClosing (WindowEvent e) {System.exit(0);}});
   6: mf.reshape(0,0,800,600);
   7: mf.show();

View Full Code Here
   1: 
   2: Frame mf=new Frame("Java Climate Model");
   3:         ...
   4: mf.setResizable(true);
   5: mf.addWindowListener(new WindowAdapter() { public void windowClosing (WindowEvent e) {System.exit(0);}});
   6: mf.reshape(0,0,800,600);
   7: mf.show();

View Full Code Here
   1:   public static void main(String[] argv) {
   2:     Frame mainFrame;
   3: 
   4:         ...
   5:     mainFrame = new Frame(FlightShortestPath.title_);
   6:     mainFrame.addWindowListener(new WindowAdapter() {
   7:         ...
   8:     mainFrame.setForeground(FlightShortestPath.APP_FG);
   9:     mainFrame.setResizable(false);
  10:     mainFrame.setLocation(10,50);

View Full Code Here
   1:   {
   2:     Frame f = new Frame ("GNU Classpath JAWT Demo");
   3: 
   4:         ...
   5: 
   6:     f.setResizable(false);
   7: 
   8:     DemoJAWT jawtDemo = new DemoJAWT ();
   9:     f.add (jawtDemo);

View Full Code Here
   1: import java.awt.FontMetrics;
   2: import java.awt.Frame;
   3: import java.awt.Label;
   4:         ...
   5: 
   6:     Frame f = new Frame();
   7:     String name = analyzer.getClass().getName();
   8:         ...
   9:         + " : " + string);
  10:     f.setResizable(false);

View Full Code Here
   1: 
   2: import java.awt.Frame;
   3: import java.awt.Button;
   4:         ...
   5:             System.out.println(VERSION_TOO_LOW_MESSAGE);
   6:             Frame frame = new Frame();
   7:             frame.setLayout(new FlowLayout());
   8:         ...
   9:             frame.add(button);
  10:             frame.setResizable(false);
  11:             frame.pack();

View Full Code Here
   1:     static int count;
   2:     Frame frame;
   3: 
   4:         ...
   5:             public void buttonPressed(EventObject e) {
   6:                 final Frame frame = new Frame();
   7:                 frame.add(new FrameDemo());
   8:         ...
   9:                 if (frame.isResizable()) {
  10:                     frame.setResizable(false);
  11:                     DemoButton b = (DemoButton) e.getSource();
  12:         ...
  13:                 } else {
  14:                     frame.setResizable(true);

View Full Code Here
   1: 
   2: import java.awt.Frame;
   3: import java.awt.Image;
   4:         ...
   5: 
   6:             Frame frame = null;
   7:             boolean displayMinimizedWindow = false;
   8:         ...
   9:                     frame.setBounds(x, y, width, height);
  10:                     frame.setResizable(false);
  11:                     frame.setVisible(true);

View Full Code Here
   1:     final Applet a=(Applet)applet_;
   2:     final Frame  f=new Frame(class_);
   3: 
   4:         ...
   5:     f.setLocation(100,100);
   6:     f.setResizable(false);
   7:   }
   8: 
   9:   private Map streams = new HashMap();  

View Full Code Here
   1: import java.awt.FontMetrics;
   2: import java.awt.Frame;
   3: import java.awt.Graphics;
   4:         ...
   5: 
   6:     public static Frame getFrame (Component child)
   7:     {
   8:         ...
   9:         if (child instanceof Frame)
  10:         {
  11:         ...
  12:             frame.setSize(width, height);
  13:             frame.setResizable(resizable);

View Full Code Here
   1: import java.awt.Dimension;
   2: import java.awt.Frame;
   3: import java.awt.Graphics;
   4:         ...
   5:         Window window = SwingUtilities.getWindowAncestor(toolbar);
   6:         Frame frame = null;
   7:         
   8:         if(toolBar != null) {
   9:             Container p;

View Full Code Here