Sign in to follow this  
nullsmind

Need help with rendering contols over Java2D rendering

Recommended Posts

nullsmind    100
I have a Java2D/Swing application that renders the entire screen. What I'd like to do is make a simple chatroom (2 textfields & 1 button) over the rendering. Even though I try this, the rendering is visible, but the controls aren't. Is there a way to change how the controls are presented to the screen?

Share this post


Link to post
Share on other sites
Simian Man    1022
I had an issue with this once. Sadly I can't find the code I was working on, but the solution had to do with creating seperate JPanels for the drawing and the GUI. The drawing tries to overwrite the GUI if it is in the same area.

Hope that helps

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this