[ANN] Sudoku Plugin 0.9.0


I have uploaded a simple Sudoku Plugin to the
plugin repository. It can generate and display
sudokus with various difficulty levels. After
you have entered the missing digits into the
free cells, you can check whether your solution
is correct.

The plugin is in beta state; any feedback is
welcome. In particular, I have not checked the
plugin for UI issues in different IDE GUI
settings (such as L&F, colors, fonts ...).

Source code is available under
http://www.intellij.org/twiki/bin/view/Main/SudokuPlugin;
the code is currently completely uncommented;
depending on my spare time, this may or may
not change.

Best regards,
Jens

3 comments
Comment actions Permalink

Jens Voß wrote:

I have uploaded a simple Sudoku Plugin to the
plugin repository. It can generate and display
sudokus


Unfortunately, it can also generate a whole bunch
of IllegalStateExceptions.

An update to 0.9.1 is available for download.

Regards,
Jens

0
Comment actions Permalink

2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(277,476),button=1,modifiers=Button1,clickCount=2] on frame0
2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 5.1.2 Build #4247
2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.5.0_07
2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - Last Action: ActivateSudokuToolWindow
2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(277,476),button=1,modifiers=Button1,clickCount=2] on frame0
java.lang.NullPointerException
at de.jpv.sudoku.plugin.SudokuTable.checkSudoku(SudokuTable.java:72)
at de.jpv.sudoku.plugin.SudokuControl$3.actionPerformed(SudokuControl.java:83)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:9)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:109)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:1)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(159,477),button=1,modifiers=Button1,clickCount=1] on frame0
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 5.1.2 Build #4247
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.5.0_07
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - Last Action: ActivateSudokuToolWindow
2006-06-07 09:37:28,280 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(159,477),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at de.jpv.sudoku.plugin.SudokuTable.resetSudoku(SudokuTable.java:61)
at de.jpv.sudoku.plugin.SudokuControl$2.actionPerformed(SudokuControl.java:78)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:9)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:109)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:1)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(157,433),button=1,modifiers=Button1,clickCount=1] on frame0
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 5.1.2 Build #4247
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.5.0_07
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - Last Action: ActivateSudokuToolWindow
2006-06-07 09:37:28,717 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(157,433),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at de.jpv.sudoku.plugin.SudokuTable.setSudoku(SudokuTable.java:47)
at de.jpv.sudoku.plugin.SudokuControl$1.actionPerformed(SudokuControl.java:60)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:9)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:109)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:1)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

0
Comment actions Permalink

Brad L. wrote:



2006-06-07 09:37:27,592 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(277,476),button=1,modifiers=Button1,clickCount=2] on frame0
java.lang.NullPointerException
at de.jpv.sudoku.plugin.SudokuTable.checkSudoku(SudokuTable.java:72)


Okay, the first two NPEs are definitely going to be fixed
in the next update (until then just don't click on "Reset"
or "Check" before having worked on at least one game).

Regarding the third NPE: My guess is that you clicked
"New sudoku" multiple times in a short time, correct?
If that's the case, I'll probably come up with a fix, too.

Anyway, thanks very much for reporting these.

Regards,
Jens

0

Please sign in to leave a comment.