我試圖讓這件事的代碼並從Java官方網站運行,但我得到 Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
at sun.awt.Win32GraphicsConfig.getBounds(Native Method)
at sun.awt.Win32GraphicsConfig.getBoun
問題: 我的程序設計是好的,下面我之前添加JToolBar中以BorderLayout.PAGE_START 下面是截圖添加JToolBar中前: 這裏是如何它看起來像添加了JToolbar後: 我可以知道我做錯了什麼嗎? 這是我使用的代碼: //Create the text pane and configure it.
textPane = new JTextPane();