Problem with matching JList items

Hello,

I have strange problem. I've written an applet with simple interface. It has two JList objects. I read data from file and insert it to my two lists. But when I start browser with applet it reads this data but problem is when I try to match one of items from lists. It matches it only for couple miliseconds and then matching dissapears.

Can someone help me?

[385 byte] By [Blaz1a] at [2007-11-27 9:32:32]
# 1
Sorry, my mind reading is a bit rusty these days. I will instead require that you actually provide some helpful information relevant to the problem. Otherwise I would just have to say that you matching algorithm is broken.~Tim
SomeoneElsea at 2007-7-12 22:50:51 > top of Java-index,Java Essentials,Java Programming...
# 2
I don't have any algoritm. Problem is, that when I click on item from JList it matches only for couple miliseconds and then matching dissapears. Item should be matched until I click on some different item.
Blaz1a at 2007-7-12 22:50:51 > top of Java-index,Java Essentials,Java Programming...
# 3

1) Swing related questions should be posted in the Swing forum.

2) Read the Swing tutorial for a working example on "How to Use Lists":

http://java.sun.com/docs/books/tutorial/uiswing/components/list.html

3) We are not mind readers. Your description of the problem is terrible.

If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",

see http://homepage1.nifty.com/algafield/sscce.html,

that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

Don't forget to use the "Code Formatting Tags",

see http://forum.java.sun.com/help.jspa?sec=formatting,

so the posted code retains its original formatting.

camickra at 2007-7-12 22:50:51 > top of Java-index,Java Essentials,Java Programming...