Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
public class PanelListRender extends JPanel implements ListCellRenderer {
private static URL iconURL = ClassLoader.getSystemResource("res/icons/default.gif");
private static ImageIcon icon = new ImageIcon(iconURL);
public Component getListCellRendererComponent(
JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
{
setLayout(new BorderLayout());
setBackground(isSelected ? Color.GRAY : Color.LIGHT_GRAY);
setBorder(BorderFactory.createRaisedBevelBorder());
add(new JLabel(" default"),BorderLayout.WEST);
JLabel licon = new JLabel(icon);
add(licon,BorderLayout.EAST);
return this;
}
}