users
[Top] [All Lists]

RE: [cinjug-users] Swing/AWT Question

To: <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] Swing/AWT Question
From: "Brian Engel" <Brian.Engel@xxxxxxxxxxxx>
Date: Mon, 15 Nov 2004 10:54:01 -0500
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Thread-index: AcTLJ4zRP9c2OM2kTduDY+t8CTw6BgAA5osg
Thread-topic: [cinjug-users] Swing/AWT Question
That did work, thanks!
 
 
I was trying to do it this way without any success...
 
 
        HashMap map = new HashMap();
        map.put(TextAttribute.STRIKETHROUGH,TextAttribute.STRIKETHROUGH_ON);
        setFont(new Font(map));


From: James Carman [mailto:james@xxxxxxxxxxxxxxxxxxxx]
Sent: Monday, November 15, 2004 10:26 AM
To: users@xxxxxxxxxx
Subject: RE: [cinjug-users] Swing/AWT Question

You can use HTML text in a JLabel.  Would that do it?  I think there’s a <strike> element in HTML.

 

-----Original Message-----
From: Brian Engel [mailto:Brian.Engel@xxxxxxxxxxxx]
Sent: Monday, November 15, 2004 10:20 AM
To: users@xxxxxxxxxx
Subject: [cinjug-users] Swing/AWT Question

 

 

I was wondering if someone could give me some insight on this....

 

 

Basically how do I change the font for a JLabel so that it is a "strikethrough" style of font? i.e. I was the text to have a line drawn through the middle of it.

 

 

Brian Engel

Web Applications Developer

Ipsos-NA

513-552-1645

 

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [cinjug-users] Swing/AWT Question, Brian Engel <=