※ 引述《howdou.bbs@ptt.cc》之銘言:
> 我只是想frame直接打開就是最大化的樣子
> 找了API竟然找不到@@
> 不知是我英文太差還是沒這內建method
是有啦..
但這部份API也很難寫的很詳細..
以下是參考的code..
// This method minimizes a frame; the iconified bit is not affected
public void maximize(Frame frame) {
int state = frame.getExtendedState();
// Set the maximized bits
state |= Frame.MAXIMIZED_BOTH;
// Maximize the frame
frame.setExtendedState(state);
}
--
● ˙ ˙ ◢▇◣ ◢▇◣ ▇ ▇ █▇◣ █▇◣ █▇◣ ◢▇◣ █▇▉ /
˙ ╲ █ █ █ █ █ ▉ █ ▉ █▆ █▆▉ ▉▉▉ ★
◢ ★˙ ◥█◤ ◥█◤ ◥█◤ ██◤ █◥▆ █▆◤ █ ▉ ▉▉▉˙ ◣
CDBBS 中正築夢園BBS站 歡迎蒞臨參觀 cd.twbbs.org (140.123.20.230)
http://cd.twbbs.org◥ * Author: lazyf ★ From: 220.143.228.30 ◤
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):