You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As shown in the stack trace below when selecting a text editor from a JTable the height is incorrect. I don't have recommendation for coding other than a special case to handel a -1 because problem is with the LAF defaults for Mac because if you override the row height of the JTable the correct size is used. I'm guessing that the Mac LAF is either not initializing the renderer correctly or JTextComponent is not calculating it's size when it should.
Note: Other look and feels work fine.
org.fest.swing.exception.ActionFailedException: Unable to make visible the location of the index '0' by scrolling the point (202,-1) on javax.swing.JTextField[name='Table.editor', text='', enabled=true, visible=true, showing=true]
at org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedException.java:33)
at org.fest.swing.driver.JTextComponentDriver.scrollToVisible(JTextComponentDriver.java:225)
at org.fest.swing.driver.JTextComponentDriver.access$000(JTextComponentDriver.java:62)
at org.fest.swing.driver.JTextComponentDriver$2.executeInEDT(JTextComponentDriver.java:197)
at org.fest.swing.driver.JTextComponentDriver$2.executeInEDT(JTextComponentDriver.java:194)
at org.fest.swing.edt.GuiQuery.run(GuiQuery.java:41)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
at org.fest.swing.edt.GuiActionRunner.execute(GuiActionRunner.java:73)
at org.fest.swing.driver.JTextComponentDriver.validateAndScrollToPosition(JTextComponentDriver.java:194)
at org.fest.swing.driver.JTextComponentDriver.selectAll(JTextComponentDriver.java:112)
at org.fest.swing.driver.JTextComponentDriver.replaceText(JTextComponentDriver.java:100)
at org.fest.swing.driver.JTableTextComponentEditorCellWriter.enterValue(JTableTextComponentEditorCellWriter.java:51)
at org.fest.swing.driver.BasicJTableCellWriter.enterValue(BasicJTableCellWriter.java:63)
at org.fest.swing.driver.JTableDriver.enterValueInCell(JTableDriver.java:567)
at org.fest.swing.fixture.JTableCellFixture.enterValue(JTableCellFixture.java:287)
Issue by Brad Stenning from Tue, 7 Sep 2010 22:10:00 -0500
Originally opened as http://jira.codehaus.org/browse/FEST-394
As shown in the stack trace below when selecting a text editor from a JTable the height is incorrect. I don't have recommendation for coding other than a special case to handel a -1 because problem is with the LAF defaults for Mac because if you override the row height of the JTable the correct size is used. I'm guessing that the Mac LAF is either not initializing the renderer correctly or JTextComponent is not calculating it's size when it should.
Note: Other look and feels work fine.
org.fest.swing.exception.ActionFailedException: Unable to make visible the location of the index '0' by scrolling the point (202,-1) on javax.swing.JTextField[name='Table.editor', text='', enabled=true, visible=true, showing=true]
at org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedException.java:33)
at org.fest.swing.driver.JTextComponentDriver.scrollToVisible(JTextComponentDriver.java:225)
at org.fest.swing.driver.JTextComponentDriver.access$000(JTextComponentDriver.java:62)
at org.fest.swing.driver.JTextComponentDriver$2.executeInEDT(JTextComponentDriver.java:197)
at org.fest.swing.driver.JTextComponentDriver$2.executeInEDT(JTextComponentDriver.java:194)
at org.fest.swing.edt.GuiQuery.run(GuiQuery.java:41)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
at org.fest.swing.edt.GuiActionRunner.execute(GuiActionRunner.java:73)
at org.fest.swing.driver.JTextComponentDriver.validateAndScrollToPosition(JTextComponentDriver.java:194)
at org.fest.swing.driver.JTextComponentDriver.selectAll(JTextComponentDriver.java:112)
at org.fest.swing.driver.JTextComponentDriver.replaceText(JTextComponentDriver.java:100)
at org.fest.swing.driver.JTableTextComponentEditorCellWriter.enterValue(JTableTextComponentEditorCellWriter.java:51)
at org.fest.swing.driver.BasicJTableCellWriter.enterValue(BasicJTableCellWriter.java:63)
at org.fest.swing.driver.JTableDriver.enterValueInCell(JTableDriver.java:567)
at org.fest.swing.fixture.JTableCellFixture.enterValue(JTableCellFixture.java:287)
votes (original issue): 1
watches (original issue): 1
The text was updated successfully, but these errors were encountered: