Bugzilla – Attachment 693 Details for
Bug 1146
Swing Tool Tip Causes Incorrect GLContext
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test Case
tooltipdemo.java (text/x-java-source), 1008 bytes, created by
forumacct4spam
on 2015-03-16 14:24:55 CET
(
hide
)
Description:
Test Case
Filename:
MIME Type:
Creator:
forumacct4spam
Created:
2015-03-16 14:24:55 CET
Size:
1008 bytes
patch
obsolete
>import java.awt.event.ActionEvent; >import java.awt.event.ActionListener; > >import javax.swing.JButton; >import javax.swing.JFrame; >import javax.swing.ToolTipManager; > >import com.jogamp.opengl.awt.GLCanvas; > >public class GLContextFailDemo >{ > public static void main(String[] args) > { > System.setProperty("sun.java2d.d3d", "false"); > System.setProperty("sun.awt.noerasebackground", "true"); > > JFrame frame = new JFrame(); > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > JButton button = new JButton("Test"); > button.setToolTipText("Tool tip text"); > button.addActionListener(new ActionListener() > { > @Override > public void actionPerformed(ActionEvent e) > { > GLCanvas canvas = new GLCanvas(); > JFrame frame = new JFrame(); > frame.add(canvas); > frame.setSize(400, 400); > frame.setVisible(true); > } > }); > frame.add(button); > ToolTipManager.sharedInstance().registerComponent(button); > frame.pack(); > frame.setVisible(true); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1146
:
692
| 693