-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
beta
-
x86
-
windows_nt
Name: skT45625 Date: 05/18/2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
When you run this program, you will find broken images in JList
These images are set in HTML format <image src> and rendering Swing's internal
HTML components.
//----------------------- JList2.java ---------------------
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
class JList2 extends JFrame {
public static void main(String[] args) {
JFrame frame = new JList2( "HTML rendering in JList" );
frame.setDefaultCloseOperation(3); // EXIT_ON_CLOSE
frame.setSize( 250, 300 );
frame.setVisible( true );
}
JList2( String title ){
super( title );
Container pane = getContentPane();
String[] item = new String[4];
item[0] = "<html><img src=file:./Back24.gif>Back";
item[1] = "<html><img src=file:./Down24.gif>Down";
item[2] = "<html><img src=file:./Forward24.gif>Forward";
item[3] = "<html><img src=file:./Up24.gif>Up";
JList list = new JList( item );
pane.add( list, BorderLayout.NORTH );
}
}
// These Gif files comes from
// http://developer.java.sun.com/developer/techDocs/hi/repository/
-----------------------------------------------------------------------------
Resize the window and the problem is more evident. This is visible only
on the NT 1.3 release
###@###.### 2000-05-18
(Review ID: 104988)
======================================================================