Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5435

Re: JLabel wrapping

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.gui
Subject Re: JLabel wrapping
Date 2014-05-26 11:04 -0700
Organization Canadian Mind Products
Message-ID <6fv6o9l2lr4mrbmcpr6gs3034r1qnkpbd0@4ax.com> (permalink)
References <hr34o91gbi10906ocae4fi5pt7ls1kigkp@4ax.com> <m9e2q5xesvet$.1xxb5upwong21.dlg@40tude.net>

Show all headers | View raw


On Sun, 25 May 2014 18:16:14 +0200, Joerg Meier <joergmmeier@arcor.de>
wrote, quoted or indirectly quoted someone who said :

>Your problem description confuses me. Can you provide a test case ?

This is a work in progress. It is a program to let a newbie select an
image, autoscale and autocrop it, let you tweak then print it as a
greeting card.   See http://mindprod.com/zips/greetingcard10.zip

run the jar inside

greetingcard.jar

You may see the problem right away, or perhaps only after you have
printed an image.

The text in the JLabel sometimes forms a "chimney" a tall thin
multiline stack of words instead of a couple of wide lines as
intended.

Source code is included.

The fields behaving strangely are 
JLabel instructions 
and JLabel instructions2

I presume it has something to do with using HTML in the JLabel. I have
never done that before.

I will try changing it to a JEditorPane or JTextArea to see if the
behaviour goes away.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Young man, in mathematics you don’t understand things.
You just get used to them. 
~ John von Neumann (born: 1903-12-28 died: 1957-02-08 at age: 53)

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

JLabel wrapping Roedy Green <see_website@mindprod.com.invalid> - 2014-05-25 08:49 -0700
  Re: JLabel wrapping Joerg Meier <joergmmeier@arcor.de> - 2014-05-25 18:16 +0200
    Re: JLabel wrapping Roedy Green <see_website@mindprod.com.invalid> - 2014-05-26 11:04 -0700
  Re: JLabel wrapping "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-05-26 09:50 +1000
    Re: JLabel wrapping Roedy Green <see_website@mindprod.com.invalid> - 2014-05-26 11:19 -0700
  Re: JLabel wrapping Ricardo Palomares <rpmdisguise-java@nowhere.com> - 2014-05-26 23:13 +0200
  Re: JLabel wrapping Roedy Green <see_website@mindprod.com.invalid> - 2014-06-02 09:40 -0700

csiph-web