Skip to main content
gamedev.net
🔒 Locked

[java] JTabbedPane Question

Started by Megaman_22 Feb 1, 2007 at 7:57 PM 0 replies 500+ views
Original Post
Megaman_22
Megaman_22
I'm using a JTabbedPane, with a Canvas attached as one of the Panes. My Canvas has a BufferStrategy that I am using to actively render with. I need to figure out how to make the canvas redraw when the tab with my Canvas on it is selected. Help would be greatly appreciated, because I don't really know anything about JTabbedPanes.
Eric Richards
CaptainJester
CaptainJester
Add a ChangeListener to the JTabbedPane. An event will fire every time a new tab is selected.
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.