Re: popupmenu and JTable question
Frank Meißner <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Hello, it's Krishna wrote: > I have the following in my xml file. > > <frame> > <menubar> > <menu name="Message"> > <menuitem name="Incoming" /> > <menuitem name="Outgoing" icon="icons/right.gif" > /> > <popupmenu> > <menuitem name="Normal" /> > <menuitem name="Special" /> > </popupmenu> > <separator /> > <menuitem name="Exit" /> > </menu> > <menu name="Import/Export"> > <menuitem name="Incoming" /> > <separator /> > <menuitem name="Outgoing" /> > </menu> > <menubar> > <tabbedpane titles="Outgoing,Incoming,Subscriptions"> > <panel> > <table id="table1" ShowHorizontalLines="true" > ShowVerticalLines="true"> > </table> > </panel> > <panel> > ... > </panel> > <panel> > ... > </panel> > </tabbedpane> > </frame> > > Question(s): > ----------- > a) Am I using the popupmenu right? It doesn't semm > to show up. No. IMHO the popumenu is wrong there. Usually, you show a popup menu as a response to a mouse click event, preferable on the position of the click. From the labels you gave, perhaps you want to use JCheckboxMenuItem (Swixml: checkboxmenuitem)? If you really want to use a popup menu, define it with swixml and use the attribute "id" to get access to the popup menu from your program. > b) The table tag creates an empty "panel". I believe > I need to populate it with (initial) data. > However, > even after I tried that, I donot see any data. > Again, what did I miss here. How did you do that? Hint: Did you use a TableModel? Frank -- AuthentiDate International AG Großenbaumer Weg 6 40472 Düsseldorf / Germany Phone : +49(0)211 43 69 89-0 FAX : +49(0)211 43 69 89-19 TÜV Akademie Kosten senken durch IT-Sicherheit 12.-13. Nov., Köln Erfahren Sie mehr unter: www.authentidate.de