Hi everyone,
I want to display some information in a JMenuItem. The data format is like this:
1-1|Menu Name1
1-2|Menu Name2
My problem is that when I create the JMenuItem it displays the whole key-value pair. I'm wondering if there is a similar behavior in Swing like the HTML's
<SELECT>
<OPTION value="1-1">Menu Name1</OPTION>
<OPTION value="1-2">Menu Name2</OPTION>
</SELECT>
...where the user never sees the key, only sees the values.
I'm not familiar with Swing so if anyone knows a similar behavior like HTML's using JMenuItems style please share.
thanks in advance.