如何使INTERNALFRAME一显示就最大化

Suncanoe 2003-02-16 03:13:49
如何使INTERNALFRAME一显示就最大化
怎样获得他的关闭事件
...全文
83 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Suncanoe 2003-02-17
  • 打赏
  • 举报
回复
能不能给个例子
Patrick_DK 2003-02-16
  • 打赏
  • 举报
回复
1.setMaximum
public void setMaximum(boolean b)
throws PropertyVetoException
Maximizes and restores this internal frame. A maximized frame is resized to fully fit the JDesktopPane area associated with the JInternalFrame. A restored frame's size is set to the JInternalFrame's actual size.

Parameters:
b - a boolean, where true maximizes this internal frame and false restores it
Throws:
PropertyVetoException - when the attempt to set the property is vetoed by the JInternalFrame


2.InternalFrameListener类
Method Summary
void internalFrameActivated(InternalFrameEvent e)
Invoked when an internal frame is activated.
void internalFrameClosed(InternalFrameEvent e)
Invoked when an internal frame has been closed.
void internalFrameClosing(InternalFrameEvent e)
Invoked when an internal frame is in the process of being closed.
void internalFrameDeactivated(InternalFrameEvent e)
Invoked when an internal frame is de-activated.
void internalFrameDeiconified(InternalFrameEvent e)
Invoked when an internal frame is de-iconified.
void internalFrameIconified(InternalFrameEvent e)
Invoked when an internal frame is iconified.
void internalFrameOpened(InternalFrameEvent e)
Invoked when a internal frame has been opened.
事件e传入后
JInternalFrame jif = (JInternalFrame)e.getSource();

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧