Java Code Examples for javax.swing.JPanel#setDoubleBuffered()
The following examples show how to use
javax.swing.JPanel#setDoubleBuffered() .
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: FilePlugin.java From ramus with GNU General Public License v3.0 | 6 votes |
private void open() { JPanel contentPane = new JPanel(); contentPane.setDoubleBuffered(true); JFileChooser chooser = new JFileChooser(); chooser.setFileFilter(fileFilter); if (FilePlugin.this.getFile() == null) { String file = Options.getString(LAST_FILE); if (file != null) { chooser.setSelectedFile(new File(file)); } } else chooser.setSelectedFile(FilePlugin.this.getFile()); int r = chooser.showOpenDialog(framework.getMainFrame()); if (r == JFileChooser.APPROVE_OPTION) { File f = chooser.getSelectedFile(); loadFile(f); } }
Example 2
Source File: TSFrame.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 3
Source File: TSFrame.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 4
Source File: TSFrame.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 5
Source File: TSFrame.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 6
Source File: TSFrame.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 7
Source File: TSFrame.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 8
Source File: TSFrame.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 9
Source File: TSFrame.java From hottub with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 10
Source File: TSFrame.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 11
Source File: TSFrame.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 12
Source File: TSFrame.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 13
Source File: TSFrame.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }
Example 14
Source File: TSFrame.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
NonOpaqueJFrame() { super("NonOpaque Swing JFrame"); JPanel p = new JPanel() { public void paintComponent(Graphics g) { super.paintComponent(g); render(g, getWidth(), getHeight(), true); g.setColor(Color.red); g.drawString("Non-Opaque Swing JFrame", 10, 15); } }; p.setDoubleBuffered(false); p.setOpaque(false); add(p); setUndecorated(true); }