• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

JText - JList - JLabel??

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
jkteater
Asked:
jkteater
1 Solution
 
for_yanCommented:
You can make JTextFiled setEditable(false)

or you can use JLabel instaed if you don't need use to change
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now