GP-4275 Set accessible names of focusable components in component providers

This commit is contained in:
ghidragon
2024-03-12 12:27:12 -04:00
parent 317a881488
commit 5bca2c75c7
62 changed files with 565 additions and 202 deletions

View File

@@ -88,7 +88,8 @@ public class ByteViewerComponent extends FieldPanel implements FieldMouseListene
this.fm = fm;
this.layoutModel = layoutModel;
setName(model.getName());
setName("Byte Viewer");
getAccessibleContext().setAccessibleName("ByteViewer");
initialize();
// specialized line coloring

View File

@@ -37,8 +37,7 @@ public class InteractivePanelManager {
public InteractivePanelManager() {
JTable table = new JTable();
header = new JTableHeader();
table.setTableHeader(header);
header = table.getTableHeader();
columnModel = header.getColumnModel();
separatorWidth = (new JSeparator(SwingConstants.VERTICAL)).getPreferredSize().width;
mainPanel = new JPanel(new HeaderLayoutManager());
@@ -296,6 +295,7 @@ public class InteractivePanelManager {
}
record ComponentData(String name, JComponent component) {
@Override
public String toString() {
return name;
}