Other |
---|
tbdUnresolved |
Relates :
|
|
Relates :
|
When configuring PassFailJFrame, one has to explicitly set the number of rows and columns to size JTextArea which displays the instructions. It's not convenient... If instructions are modified, the numbers for rows/columns needs to be modified. The number of rows could be easily calculated, it's the number of lines in JTextArea. In most cases JTextArea.getPreferredSize() should be enough to size the component to display all the text without scrollbars. There could be some additional considerations for automatic sizing though, especially for HTML-based instructions.