Bug#392791: libgcj7-0: setText (String) of JButton does not work with HTML code (but JLabel works)
Package: libgcj7-0
Version: 4.1.1-13
Severity: minor
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.
Friendly,
Eugen Dedu
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-powerpc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages libgcj7-0 depends on:
ii gcj-4.1-base 4.1.1-13 The GNU Compiler Collection (gcj b
ii libasound2 1.0.12-1 ALSA library
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libgcc1 1:4.2-20060923-1 GCC support library
pi libgcj-common 1:4.1.1-13 Java runtime library (common files
ii zlib1g 1:1.2.3-13 compression library - runtime
Versions of packages libgcj7-0 recommends:
ii libgcj7-jar 4.1.1-13 Java runtime library for use with
-- no debconf information
Reply to: