문제

In my code I am using checkboxes so that you can select multiple options, however these selections are around 100 characters in length and I am wanting to use a smaller, narrow, window. Is there a way to make the checkbox description go across multiple lines? I have tried inserting System.lineSeparator() into the string but this just seems to be skipped over. I would rather not use JLabels/JTextArea.

도움이 되었습니까?

해결책

Use <br/> where you want to break line.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top