|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.game.Juzzle.StartDialog.ImageListRenderer
this class renders the image with text line in the selection dialog
StartDialog| Field Summary | |
protected javax.swing.JLabel |
image
for image itself (scaled version) |
protected javax.swing.JPanel |
jpanel
panel for image and text panels |
protected javax.swing.border.Border |
normBorder
normal border of panel |
protected java.awt.Color |
normColor
normal background color of panel |
protected javax.swing.border.Border |
selBorder
selected border of panel |
protected java.awt.Color |
selColor
selected background color of panel |
protected javax.swing.JLabel |
text
for image name |
| Constructor Summary | |
StartDialog.ImageListRenderer()
simply constructor |
|
| Method Summary | |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList jlist,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
set image and set text, set borders and background colors and return the main panel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.swing.JLabel text
protected javax.swing.JLabel image
protected javax.swing.JPanel jpanel
protected javax.swing.border.Border selBorder
protected javax.swing.border.Border normBorder
protected java.awt.Color selColor
protected java.awt.Color normColor
| Constructor Detail |
public StartDialog.ImageListRenderer()
| Method Detail |
public java.awt.Component getListCellRendererComponent(javax.swing.JList jlist,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent in interface javax.swing.ListCellRenderer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||