Redian新闻
>
Multi-Level JInternalFrame
avatar
Multi-Level JInternalFrame# Java - 爪哇娇娃
v*e
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?
avatar
B*N
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?

avatar
v*e
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.

avatar
B*N
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?

avatar
v*e
5
Thanks. I made the inner JInternalFrame into a JPanel. Everything is fine
now.

one

【在 B******N 的大作中提到】
: 那前面人得UI水平实在是太差。
: 用你得第一个solution。告诉老板问题得原因所在,多争取点时间。
:
: to
: Is

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。