Reputation: 386
hi i'm working with java gui atm. Playing around with textPane and textArea. I know how to change the size of a textArea, but how do i change the size of a textPane? I've been trying to look up ways to do it, but it seems like most the topics are on changing font size nothing really on the pane size itself.....so is there a way to change the size of a textPane? if so how?
Upvotes: 1
Views: 182
Reputation: 420951
The size of the component is controlled by the layout manager.
LayoutManager
for the Container
containing the JTextPane
.JTextPane
Further reading:
Upvotes: 2