• 20.12.2025, 14:34
  • Register
  • Login
  • You are not logged in.

 

Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

pharao

Moderator

JList-Probleme

Saturday, January 14th 2006, 7:33pm

Hi,
ich will in eine JList eine Liste von Auswahlmöglichkeiten einfügen, die aus einem Bild und (!) einem String bestehen.
so ist kein Problem:


aber ich will so:

geht das, ohne den Text in die Bilder reinzuspeichern (sollte mehrsprachig werden)?
muß ich da eine Tabelle reinsetzen (wie uncool :P)

edit: und wehe es sagt jetzt jemand, daß das kein Cosinus ist...
Gute work-live-balance ist, wenn man von seinem Privatleben erschöpfter ist als von der Arbeit.

crushcoder

God

Re: JList-Probleme

Saturday, January 14th 2006, 11:31pm

hab ich schonmal das swing tutorial erwähnt? ;D

http://java.sun.com/docs/books/tutorial/…nents/list.html
besonders der abschnitt "Writing a Custom Cell Renderer".
Gott hat die Welt ja nur in sieben Tagen erschaffen können, weil es keine installierte Basis gab.