Java Code Examples for java.awt.Frame#setResizable()
The following examples show how to use
java.awt.Frame#setResizable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SharedMemoryPixmapsTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 2
Source File: StaveActionHandler.java From jmg with GNU General Public License v2.0 | 5 votes |
public void actionPerformed(ActionEvent e) { Phrase phrase = theApp.getPhrase(); Note note = phrase.getNote(selectedNote); if (e.getSource() == editNote) { Frame editorFrame = new Frame( "Edit this Note"); editorFrame.setSize( 400, 400); editorFrame.setResizable(true); NoteEditor noteEditor = new NoteEditor(editorFrame); noteEditor.editNote(note, 20, 20); } else if (e.getSource() == repeatNote) { Note newNote = note.copy(); phrase.getNoteList().insertElementAt( newNote, selectedNote ); } else if (e.getSource() == makeRest) { note.setFrequency(Note.REST); } else if (e.getSource() == deleteNote) { phrase.getNoteList().removeElementAt(selectedNote); } selectedNote = -1; theApp.repaint(); }
Example 3
Source File: SharedMemoryPixmapsTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 4
Source File: DelaunayTriangulationExample.java From delaunay-triangulator with MIT License | 5 votes |
public static void main(String[] args) { Frame frame = new Frame("Delaunay Triangulation Example"); frame.setResizable(false); GLCapabilities caps = new GLCapabilities(GLProfile.get("GL2")); caps.setSampleBuffers(true); caps.setNumSamples(8); GLCanvas canvas = new GLCanvas(caps); DelaunayTriangulationExample ex = new DelaunayTriangulationExample(); MouseListener lister = ex; canvas.addGLEventListener(ex); canvas.setPreferredSize(DIMENSION); canvas.addMouseListener(lister); frame.add(canvas); final FPSAnimator animator = new FPSAnimator(canvas, 25); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { new Thread(new Runnable() { public void run() { animator.stop(); System.exit(0); } }).start(); } }); frame.setVisible(true); frame.pack(); animator.start(); }
Example 5
Source File: SharedMemoryPixmapsTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 6
Source File: SharedMemoryPixmapsTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 7
Source File: SharedMemoryPixmapsTest.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 8
Source File: SharedMemoryPixmapsTest.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 9
Source File: SharedMemoryPixmapsTest.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 10
Source File: GLVisualProcessorTester.java From constellation with Apache License 2.0 | 5 votes |
public GLVisualProcessorDemo() { frame = new Frame("JOGL Tester"); frame.setSize(1920, 1080); frame.setResizable(false); frame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { frame.dispose(); System.exit(0); } }); }
Example 11
Source File: SharedMemoryPixmapsTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 12
Source File: SharedMemoryPixmapsTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 13
Source File: SharedMemoryPixmapsTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 14
Source File: SharedMemoryPixmapsTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 15
Source File: SharedMemoryPixmapsTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 16
Source File: SharedMemoryPixmapsTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** Creates a new instance of SharedMemoryPixmapsTest */ public SharedMemoryPixmapsTest() { testFrame = new Frame("SharedMemoryPixmapsTest"); testFrame.add(new TestComponent()); testFrame.setUndecorated(true); testFrame.setResizable(false); testFrame.pack(); testFrame.setLocationRelativeTo(null); testFrame.setVisible(true); testFrame.toFront(); }
Example 17
Source File: GLVisualProcessorGraphTester.java From constellation with Apache License 2.0 | 5 votes |
public GLVisualProcessorDemo() { frame = new Frame("JOGL Tester"); frame.setSize(1920, 1080); frame.setResizable(false); frame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { frame.dispose(); System.exit(0); } }); }