Skip to content

Introduce an interactive JTable#151

Draft
bric3 wants to merge 6 commits into
masterfrom
introduce-interactive-jtable
Draft

Introduce an interactive JTable#151
bric3 wants to merge 6 commits into
masterfrom
introduce-interactive-jtable

Conversation

@bric3

@bric3 bric3 commented Jan 26, 2023

Copy link
Copy Markdown
Owner

The goal is to have live component when hovering a row, but still optimize with light component tree.

Current progress

Screen.Recording.2023-01-26.at.23.47.25.mov

Remaining

  • No need for previous mouse clicks to enable editor interaction
  • Mouse exit are sent when the mouse enters an editor, thus breaking row hover and cell edition
  • Table mouse exit are not always emitted, if the mouse gets out too fast.
  • JTextArea is not rendering properly
  • cell editors rendering is off when using FlatLaf
  • Expandable panel are closed too early when the mouse is out of the bounds of the cell.
  • possible IndexOutOfBounds when accessing the tooltip of a component.
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 4
    	at java.base/java.util.Vector.elementData(Vector.java:762)
    	at java.base/java.util.Vector.elementAt(Vector.java:500)
    	at java.desktop/javax.swing.table.DefaultTableModel.getValueAt(DefaultTableModel.java:660)
    	at java.desktop/javax.swing.JTable.getValueAt(JTable.java:2706)
    	at io.github.bric3.fireplace.ui.table.InteractiveJTable.getToolTipText(InteractiveJTable.java:398)
    
  • Check can read colors from InteractiveJTable.rowStripeBackground keys.

@github-actions

Copy link
Copy Markdown

❌ Java CI with Gradle failed:

@bric3 bric3 force-pushed the introduce-interactive-jtable branch from 1c9b68d to b342fe2 Compare March 25, 2024 11:41
@bric3 bric3 force-pushed the introduce-interactive-jtable branch from b342fe2 to 75f60a3 Compare April 8, 2024 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant