-
JButton Layout
I have a class that overrides JFrame I add some JButtons in the constructor.
I also draw an Image in the paint method using
g.drawImage(myImage,0,0,this);
when I run the application the image is drawn on top of the JButtons how can I bring the JButtons to the front of the JFrame.
constructor code
getContentPane().add(new JButton("HI"));
public void paint(Graphics g){
super.paint(g);
g.drawImage(map,10,30,this);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks