I am using Jtable and I want to scroll down the screen with an on-click event on a cell of the table. Whenever I am clicking on a cell, the screen is not scrolling down, but when I manually scroll down the screen with below code, the screen is not possible to scroll up.
DefaultTableModel tableModel = new DefaultTableModel(23,23);
JTable table = new JTable(tableModel);
JScrollPane scrollPane = new JScrollPane(table);
public void mouseClicked(java.awt.event.MouseEvent e)
Currently, I am using a Card layout, when I am trying to use Box layout or Grid Bag Layout. Nothing is showing up in the respected Jpanel.Is there are any changed I can do? So far, As per my understanding, Japnel is set for Card layout and Buttons are using ComponentOrientation.
I am working on a layout that is set to use "Class ComponentOrientation". That displays all the button from LEFT_TO_RIGHT and RIGHT_TO_LEFT. In short, buttons are displaying in Horizontal orientation. I want to display buttons in a vertical orientation. So far, I researched that ComponentOrientation comes with fields LEFT_TO_RIGHT, RIGHT_TO_LEFT and Unknown, but all the fields are displaying component in a horizontal orientation. Is there any way to display button in verticle orientation using Class ComponentOrientaion?