Solved

JText - JList - JLabel??

Posted on 2011-09-27
1
235 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Jpanels and Jframe 8 33
HTTPSessionBindingListernter not configured in deployment descriptor 2 53
arguments to jar 5 26
printf performancy 11 42
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

778 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