Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
GlassPane Problem
raj varma
Greenhorn
Posts: 28
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How do I set full screen glasspane so that I can disable mouse event.
I tried to show wait Cursor , but its not working.
Please help.
My code is here...
------
import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class TestGlass extends JFrameimplements ActionListener{ private JButton closeButton; private Container c; MyGlassPane myGlassPane; //constructor -1 public TestGlass(){ init(); createGUI(); } //init void init(){ closeButton = new JButton("Close Me"); c = getContentPane(); myGlassPane = new MyGlassPane(); } //GUI void createGUI(){ setTitle("glass Pane Test"); c.setLayout(new FlowLayout()); c.add(closeButton); pack(); setSize(400,300); closeButton.addActionListener(this); addWindowListener(new WindowAdapter(){ public void windowClosed(WindowEvent we){ closeApplication(); } } ); //glass pane setGlassPane(myGlassPane); } //close void closeApplication(){ System.exit(0); } //action handler public void actionPerformed(ActionEvent e){ closeApplication(); } //main public static void main(String args[]){ new TestGlass().show(); } } class MyGlassPane extends JComponent{ public MyGlassPane(){ setSize(800,600); setCursor(new Cursor(Cursor.WAIT_CURSOR)); } }
Manoj Tare
Greenhorn
Posts: 26
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
r u rajendra verma
Check my problem yar SCrollPane
How to add knob / slider to scrollPane .
Check
waiting for reply
deepak
Ashish Mahajan
Ranch Hand
Posts: 77
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Rajendra,
Sorry if it's 222 late
Take a look at :-
http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html#glasspane
The best teams have no specialists, only general contributors with special skills
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Glasspanes and tooltips
Paint Drag Preview
image in glassPane
Why Glass Pane becomes visible when resizing JInternalFrame?
Urgent: Glass Pane is Opaque!!
More...