v********e 发帖数: 1985 | 1 Can you have a multi-Level JInternalFrame?
Currently i have 2 implementations, the first one is
JDesktop->JInternalFrame->JPanel->JTree,
the second one is
JDesktop->JInternalFrame->JInternalFrame->JPanel->JTree
The first setup i can catch a TreeModeEvent, the second one, i cannot. Is
there a restriction on multi-level JInternalFrame? | B******N 发帖数: 445 | 2 JInternalFrame is for MDI, like JFrame in SDI, so you should not make one
contain another one.
【在 v********e 的大作中提到】 : Can you have a multi-Level JInternalFrame? : Currently i have 2 implementations, the first one is : JDesktop->JInternalFrame->JPanel->JTree, : the second one is : JDesktop->JInternalFrame->JInternalFrame->JPanel->JTree : The first setup i can catch a TreeModeEvent, the second one, i cannot. Is : there a restriction on multi-level JInternalFrame?
| v********e 发帖数: 1985 | 3 The problem is that i inhereted the code. I want to make as little change to
it as possible. So.. is there a way?
【在 B******N 的大作中提到】 : JInternalFrame is for MDI, like JFrame in SDI, so you should not make one : contain another one.
| B******N 发帖数: 445 | 4 那前面人得UI水平实在是太差。
用你得第一个solution。告诉老板问题得原因所在,多争取点时间。
to
Is
【在 v********e 的大作中提到】 : The problem is that i inhereted the code. I want to make as little change to : it as possible. So.. is there a way?
| v********e 发帖数: 1985 | 5 Thanks. I made the inner JInternalFrame into a JPanel. Everything is fine
now.
one
【在 B******N 的大作中提到】 : 那前面人得UI水平实在是太差。 : 用你得第一个solution。告诉老板问题得原因所在,多争取点时间。 : : to : Is
|
|