Solved

JText - JList - JLabel??

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 52
Which is the latest version of Apache Tomcatl 3 49
Core Java. What output will be and why ? 6 64
base64 decode encode 12 119
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

930 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

13 Experts available now in Live!

Get 1:1 Help Now