2013-04-12 16 views

回答

1

不知道你真的想在這裏實現什麼......但setUndecorated(true)會幫你嗎?

6

我可以從 JFrame中刪除邊框以及最小化和關閉按鈕嗎?

我不能使用的JWindow因爲我 明白它不能處理的KeyListener。 (至少不容易)。

  • 的JFrame,JDialog的或的JWindow並不KeyListener的反應,JComponent的必須是FocusOwner或實施setFocusable爲KeyListener的

  • 不使用的KeyListener,使用鍵綁定,而不是

我不能使用JWindow,因爲它不能處理keyListener,因爲我可以理解我的 。

  • 拍攝到黑暗,

  • JTextComponents是不可編輯的(真的不知道原因),在沒有的JWindow可見的JFrame父

+1

+1。這裏是[Swing Key bindings tutorial]的鏈接(http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html) –

相關問題