[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/29547] New: setText (String) of JButton does not work with HT
From: |
debian-gcc at lists dot debian dot org |
Subject: |
[Bug swing/29547] New: setText (String) of JButton does not work with HTML code (but JLabel works) |
Date: |
22 Oct 2006 13:46:35 -0000 |
[forwarded from http://bugs.debian.org/392791]
Suppose the following program:
-----
import javax.swing.*;
import java.awt.*;
class M extends JFrame{
private JLabel l = new JLabel ("a<br>b");
private JButton b = new JButton ("a<br>b");
M (){
setLayout (new GridLayout (2, 1));
getContentPane().add (l);
getContentPane().add (b);
setDefaultCloseOperation (EXIT_ON_CLOSE);
setSize (200, 200);
setVisible (true);
}
public static void main (String args[]){
new M ();
}
}
---
JLabel honors HTML breakline, while JButton does not.
(In fact, what I need is to break lines in JButton's text. And I know
there is a workaround by using a JLabel inside the JButton.)
gcj-4.2-20060923-1 has the same problem.
--
Summary: setText (String) of JButton does not work with HTML code
(but JLabel works)
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: roman at kennke dot org
ReportedBy: debian-gcc at lists dot debian dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29547
- [Bug swing/29547] New: setText (String) of JButton does not work with HTML code (but JLabel works),
debian-gcc at lists dot debian dot org <=