set size of JTextPane

hi, i want to set size of JTextPane in such a way that it will not exceed that sizeplease help me waiting!
[134 byte] By [newpka] at [2007-9-27 9:28:30]
# 1
Use the JComponent class's setMaximumSize() method. For instance:JTextPane jtp = new JTextPane();jtp.setMaximumSize(new Dimension(100,100));
paternostroa at 2007-7-8 22:30:52 > top of Java-index,Archived Forums,Swing...