Solved

JText - JList - JLabel??

Posted on 2011-09-27
1
229 Views
Last Modified: 2012-05-12
In my JDialog I have a area that will display text from a query.  Example would be

Current Project      [                        ]          [Change]

I have a label then a textfield  and then a button,  I am concerned with the textfield.  The user will never be able to type anything in that field, if they need to change the value they will have to click the change button and select a project from a different dialog box.

What should I be using to display that value - I don't think the jtextfield is correct.
0
Comment
Question by:jkteater
1 Comment
 
LVL 47

Accepted Solution

by:
for_yan earned 50 total points
ID: 36711671
You can make JTextFiled setEditable(false)

or you can use JLabel instaed if you don't need use to change
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now