i have a panel(BorderLayout) with some labels and tables and want to show it via JOptionPane. Somehow the result does not look as i want. (see image)
Here is the relevant code : ...
//init tablecontent
String[] obj_errColNames = {"WOC", "Error"};
String[][] obj_errTblData = new String[liFailFiles.size()][2];
n_entry = 0;
for(Entry<String,String> s : liFailFiles.entrySet()) {
obj_errTblData[n_entry][0] = s.getKey();
obj_errTblData[n_entry][1] = s.getValue();
n_entry++;
}
//add table into the panel
panel.add(new JScrollPane(tbl_err), BorderLayout.SOUTH);
tbl_err.setPreferredScrollableViewportSize(tbl_err.getPreferredSize());
tbl_err.setFillsViewportHeight(true);
As you can see in the Image the text in the Error column is not displayed full. What can i do ?