How to add a table in Java? - Emmanuel Katto Uganda

Hi all, my name is Emmanuel Katto and I’m from Africa (Uganda). I am unable to find an option of adding a table while creating a website on Java, can anyone help me in this situation?

1 Like

hi dude i dont know whether you are familiiar with the jsps and html and css but with plane java i ever asked my self that and i used the JTextField and the JLabel and the GridLayout to set java tabular am also learning but that what i did

1 Like

Hello, when posting questions please make sure you send to a group and not a single individual that way you can get broader attention.

Alternatively, you can post questions in the OpenMRS slack channel where you’re are more likely to get realtime responses.

3 Likes

Ohhh, okay…

1 Like

Okay, thank you so much you sharing this information, actually I’m new to this platform so I’m learning how to use this…

2 Likes

Hi Emmanuel Katto, you need to make an instance of the JTable class. You need to provide two arguments (“row” and “column”). Like this: JTable table = new JTable (row, column);