JInternalFrame precedence
hi guys, i have an application with some inernal frames in a desktop, one of
those internal has a canvas object, the problem is that when you focus a internalframe it is suppose to go to the front of the screen, but with the internal canvas all the others lays behind it, i know there must be a property but i can磘 find it, please help me
[352 byte] By [
ander123a] at [2007-11-26 13:35:45]

i had to, because im just starting in java(3 moths ago) and the internal also havea button a a JTable, but, could you help me?
sorry youre right, i simply has a lot of jinternalframes with jcomponents,
just one of those jinternal has a canvas with a 2d grapher which redraws its
self dependending of the size of the jinternal , no matter how much i tried, the canvas remain in front on the screen blocking even the desktop JMenubar, its now fully functional but it looks ugly.
All you have to do is as follows ...
Before:
public class MyGraph extends Canvas {
public void paint(Graphics g) {
/* ... */
}
}
After:
public class MyGraph extends JComponent {
public void paintComponent(Graphics g) {
/* ... */
}
}