Using HTML in Swing components with Linux
- From: anijap@xxxxxxxxx
- Date: 24 Aug 2006 11:24:48 -0700
Ok this is really strange, none of the html tags seem to work under my
linux machine and it's running java version 1.4.2... they should work.
Here's a simple example, all I get is the JLabel with all the html
showing as regular text.
Any suggestions? Does anyone else using linux get this?
import javax.swing.*;
public class Random extends JFrame {
public void loadFrame() {
JLabel label = new JLabel("<html><b>Test</b></html>");
this.getContentPane().add(label);
this.setSize(400,400);
this.show();
}
public Random() {
loadFrame();
}
public static void main(String args[]) {
new Random();
}
}
.
- Follow-Ups:
- Re: Using HTML in Swing components with Linux
- From: as4109
- Re: Using HTML in Swing components with Linux
- From: anijap
- Re: Using HTML in Swing components with Linux
- Prev by Date: Re: AffineTransform.getScaleInstance question
- Next by Date: listview and treeview
- Previous by thread: Rendering CAD/GIS Data on a Map Canvas
- Next by thread: Re: Using HTML in Swing components with Linux
- Index(es):