All,

I am using Netbeans 7.2 to build a form. I added a Swing JTextArea to my form and all is well. I'd like to add a titled border to my JtextArea (or the JScrollPane in which it lives) but can't figure out how.

I tried Right Click > Properties but I don't see anything for title. I also tried Right Click > Customize Code, but I don't see where to add the BorderFactory code to generate the border & title.

Does anyone how is this done?

Thanks,
Bill

Look in the Properties window at the 'border' property. Click the builder button "..." on the right-hand side.

Wow! That's it! I can't believe how much time I wasted trying to figure this out.

Thanks,
Bill

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.