Skip to content
Advertisement

Tag: jtable

How do I make it so that the table is displayed inside the JFrame in Main?

I am currently making a program for my school project, it is a fast food order calculator, my problem is that I have to be able to display the table inside the JFrame in Main, if I add “frame.add(table);” inside Main, nothing happens. Any help would be appreciated, thank you! } Answer Add frame.add(JScrollPane(table)); Change frame.add(label); to frame.add(label, BorderLayout.NORTH); Move

JTable multiple selection on Mac OS X

I have a Swing application and we are having a problem with some Mac users and JTable components. The tables have this selection mode set: On Windows with this selected you can: select a single row select contiguous rows by holding the mouse and dragging select contiguous rows by clicking the first row to select, pressing shift and clicking the

Advertisement