How to add Menu Bar in TableFilterExample.java in a JPanel

36 views
Skip to first unread message

Jim

unread,
Jul 8, 2020, 1:42:56 PM7/8/20
to tablefilter-swing
Hi Luis,

Thanks a lot for this great library.

I was able to see the table filters just by passing the JTable object to "TablleFilterHeader filterHeader = new TableFilterHeader(table, AutoChoices.ENABLED);". However, I couldn't find how to add the menu bar and menu items such as Table, Filter Header, Filters and Miscellaneous that we see when we run TableFilterExample.java file. Could you please help me with the steps to show the above mentioned Menus inside a JPanel?

Thank you.
Jim.

coderazzi

unread,
Jul 9, 2020, 6:34:37 PM7/9/20
to tablefilter-swing
Hi, Jim,

the menu bar / menu items are not part of the tablefilter library,
they are just part of the TableFilterExample code.
You could have a look at the class TableFilterExample.java, it
contains all the code to add the menu functionality.

Hope this helps,

L.
> --
> You received this message because you are subscribed to the Google Groups "tablefilter-swing" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tablefilter-sw...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tablefilter-swing/e49dfbe2-826c-4f07-b6b1-a02f203c2c9do%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages