hi!
i need to draw text bound by a box (inside a component for example). is there any way to do this automatically?
i want to set the width, and when the text is longer it automatically goes to newt line etc ... can anyone help ? thanx
hmm...thanx! that looks interesting, but i need to implement such behavior in my own components. is there an easy way to do this ?
or should i just look over JTextArea's source code, is that your idea ?
thanx, guys!
do you think it would be easy to extend JTextArea over a JButton for example?
Actually in my case i have custom drawn rectangles (i am implementing a flowchart) so implementing a JTextArea over a rectangle seems awkward. i'll test it now, but still would like to hear your thoughts
Well, I don't know what are you trying to do, seems like you're doing a kind of "paint". If so, I think that he best way is extending the Swing components.
Depending on your requisites, extendig JLabel could be enough.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.