Setting start position for JLabel

M

Mike

Hello, Is there a way of setting text for a JLabel after a certain amount of
empty characters.
For example, I want to avoid doing this

JLabel label = new JLabel();
label.setText(" Book Name =")

Thanks
 
J

Jon A. Cruz

Mike said:
Hello, Is there a way of setting text for a JLabel after a certain amount of
empty characters.
For example, I want to avoid doing this

JLabel label = new JLabel();
label.setText(" Book Name =")

Thanks

First of all, please don't multipost. Look for answers in your duplicate
over on c.l.j.g


Secondly, that's probably not what you want. You probably *want* to
achieve something else, but think that setting after empty characters is
*how* to get to that actual ends.
 
A

Andrew Thompson

| Hello, Is there a way of setting text for a JLabel after a
certain amount of
| empty characters.
| For example, I want to avoid doing this

Note to all. This has been multi-posted to
c.l.j.help and c.l.j.gui (and how ever many
_other_ groups this person thought he was
so important as to justify this behaviour)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top