我的textArea中使用了高亮顯示類。 我的程序應該像這樣工作: 在textArea中,程序檢測到應放置在第一行中的字符串(註釋行以「#」標記,未考慮),突出顯示它並在整個文本區域發生的所有事件。 例: #this is an example code
#these line are comments
**whateverWordIsFine** #this is the word to h
我剛開始使用Java構建GUI。現在我遇到了一個錯誤,導致JTextArea非常奇怪的行爲。我用它來創建文本區: ` public class gui{
JTextArea ausgabe;
public gui(){
//Some other Stuff in here
//
//
ausgabe = new JTextArea("Te