Os 10.6.4 sudoku solver widget

Since installing 10.6.4 the widget "sudoku solver" does not display right. I have tried downloading it anew with no good results. The display is stretched horizontally in a wierd way. Has anyone else experienced this & what is the fix ?

Hi! I'm still under 10.5, but I have experienced the same problem, both with this widget and with the "sudoku fun" widget. I wrote to the latter's website, but got no answer. I tried trashing the prefs, trashing the widgets, to no avail. It's quite strange. When I play "sudoku fun" in the dashboard, I find that sometimes the width of columns alters while I'm typing in numbers. Another thing: the reason why I downloaded sudoku solver was I was stuck with a newspaper sudoku, and it proved to be unsolvable, probably a misprint!
Any help appreciated, thanks!

Similar Messages

  • Threaded Sudoku solver - Assignment question (NOT LOOKING FOR ANSWERS  )

    Hi All,
    I'm going to be upfront and point out this is an assignment that i'm currently working on and i'm not receiving much in the way of feedback from the class forums.
    This is currently a 4th year OO assignment for UNSW Australia.
    What I am having trouble doing is figuring out where my program is deadlocking or dying. There have been a number of requirements set out by the assignment, basically no synchronization, no locking. We are able to use volatile, atomic, immutable and thread-local objects. The task is to find all solution for a given N x N sudoku problem using X number of threads. I have successfully built the solver (X = 0) without too much trouble and I thought i had managed to modify the recursive algorithm to suit but unfortunately I think I have come unstuck.
    Any generalized tips would be appreciated when implementing threads that utilise checking flags to determine when the thread is finished processing.
    Kind Regards,
    Chris Gibbs

    Honestly, I think that recursion (as you stated) would be the easiest way to have solved this problem. But as you stated, threads must be used to solve this problem as a requirement of the project...
    You could easily launch a Thread each time instead of calling your recursive method... that could possibly result in a crap load of threads, but the idea would work.
    Definitely take a look at the SwingWorker class here if you're able to use J2SE 6: [http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html|http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html]
    I currently use it while gathering data from several websites at the same time. What I did was create and execute() X number of MySwingWorker objects to collect the data, while they are not complete (i.e. MySwingWorker.isDone() is false) I just Thread.sleep(...).
    Give it a try. It may suit your needs.

  • BT Widget YVM105 Problem unable to use

    Hiya there
    Brand new YV user here
    I've set up the YV box and almost everything works really well, except The BT widget (the BT on the on demand section to access BT films etc.) now I have both an e-mail and phone confimation that it is et up but when I try and use it I get the following message.
    Sorry that's not working
    That player isnt responing at the moment. Please try again later
    For help go to youview.com/support and search for YVM105
    I have done all the checks there
    All other players seem to work fine, I have even watched iplayer in HD so i dont think it's a streaming or bandwidth problem, YV box is connected fine etc.
    Can anyone offer any suggestions, not sure if this will be an issue or not, but I am using the TP-Link TL-WR1043ND (Router DNS set to googles DNS servers), this has been working fine for the last year or so on BT Vision  ~~ UPDATE connected via BT home hub.. does not clear the problem~~
    many thanks
    Andy
    Solved!
    Go to Solution.

    Problem solved, widget started working in the evening.

  • Sudoku Program

    Write a Sudoku validator for 4x4 grids made up of 2x2 regions instead of 9x9 grids made up of 3x3 regions. Sudoku puzzles that use 4x4 grids only use the numerical digits 1 through 4 instead of 1 through 9.
    Things to Remember:
    -Dont use arrays
    -Input 16 values into 16 seperate variables
    -Try using only if and if/else statements
    Outcome should look something like this:
    Welcome to the Sudoku Checker v1.0!
    This program checks simple, small, 4x4 Sudoku grids for correctness. Each column, row and 2x2 region contains the numbers 1 through 4 only once.
    To check your Sudoku, enter your board one row at a time, with each digit separated by a space. Hit ENTER at the end of a row.
    Enter Row 1: 1 2 3 4
    Enter Row 2: 3 4 2 1
    Enter Row 3: 1 2 3 4
    Enter Row 4: 4 3 2 1
    Thank you. Now checking ...
    REG-1:GOOD
    REG-2:GOOD
    REG-3:GOOD
    REG-4:GOOD
    ROW-1:GOOD
    ROW-2:GOOD
    ROW-3:GOOD
    ROW-4:GOOD
    COL-1:BAD
    COL-2:BAD
    COL-3:GOOD
    COL-4:GOOD
    SUDO:INVALID

    I built a generic sudoku solver which not only validates, but suggests moves /solves an n x m (dimensions can be different and arbitrary) board by using an int[m][n] array for entered value and a Set<Integer>[m][n] for the possibilities. I added a method called runRules() and created rules off of the following two abstract classes.
    package tjacobs.games.sudoku;
    Remove possible values on cell row,col using the entered values in the board
    public abstract class AbstractCellRule {
         public abstract void runCellRule(SudokuBoard sudoku, int[][] board, int row, int col);
    package tjacobs.games.sudoku;
    import java.awt.Rectangle;
    For rules dealing with a range (row, column, box) in general, not focused on 1 particular cell
    public abstract class AbstractRangeRule {
         public abstract void runRangeRule(SudokuBoard sudoku, int[][] board, Rectangle bounds);
    }

  • Sudoku "insane" grids

    I bought that game a few eeks ago. Like it, well done. But I am disappointed with the apparently limited number of different grids available. In particular, the "insane" level seems to contain only two different grids. Is this true?
    I tried to contact Apple Switzerland, but they sent me to a wrong place: iTunes services.
    CP

    I built a generic sudoku solver which not only validates, but suggests moves /solves an n x m (dimensions can be different and arbitrary) board by using an int[m][n] array for entered value and a Set<Integer>[m][n] for the possibilities. I added a method called runRules() and created rules off of the following two abstract classes.
    package tjacobs.games.sudoku;
    Remove possible values on cell row,col using the entered values in the board
    public abstract class AbstractCellRule {
         public abstract void runCellRule(SudokuBoard sudoku, int[][] board, int row, int col);
    package tjacobs.games.sudoku;
    import java.awt.Rectangle;
    For rules dealing with a range (row, column, box) in general, not focused on 1 particular cell
    public abstract class AbstractRangeRule {
         public abstract void runRangeRule(SudokuBoard sudoku, int[][] board, Rectangle bounds);
    }

  • Sudoku Sample Module

    <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">Here&#39;s a simple Sudoku solver as an example of CAL code.  This is just a toy (something one of our developers knocked up in his spare time after a brief discussion on Sudoku in the coffee room!).  However, it demonstrates a CAL module that does something interesting, and a body of &#39;real&#39; CAL code for inspection.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">Try this out in the Gem Cutter:</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">1. Load the Sudoku module into the workspace temporarily and switch to that module</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana"><span class="Apple-style-span">- Download the attached ZIP file, containing Sudoku.cal</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- In the Gem Cutter, use the following menu option "Workspace->Add Module->Imported from local file...".  Locate the downloaded .cal file and choose it.  This file will now be added temporarily to the workspace.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Go to the browser on the LHS of the Gem Cutter and scroll to the bottom.  The Sudoku module will appear at the bottom and will be rendered grey.  This is because it is not imported into the current module the Gem Cutter is designing Gems in.  </p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Right click the greyed out Sudoku module name (get its context menu).  Select "Change to this Module".  The Gem Cutter will now be focused on this module, and all public, private and protected Gems therein will be available for use on the Table Top. </p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">2. Try some of the Gems - making puzzles</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Drag &#39;makeRandomSudokuPuzzle&#39; onto the Table Top</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Connect it&#39;s output to the &#39;show&#39; Gem (use IntelliCut or drag &#39;show&#39; in from the browser)</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Run this combination (from the context menu of &#39;show&#39;, or toolbar)</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Provide the construction parameters.  size=3, nFilledValues=24.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Continue to execute (run on the toolbar)</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- When the Value Output Panel pops up, click its ellipsis button to get a proper rendering of the puzzle</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">3. Try some of the Gems - solving puzzles</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Disconnect the two Gems (from 2, above)</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Drag &#39;dumpSolutions&#39; onto the Table Top</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Connect &#39;makeRandomSudokuPuzzle&#39; to &#39;dumpSolutions&#39;</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Run this combination</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Provide the construction parameters (perhaps the same as above)</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- Continue to execute (run on the toolbar)</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">- When the Value Output Panel pops up, click its ellipsis button to get a proper rendering of the solutions</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana">Of course, it&#39;s possible to configure puzzles to be so large as to require too much time/resources to process (given the implementations of solvers herein).  If you need to stop execution at any point, you can simply press the &#39;stop&#39; button on the toolbar.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"> </p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Verdana; min-height: 12px"><br /></p>

    Hi Kumar,
    this is a sample code with five push buttons one of which is a cancel button and i/o field..
    DATA: OK_CODE LIKE SY-UCOMM,
    SAVE_OK LIKE OK_CODE,
    OUTPUT(8) TYPE C.
    CALL SCREEN 100.
    <b>MODULE USER_COMMAND_0100 INPUT.</b>
    SAVE_OK = OK_CODE.
    CLEAR OK_CODE.
    CASE SAVE_OK.
    WHEN 'BUTTON_EXIT'.
    LEAVE PROGRAM.
    WHEN 'BUTTON_1'.
    OUTPUT = 'Button 1'(001).
    WHEN 'BUTTON_2'.
    OUTPUT = 'Button 2'(002).
    WHEN 'BUTTON_3'.
    OUTPUT = 'Button 3'(003).
    WHEN 'BUTTON_4'.
    OUTPUT = 'Button 4'(004).
    WHEN OTHERS.
    OUTPUT = SAVE_OK.
    ENDCASE.
    ENDMODULE.
    in this..The screen flow logic is as follows...
    PROCESS BEFORE OUTPUT.
    MODULE INIT_SCREEN_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100...
    When the user chooses a pushbutton, the PAI event is triggered...
    The function code
    of the pushbutton is assigned to the screen field OK_CODE, which is then passed
    onto the ABAP field with the same name...
    The module USER_COMMAND_0100 is
    then processed....
    a text symbol is assigned to the OUTPUT field
    according to the button that the user chose. This is displayed in the output field on
    the screen. If the user chooses Cancel, the program ends.

  • How to Design a Sudoku Grid

    I'm designing a Sudoku Solver program and I need to represent the grid. How would you suggest I design it? Using buttons, labels, Table? What would you suggest?

    Custom components in a GridLayout. When I solve a sudoku by hand, I notate the cell with the numbers I've eliminated, so if I jot:
    ..This means I've eliminated 1, 3, 5, 6, 7 and 8. You can define a custom component to draw these dots.
    (This is assuming you want your GUI to be interactive -- allow a user to try to solve the puzzle, or show how your algorithm solves it, step by step.)

  • Internet stops for no apparent reason.

    My mac mini has been in use since about 2009 with no issues.  It runs 10.7.5 and has 2Gb RAM. It is connected to my airport base station via a 16 port gigabit switch (I haven't yet tried wifi to see if I get the same problem).
    The problem started about a week ago.  What happens is that while browsing the internet using firefox or safari, pages suddenly fail to load.
    This can include watching catch-up TV - it suddenly stops playing and then I find that no other web pages will load in either browser.  A re-boot solves the problem for a while.
    When the problem occurs, I am still able to browse web pages from other computers or iPhone etc. so I don't believe it is anything to do with my ADSL connection, modem or router.  Also when the problem occurs, my computer is still able to download mail from the internet into Mail and view my IP-cam on my LAN (to my recording software - not yet tried opening it in safari but I suspect it won't work).  But this all proves that the MAC MINI still has connection to the intent via its ethernet connection but it just can't load web pages.
    I have checked that it is not a DNS issue by trying to open a web page by its IP address, this failed.  I will try pinging webpages and their corresponding IP address to see what happens.
    I opened iStat and when there is a problem, most of the RAM is in use, the CPU has a high load and this is being used by an app called "web filter…" (couldn't see the full name because the window was too small to show it all).  After a re-boot, CPU and memory usage returns to normal levels and the "web filter…" app is gone.  I tried a spotlight search for web filter but came up blank.  I have taken a screen shot of activity monitor while everything is OK and will do another the next time I get this issue.
    I hope someone can shed some light on this.
    Thanks very much
    Grommett

    Hi Linc
    The machine has been fine for over 24 hours until just now.  Web pages stopped loading so I ran your test.  I hope you can find the answer somewhere in this!...
    Many thanks
    Grommett
    Start time: 20:35:05 12/07/14
    Model Identifier: Macmini2,1
    Memory: 2 GB
    System Version: Mac OS X 10.7.5 (11G63)
    Kernel Version: Darwin 11.4.2
    64-bit Kernel and Extensions: No
    Time since boot: 1 day1:49
    Admin access: No
    Memory
      BANK 0/DIMM0:
      Size: 1 GB
      Speed: 667 MHz
      Status: OK
      Manufacturer: 0x2C00000000000000
      BANK 1/DIMM1:
      Size: 1 GB
      Speed: 667 MHz
      Status: OK
      Manufacturer: 0x2C00000000000000
    SATA
      ST1000LM024 HN-M101MBB
    USB
      Backup+ Desk (Seagate LLC)
    Diagnostic reports
      2014-12-06 AppleIDAuthAgent crash
      2014-12-06 PluginProcess crash
      2014-12-06 WebProcess crash
      2014-12-06 iTunes crash x2
      2014-12-06 xeoma crash x20
    Log
      Dec 6 10:41:42 com.apple.mdworker.pool.0: Throttling respawn: Will start in 3 seconds
      Dec 6 14:15:30 com.apple.AirPortBaseStationAgent: Throttling respawn: Will start in 3 seconds
      Dec 6 18:21:29 com.apple.AirPortBaseStationAgent: Throttling respawn: Will start in 2 seconds
    kexts
      e.iokit.IOACPIFamily (1.4)
      e.iokit.IOPCIFamily (2.7)
      e.driver.AppleACPIPlatform (1.5)
      e.driver.AppleKeyStore (28.18)
      e.iokit.IOStorageFamily (1.7.2)
      e.driver.DiskImages (331.7)
    e.driver.AppleIntelCPUPowerManagement (195.0.0)
      e.security.TMSafetyNet (8)
      e.kext.AppleMatch (1.0.0d1)
      e.security.sandbox (177.11)
      e.security.quarantine (1.4)
      e.nke.applicationfirewall (3.2.30)
    e.driver.AppleIntelCPUPowerManagementClient (195.0.0)
      e.driver.AppleAPIC (1.6)
      e.iokit.IOSMBusFamily (1.1)
      e.driver.AppleACPIEC (1.5)
      e.driver.AppleSMBIOS (1.9)
      e.iokit.IOHIDFamily (1.7.1)
      e.driver.AppleACPIButtons (1.5)
      e.driver.AppleRTC (1.5)
      e.driver.AppleEFIRuntime (1.6.1)
      e.driver.AppleEFINVRAM (1.6.1)
      e.iokit.IOUSBFamily (5.1.0)
      e.driver.AppleUSBUHCI (5.1.0)
      e.driver.AppleUSBEHCI (5.1.0)
      e.driver.AppleHPET (1.7)
      e.iokit.IONetworkingFamily (2.1)
      e.iokit.AppleYukon2 (3.2.2b1)
      e.iokit.IOFireWireFamily (4.4.8)
      e.driver.AppleFWOHCI (4.9.0)
      e.iokit.IOAHCIFamily (2.0.8)
      e.driver.AppleAHCIPort (2.3.1)
      e.iokit.IOUSBUserClient (5.0.0)
      e.driver.AppleUSBHub (5.1.0)
      e.iokit.IOATAFamily (2.5.1)
      e.driver.AppleIntelPIIXATA (2.5.1)
      e.iokit.IOAHCIBlockStorage (2.1.0)
    e.iokit.IOSCSIArchitectureModelFamily (3.2.1)
      e.iokit.IOATAPIProtocolTransport (3.0.0)
      e.driver.XsanFilter (404)
      e.iokit.SCSITaskUserClient (3.2.1)
      e.iokit.IOCDStorageFamily (1.7.1)
      e.iokit.IODVDStorageFamily (1.7.1)
      e.iokit.IOBDStorageFamily (1.7)
    e.iokit.IOSCSIMultimediaCommandsDevice (3.2.1)
      e.BootCache (33)
    e.AppleFSCompression.AppleFSCompressionTypeZlib (1.0.0d1)
    e.AppleFSCompression.AppleFSCompressionTypeDataless (1.0.0d1)
      e.driver.AppleUSBComposite (5.0.0)
      e.iokit.IOUSBAttachedSCSI (1.0.2)
      e.iokit.IOSCSIBlockCommandsDevice (3.2.1)
      e.iokit.IOUSBHIDDriver (5.0.0)
      e.driver.AppleIRController (312)
      e.iokit.IOBluetoothFamily (4.0.8f17)
    e.driver.AppleUSBBluetoothHCIController (4.0.8f17)
    e.driver.CSRUSBBluetoothHCIController (4.0.8f17)
      e.driver.IOPlatformPluginFamily (5.1.1d6)
      e.iokit.IOGraphicsFamily (2.3.4)
      e.iokit.IONDRVSupport (2.3.4)
      e.driver.IOPlatformPluginLegacy (5.0.0d8)
      e.driver.AppleSMC (3.1.3d10)
      e.driver.ACPI_SMC_PlatformPlugin (5.0.0d8)
      e.driver.AppleSMBusController (1.0.10d0)
      e.driver.AppleMCCSControl (1.0.33)
      e.driver.AppleUpstreamUserClient (3.5.9)
      e.iokit.IOHDAFamily (2.2.5a5)
      e.driver.AppleHDAController (2.2.5a5)
      e.driver.AppleLPC (1.6.0)
      e.iokit.IOFireWireIP (2.2.5)
      e.iokit.IO80211Family (420.3)
      e.driver.AirPort.Atheros21 (431.14.10)
    e.driver.AppleIntelIntegratedFramebuffer (7.0.4)
      e.driver.AppleGraphicsControl (3.1.33)
      e.driver.ApplePolicyControl (3.1.33)
      e.kext.OSvKernDSPLib (1.3)
      e.iokit.IOAudioFamily (1.8.6fc18)
      osiaSW.AudioSupport (2.3.6)
      e.driver.AudioIPCDriver (1.2.3)
      e.Dont_Steal_Mac_OS_X (7.0.0)
      e.iokit.IOSerialFamily (10.0.5)
      e.iokit.IOBluetoothSerialManager (4.0.8f17)
      e.iokit.IOSurface (80.0.2)
      e.iokit.IOUserEthernet (1.0.0d1)
      e.driver.DspFuncLib (2.2.5a5)
      e.driver.AppleHDA (2.2.5a5)
      e.driver.AppleIntelGMA950 (7.0.4)
      e.driver.AudioAUUC (1.59)
      e.kext.triggers (1.0)
      e.filesystems.autofs (3.0)
      re.kext.vmx86 (2.0.0)
      re.kext.vmci (2.0.0)
      re.kext.vmioplug (2.0.0)
      re.kext.vmnet (2.0.0)
      e.driver.IOBluetoothHIDDriver (4.0.8f17)
      e.driver.AppleMultitouchDriver (231.4)
      e.driver.AppleBluetoothMultitouch (70.12)
      e.driver.AppleHIDKeyboard (160.7)
      e.driver.AppleBluetoothHIDKeyboard (160.7)
      e.nke.webcontentfilter (3.0)
      e.filesystems.smbfs (1.7.2)
    Agents
      com.apple.AirPortBaseStationAgent
      com.nero.HSMMonitor
      com.google.keystone.user.agent
    com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.UUID
    Startup items
    /Library/StartupItems/AGMacFSWatcher/AGMacFSWatcher
    /Library/StartupItems/AGMacFSWatcher/StartupParameters.plist
    /Library/StartupItems/IntegoCommon/IntegoCommon
    /Library/StartupItems/IntegoCommon/StartupParameters.plist
    /Library/StartupItems/IntegoCommon/TaskManagerDaemon
    /Library/StartupItems/IntegoCommon/TM_Notifier.app/Contents/Info.plist
    /Library/StartupItems/IntegoCommon/TM_Notifier.app/Contents/MacOS/TM_Notifier
    Bundles
    /Library/Audio/Plug-Ins/Components/A52Codec.component
      - com.shepmater.A52Codec
      /Library/Internet Plug-Ins/Disabled Plug-Ins/Windows Media Plugin
      - com.microsoft.WMP.defaultplugin
      /Library/Internet Plug-Ins/Disabled Plug-Ins/Windows Media Plugin/Contents/Resources/English.lproj
      - N/A
      /Library/Internet Plug-Ins/DivXBrowserPlugin.plugin
      - com.divx.DivXBrowserPlugin
      /Library/Internet Plug-Ins/DRM Plugin.bundle
      - com.microsoft.DRMPlugin
      /Library/Internet Plug-Ins/Flip4Mac WMV Plugin.plugin
      - net.telestream.wmv.plugin
      /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
      - com.apple.java.JavaAppletPlugin
      /Library/Internet Plug-Ins/Silverlight.plugin
      - com.microsoft.SilverlightPlugin
    /Library/PreferencePanes/DivX.prefPane
      - com.divx.divxprefs
      /Library/PreferencePanes/Flash Player.prefPane
      - com.adobe.flashplayerpreferences
      /Library/PreferencePanes/Flip4Mac WMV.prefPane
      - net.telestream.wmv.prefpane
    /Library/PreferencePanes/NetUpdate.prefPane
      - com.intego.preference.netupdate
    /Library/PreferencePanes/Perian.prefPane
      - org.perian.PerianPane
    /Library/QuickTime/AC3MovieImport.component
      - com.cod3r.ac3movieimport
      /Library/QuickTime/DivX Decoder.component
      - com.DivXInc.DivXDecoder
      /Library/QuickTime/DivX Decoder.component/Contents/Resources
      - com.DivXInc.DivXDecoder
      /Library/QuickTime/DivX Encoder.component
      - com.DivXInc.DivXCodec
      /Library/QuickTime/Flip4Mac WMV Advanced.component
      - net.telestream.wmv.advanced
      /Library/QuickTime/Flip4Mac WMV Export.component
      - net.telestream.wmv.export
      /Library/QuickTime/Flip4Mac WMV Import.component
      - net.telestream.wmv.import
      /Library/QuickTime/Perian.component
      - org.perian.Perian
      /Library/ScriptingAdditions/Adobe Unit Types.osax
      - N/A
      /Library/Spotlight/iMovie.mdimporter
      - com.apple.iMovieMDImporter
      /Library/Widgets/Intego Status.wdgt
      - com.intego.widget
      /Library/Widgets/NetUpdate.wdgt
      - com.intego.widget.netupdate
      Library/Internet Plug-Ins/Google Earth Web Plug-in.plugin
    - com.Google.GoogleEarthPlugin.plugin
      Library/Internet Plug-Ins/RealPlayer Plugin.plugin
      - com.RealNetworks.RealPlayerPlugin
      Library/Widgets/BluetoothTexter.wdgt
    - com.happymakinggames.widget.bluetoothtexter
      Library/Widgets/Chrysalis.wdgt
    - com.reflectivelayer.widget.chrysalis
      Library/Widgets/iStat pro 21-55-17-604.wdgt
      - com.iSlayer.iStatpro4.widget
      Library/Widgets/iStat pro.wdgt
      - com.iSlayer.iStatpro4.widget
      Library/Widgets/Sudoku.wdgt
      - com.bdeboer.widget.sudoku
      Library/Widgets/TideApp.wdgt
      - com.atlantistech.widget.tideapp
      Library/Widgets/Tides.wdgt
      - com.hahn.widget.tides
    dylibs
      /usr/lib/libbz2.1.0.3.dylib
      /usr/lib/libgimpprint.7.dylib
      /usr/lib/libgutenprint.2.0.3.dylib
    /usr/lib/libPrintServiceQuota.1.dylib
    Contents of /System/Library/LaunchAgents/com.apple.iCalPush.plist (checksum 2684394709)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.apple.iCalPush</string>
    <key>LimitLoadToSessionType</key>
      <array>
    <string>LoginWindow</string>
      <string>Aqua</string>
      </array>
      <key>MachServices</key>
      <dict>
    <key>com.apple.iCalPush</key>
      <true/>
      </dict>
      <key>ProgramArguments</key>
      <array>
    <string>/Applications/iCal.app/Contents/Resources/iCalPush</string>
      </array>
      </dict>
      </plist>
    Contents of /System/Library/LaunchAgents/com.apple.screensharing.MessagesAgent.plist (checksum 4254080775)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>EnableTransactions</key>
      <true/>
      <key>Label</key>
    <string>com.apple.screensharing.MessagesAgent</string>
      <key>ProgramArguments</key>
      <array>
    <string>/System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Cont ents/MacOS/AppleVNCServer</string>
      </array>
      <key>MachServices</key>
      <dict>
    <key>com.apple.screensharing.MessagesAgent</key>
      <true/>
      </dict>
      <key>RunAtLoad</key>
      <false/>
      </dict>
      </plist>
    Contents of /System/Library/LaunchAgents/org.x.startx.plist (checksum 355348819)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
      <string>org.x.startx</string>
      <key>ProgramArguments</key>
      <array>
    <string>/usr/X11/bin/startx</string>
      </array>
      <key>Sockets</key>
      <dict>
      <key>org.x:0</key>
      <dict>
      <key>SecureSocketWithKey</key>
      <string>DISPLAY</string>
      </dict>
      </dict>
      <key>ServiceIPC</key>
      <true/>
      <key>EnableTransactions</key>
      <true/>
      </dict>
      </plist>
    Contents of /System/Library/LaunchDaemons/com.apple.xprotectupdater.plist (checksum 3591382872)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.apple.xprotectupdater</string>
      <key>ProgramArguments</key>
      <array>
    <string>/usr/libexec/XProtectUpdater</string>
      </array>
      <key>RunAtLoad</key>
      <true/>
      <key>StartCalendarInterval</key>
      <dict>
      <key>Hour</key>
      <integer>22</integer>
      <key>Minute</key>
      <integer>19</integer>
      </dict>
      </dict>
      </plist>
    Contents of /Library/LaunchDaemons/com.intego.VirusBarrier.daemon.plist (checksum 430929910)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.intego.VirusBarrier.daemon</string>
      <key>OnDemand</key>
      <false/>
      <key>ProgramArguments</key>
      <array>
    <string>/Library/Intego/virusbarrier.bundle/Contents/Resources/virusbarrierd</st ring>
      </array>
      <key>RunAtLoad</key>
      <true/>
      </dict>
      </plist>
    Contents of /Library/LaunchDaemons/com.intego.VirusBarrier.logger.daemon.plist (checksum 911422826)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.intego.VirusBarrier.logger.daemon</string>
      <key>OnDemand</key>
      <false/>
      <key>ProgramArguments</key>
      <array>
    <string>/Library/Intego/virusbarrier.bundle/Contents/Resources/virusbarrierl</st ring>
      </array>
      <key>RunAtLoad</key>
      <true/>
      </dict>
      </plist>
    Contents of /Library/LaunchDaemons/com.intego.VirusBarrier.scanner.daemon.plist (checksum 2106093038)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.intego.VirusBarrier.scanner.daemon</string>
      <key>OnDemand</key>
      <false/>
      <key>ProgramArguments</key>
      <array>
    <string>/Library/Intego/virusbarrier.bundle/Contents/Resources/virusbarriers</st ring>
      <string>-m</string>
      </array>
      <key>RunAtLoad</key>
      <true/>
      </dict>
      </plist>
    Contents of /Library/LaunchDaemons/com.intego.task.manager.daemon.plist (checksum 4102722290)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd >
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.intego.task.manager.daemon</string>
      <key>ProgramArguments</key>
      <array>
    <string>/Library/StartupItems/IntegoCommon/TaskManagerDaemon</string>
      </array>
      <key>OnDemand</key>
      <false/>
      <key>RunAtLoad</key>
      <true/>
      </dict>
      </plist>
    Contents of /Library/LaunchDaemons/com.vmware.launchd.vmware.plist (checksum 1467462916)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
    "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.vmware.launchd.vmware</string>
      <key>ProgramArguments</key>
      <array>
    <string>/Library/Application Support/VMware Fusion/boot.sh</string>
    <string>--start</string>
      </array>
      <key>RunAtLoad</key>
      <true/>
      </dict>
      </plist>
    Contents of Library/LaunchAgents/com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.UUID. plist (checksum 1312073118)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.UUID</string>
      <key>ProgramArguments</key>
      <array>
    <string>/System/Library/Frameworks/AddressBook.framework/Resources/AddressBookSo urceSyncScheduleHelper</string>
      <string>-scheduleSync</string>
      <string>UUID</string>
      </array>
      <key>StartInterval</key>
      <integer>120000</integer>
      </dict>
      </plist>
    Contents of Library/LaunchAgents/com.google.keystone.agent.plist (checksum 3876858404)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.google.keystone.user.agent</string>
      <key>LimitLoadToSessionType</key>
      <string>Aqua</string>
      <key>ProgramArguments</key>
      <array>
    <string>/Users/USER/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bun dle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwa reUpdateAgent</string>
      <string>-runMode</string>
      <string>ifneeded</string>
      </array>
      <key>RunAtLoad</key>
      <true/>
      <key>StartInterval</key>
      <integer>3523</integer>
      <key>StandardErrorPath</key>
      <string>/dev/null</string>
      <key>StandardOutPath</key>
      <string>/dev/null</string>
      </dict>
      </plist>
    Contents of Library/LaunchAgents/com.nero.HSMMonitor.plist (checksum 3334467695)
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>Label</key>
    <string>com.nero.HSMMonitor</string>
      <key>ProgramArguments</key>
      <array>
      <string>/Applications/HTC Sync Manager 2.app/Contents/Resources/HSMMonitor.app/Contents/MacOS/HSMMonitor</string>
      <string>-runMode</string>
      <string>autoLaunched</string>
      </array>
      <key>RunAtLoad</key>
      <true/>
      </dict>
      </plist>
    Font issues: 63
    Bad plists
    Library/Preferences/ByHost/com.apple.DotMacSync.001ff346e9fa.plist
    Library/Preferences/ByHost/com.apple.iWork.001ff346e9fa.plist
    Library/Preferences/ByHost/com.apple.PrefPane.Network.001ff346e9fa.plist
    Library/Preferences/ByHost/com.apple.QuickTime.001ff346e9fa.plist
    Library/Preferences/ByHost/com.apple.screensaver.Nature Patterns.001ff346e9fa.plist
    Library/Preferences/ByHost/com.apple.screensaver.slideshow.001ff346e9fa.plist
    Library/Preferences/com.solidstatenetworks.awkhost.plist
    Library/Preferences/com.solidstatenetworks.host.plist
    Parental Controls: On
    User login items
      DiskWarriorStarter
    - /Applications/Utilities/DiskWarrior.app/Contents/MacOS/DiskWarriorStarter.app
      iTunes
      - /Applications/iTunes.app
      OpenDNS Updater
      - /Users/USER/Applications/OpenDNS Updater.app
      xeoma
      - /Applications/xeoma.app
    Widgets
      iStat pro
      Tides
    Restricted files: 242
    Lockfiles: 3
    Elapsed time (s): 190

  • Retrieving values entered in a JTable

    Hi!
    I have made a sudoku solver as many others, but in the purpose of learning recursion, and now I am implementing GUI to that program. I have bean strugling to set up a table that shows the sudokutable, and most of all how to recieve the values entered into the table. I have looked at forums and search at google, but all the topics on this is not good enough. I just simply do not understand what they mean. Most often they just say: "Just paste this code in and it will turn out as intended". I want to know how it works.
    I have added the code below:
    import javax.swing.*;
    import javax.imageio.*;
    import java.awt.*;
    import java.awt.event.*;
    import easyIO.*;
    import java.util.*;
    import java.io.*;
    * Klassen Oblig3 som inneholder main metoden som starter programmet.
    * Dette er Utsynen for programmet.
    * @Param ru - Peker til klassen Rute.
    * @Param br - Peker til klassen Brett.
    * @Param skrivebord - En ny desktpoPane som representerer hovedvinduet..
    public class Oblig3 extends JFrame implements ActionListener {
         Rute  ru   = new Rute();
         Brett br   = new Brett(ru);
         ImageIcon icon;
         Image image;
         JDesktopPane skrivebord;
          * Konstrukt�ren Oblig3 som setter opp hovedvinduet.
          * @Param skjemrStorelse - Lagrer st�relsen p� skjermen.
         public Oblig3() {
              super("Oblig3");
              int innrykk = 400;
              Dimension skjermStorelse = Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(innrykk, innrykk, skjermStorelse.width  - innrykk*3, skjermStorelse.height - innrykk*2);
              skrivebord = new JDesktopPane()
                   Image im = (new ImageIcon("bilder/panzer.gif")).getImage();
                   public void paintComponent(Graphics g){
                        g.drawImage(im,0,0,this);
              setContentPane(skrivebord);
              setJMenuBar(lagMenyList());
              skrivebord.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
         } // Slutt p� konstrukt�ren Oblig3
         * JMenuBar metoden som gir menyen til hovedvinduet.
         * @Param menyList - Peker p� et MenuBar objekt.
         * @Param meny# - Menyene p� menylisten.
         * @Param menyObjekt - Et valg p� gitt meny.
         protected JMenuBar lagMenyList() {
              JMenuBar menyList = new JMenuBar();
              // F�rste menyen
              JMenu meny1 = new JMenu("Fil");
              meny1.setMnemonic(KeyEvent.VK_F);
              menyList.add(meny1);
                   // Gruppe1 med JMenuObjekt
                   JMenuItem menyObjekt = new JMenuItem("�pne brett", new ImageIcon("bilder/folder.gif"));
                   menyObjekt.setMnemonic(KeyEvent.VK_O);
                   menyObjekt.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK));
                   menyObjekt.setActionCommand("�pne brett");
                   menyObjekt.addActionListener(this);
                   meny1.add(menyObjekt);
                   menyObjekt = new JMenuItem("Spare brett", new ImageIcon("bilder/floppy.gif"));
                   menyObjekt.setMnemonic(KeyEvent.VK_S);
                   menyObjekt.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));
                   menyObjekt.setActionCommand("Spare brett");
                   menyObjekt.addActionListener(this);
                   meny1.add(menyObjekt);
                   meny1.addSeparator();
                   menyObjekt = new JMenuItem("Exit");
                   menyObjekt.setMnemonic(KeyEvent.VK_ESCAPE);
                   menyObjekt.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, ActionEvent.CTRL_MASK));
                   menyObjekt.setActionCommand("Exit");
                   menyObjekt.addActionListener(this);
                   meny1.add(menyObjekt);
              // Lage den andre menyen
              JMenu meny2 = new JMenu("Edit");
              meny1.setMnemonic(KeyEvent.VK_E);
              menyList.add(meny2);
                   // Gruppe2 med JMenObjekt
                   menyObjekt = new JMenuItem("L�s Brett");
                   menyObjekt.setMnemonic(KeyEvent.VK_L);
                   menyObjekt.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
                   menyObjekt.setActionCommand("L�s Brett");
                   menyObjekt.addActionListener(this);
                   meny2.add(menyObjekt);
                   menyObjekt = new JMenuItem("Lag eget brett");
                   menyObjekt.setMnemonic(KeyEvent.VK_L);
                   menyObjekt.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.ALT_MASK));
                   menyObjekt.setActionCommand("Lag eget brett");
                   menyObjekt.addActionListener(this);
                   meny2.add(menyObjekt);
              // Lage den tredje menyen
              JMenu meny3 = new JMenu("Hjelp");
              meny1.setMnemonic(KeyEvent.VK_H);
              menyList.add(meny3);
                   // Gruppe3 med JMenObjekt
                   menyObjekt = new JMenuItem("Version?");
                   menyObjekt.setActionCommand("Version?");
                   menyObjekt.addActionListener(this);
                   meny3.add(menyObjekt);
                   menyObjekt = new JMenuItem("www.dresas.com");
                   menyObjekt.setActionCommand("www.dresas.com?");
                   menyObjekt.addActionListener(this);
                   meny3.add(menyObjekt);
              return menyList;
         } // Slutt p� JMenuBar metoden.
         * Metode som lytter p� menyval mm.
         public void actionPerformed(ActionEvent e) {
              if(e.getActionCommand().equals("�pne brett")) {
                   lesFraFil();
              } else if (e.getActionCommand().equals("L�s Brett")) {
                   losning();
              } else if (e.getActionCommand().equals("Exit")) {
                   System.exit(0);
              } else if (e.getActionCommand().equals("Version?")) {
                   version();
              } else if (e.getActionCommand().equals("www.dresas.com")) {
                   link();
              } else if (e.getActionCommand().equals("Lag eget brett")) {
                   lagEgetBrett();
              } // Slutt p� if-else-if setning.
         * Metoden lesFraFil som ber om navn p� fil fra bruker
         * via grensesnittet.
         protected void lesFraFil() {
              final String losFraFil = JOptionPane.showInputDialog(null, "Skriv inn navn p� filen.");
              svarLesFraFil(losFraFil + ".txt");
         } // Slutt p� metoden losFraFil
         * Metoden svarLesFaFil som gir resultat p� inlesning fra fil.
         protected void svarLesFraFil(String filnavn) {
              boolean rF = br.lesBrettFraFil(filnavn);
              if(rF == true) {
                    JOptionPane.showMessageDialog(this, "Filen er lest inn");
              } else {
                    JOptionPane.showMessageDialog(this, "Filen ble ikke lest inn,\n (husk sm� og store bokstaver)");
              } // Slutt p� if-else
         } // Slutt p� metoden svarLosFraFil
         * Metoden losning som gir resultat p� l�st brett.
         protected void losning() {
              ru.provAlleSifferMegOgResten(0);
              br.skrivLosning();
         } // Slutt p� metoden losning
         protected void version() {
              JOptionPane.showMessageDialog(null, "Dette er version 0.7");
         protected void link() {
              OpenBrowser op = new OpenBrowser();
              op.displayURL("www.dresas.com");
         } // Slutt p� metoden link
         * Metoden lagEgetBrett som lar brukeren tegne sitt eget
         * brett og l�se det.
         * @Param ramme - Peker p� objektet av klassen InternRamme som
         *                setter opp det interne vinduet.
         protected void lagEgetBrett() {
              int boksBredde = 3;
              int boksHojde  = 3;
              int brettStorelse = 9;
              boolean b1 = true;
              while (b1) {
                   boksBredde = Integer.parseInt(JOptionPane.showInputDialog(null, "Skriv inn Bredde p� boksen. (2-4)"));
                   if (boksBredde > 1 && boksBredde < 5) {
                        boksHojde  = Integer.parseInt(JOptionPane.showInputDialog(null, "Skriv inn H�jde p� boksen. (3-4)"));
                        if (boksHojde > 2 && boksHojde < 5) {
                             b1 = false;
                        } else {
                             JOptionPane.showMessageDialog(null, "M� vaere mellom 3 og 4.");
                             continue;
                   } else {
                        JOptionPane.showMessageDialog(null, "M� vaere mellom 2 og 4.");
                        continue;
              brettStorelse = boksBredde * boksHojde;
              InternRamme ramme = new InternRamme(brettStorelse * 16, brettStorelse * 16);
                   Object[][] data = new Object[brettStorelse][brettStorelse];
                   for (int i = 0;i < brettStorelse;i++) {
                        for (int j = 0; j < brettStorelse;j++) {
                             data[i][j] = 0;
                   String[] columnNames = new String[brettStorelse];
                   for (int i = 0; i < brettStorelse;i++) {
                        int b = 1 + i;
                        columnNames[i] = String.valueOf(b);
                   JTable sudokuTabell = new JTable(data, columnNames);
                   sudokuTabell.setGridColor (new Color (tilfeldig(256), tilfeldig(256), tilfeldig(256)));
                   sudokuTabell.setFont(new Font ("Tahoma", Font.PLAIN, 16));
                   setVisible(true);
              ramme.add(sudokuTabell);
              ramme.setVisible(true);
              skrivebord.add(ramme);
              try {
                   ramme.setSelected(true);
              } catch (java.beans.PropertyVetoException e) {}
         } // Slutt p� klassen lagEgetBrett
         * Metode som returnerer tilfeldigt verdi st�rre en 0 og mindre
         * en maks.
         public static int tilfeldig (int maks) {
              return (int) (Math.random () * maks);
        * Metoden utsyn som tegner opp programmet p� skjermen.
        * @Param frame - Peker p� objektet Oblig3.
        private static void utsyn() {
            //Create and set up the window.
            Oblig3 frame = new Oblig3();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Display the window.
            frame.setVisible(true);
        } // Slutt p� metoden utsyn.
        * Metoden main som starter programmet.
        public static void main(String[] args) {
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    utsyn();
         } //  Slutt p� metoden main.
    } // Slutt p� klassen Oblig3.
    * Brukt av Oblig3
    class InternRamme extends JInternalFrame {
         static int tellOpneRammer = 0;
         static final int xOffset = 30, yOffset = 30;
         InternRamme(int bredde, int hojde) {
              super("Lag eget Brett #" + (++tellOpneRammer),
                     true, //resizable
                     true, //closable
                     true, //maximizable
                     true);//iconifiable
              //...Create the GUI and put it in the window...
              //...Then set the window size or call pack...
              setSize(bredde,hojde);
              //Set the window's location.
              setLocation(xOffset*tellOpneRammer, yOffset*tellOpneRammer);
    }

    Here is the method in mind, translated...
    protected void ConstructOwnBoard() {
         int boxWidth = 3;
         int boxHeight = 3;
         int BoardSize = 9;
         boolean b1 = true;
         while (b1) {
              boxWidth = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Width. (2-4)"));
              if (boxWidth > 1 && boxWidth < 5) {
                   boxHeight = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Height. (3-4)"));
                   if (boxHeight > 2 && boxHeight < 5) {
                        b1 = false;
                   } else {
                        JOptionPane.showMessageDialog(null, "Must be btween 3 og 4.");
                        continue;
              } else {
                   JOptionPane.showMessageDialog(null, "Must be between 2 og 4.");
                   continue;
         BoardSize = boxWidth * boxHeight ;
         InternalFrame frame = new InternalFrame(BoardSize * 16, BoardSize * 16);
         Object[][] data = new Object[BoardSize ][BoardSize ];
         for (int i = 0;i < BoardSize ;i++) {
              for (int j = 0; j < BoardSize ;j++) {
                   data[i][j] = 0;
         String[] columnNames = new String[BoardSize ];
         for (int i = 0; i < BoardSize ;i++) {
              int b = 1 + i;
              columnNames[i] = String.valueOf(b);
         JTable sudokuTable = new JTable(data, columnNames);
         sudokuTable.setGridColor (new Color (tilfeldig(256), tilfeldig(256), tilfeldig(256)));
         sudokuTable.setFont(new Font ("Tahoma", Font.PLAIN, 24));
         TableColumn column = null;
         for (int i = 0; i < BoardSize ; i++) {
              column = sudokuTable.getColumnModel().getColumn(i);
              column.setMinWidth(25);
              column.setMaxWidth(25);
              column.setResizable(false);
         setVisible(true);
         frame.add(sudokuTable);
         frame.setVisible(true);
         desktop.add(ramme);
         try {
              frame.setSelected(true);
         } catch (java.beans.PropertyVetoException e) {}
    } // end of class

  • How to stop size of JTextField from changing when I change font to bold

    I'm working on a Sudoku solver for a CS project. I've got JTextFields for the input. I want to bold the entries of the begining puzzle, like they are in the magazines. When I set the font to bold, it changes the size of the text field. I'm using the gridbaglayout and have tried everything to set in stone the size of a text field, but nothing seems to work. I've set the maximum, minimum size, the setSize method, as well as setting the prefered size. But no matter, when I change the font from plain to bold, the box grows in size. How do I prevent this from happening. I can post my gui code if it would help.
    Here is a link to my grid, with the upper left square having bold text:
    http://12.227.129.113/CS486/Project4/Project4.html

    add them to panel/s set as a gridlayout 9 x 9, or (3 x 3) x (3 x 3)
    simple demo of a 9 x 9
    import java.awt.*;
    import javax.swing.*;
    class Testing extends JFrame
      JTextField[] tf = new JTextField[81];
      public Testing()
        setLocation(200,100);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel p = new JPanel(new GridLayout(9,9,5,5));
        for(int x = 0, y = tf.length; x < y; x++)
          tf[x] = new JTextField(2);
          tf[x].setHorizontalAlignment(JTextField.CENTER);
          p.add(tf[x]);
        tf[0].setFont(tf[0].getFont().deriveFont(Font.BOLD));
        tf[0].setText("9");
        tf[1].setText("3");
        tf[66].setFont(tf[66].getFont().deriveFont(Font.BOLD));
        tf[66].setText("9");
        getContentPane().add(p);
        pack();
      public static void main(String[] args){new Testing().setVisible(true);}
    }

  • Problem using '--' on a variable via a pointer

    Hello.
    I'm new to C (been learning just over a week now), so if you take the time to reply - please don't pitch the answer too high!
    I've just finished work on my latest project - a Sudoku Solver. It only does simple puzzles, but it (finally) works.
    Here's a basic run-down of what it does: a user enters the known numbers of a Sudoku grid, line by line, and the program assigns these to an array (if the number is unknown, the relevant part of the array is set to zero). The array also holds a 'possibles' value for each cell, which says how many numbers are still potential values for that cells (so, when the user's input is first translated into the array, this value will be nine for an empty cell).
    A series of structs are then set up, one per cell, which hold various bits of information about each cell. The main things are the coordinates for each cell, together with whether each number (one to nine) is a possibility for that cell, and the total number of possibilities for that cell (which is a pointer to the 'possibles' value in the array, mentioned earlier).
    The solving loop is split into two parts. The first goes through each struct, and determines whether the value for that cell is known or not. If it is, that value is removed as a possibility for each cell in its row, column, and box.
    The second part of the loop goes through all cells and, if only one possibility exists for a cell, assigns that as the final answer in the array. The solving loop then continues until all cells are solved.
    My problem came when reducing the 'possibles' value for a cell in the array, via the struct. My first attempt used this line:
    *mySudoku[j].possibles--
    ('mySudoku' is the name of the struct type; 'j' is a value (0-81), and 'possibles' is a field that points to the value in the array that holds how many potential answers there still are for that cell). In my mind, that code snippet should point at the address held in that struct's field, and reduce it by one.
    After much banging of head against a wall, I discovered that the above code snippet wasn't doing the same as:
    *mySudoku[j].possibles = (*mySudoku[j].possibles)-1
    Once I'd changed the code over, the program worked like a dream.
    My question is: why aren't those two bits of code doing the same thing? I've obviously misunderstood something fairly basic, but I can't understand what.
    If any of my explanation isn't clear, then please let me know and I'll clarify.
    Thanks for your time,
    Pete.
    Message was edited by: Pete_M2

    Pete_M2 wrote:
    *mySudoku[j].possibles--
    *mySudoku[j].possibles = (*mySudoku[j].possibles)-1
    My question is: why aren't those two bits of code doing the same thing? I've obviously misunderstood something fairly basic, but I can't understand what.
    In a word, precedence. The first operation performed is the array subscript. Then the member selection via ".". Next is postfix decrement. The pointer dereference is done last.
    You should probably use parentheses to clearly specify the order in which you want operations to be performed. I am and have always been virtually clueless about precedence. I always use parentheses to clearly indicate what I want to be done. Even if they are redundant, they still help to clarify the situation.
    I would have written the above code as:
    --(*mySudoku[j].possibles)
    I would use prefix decrement because I don't need the pre-decrement value. I use the parentheses for clarity even though they supposedly aren't needed with prefix decrement. I say "supposedly" because I really have no clue. I have been programming for 20 year and the only precedence I know is parenthesis trumps all (usually).

  • Paramaterized Query for In Clause Query

    I am writing a saved query where I want to use parameters for an In Clause in the Where Clause where there could be anywhere from 1 to a dozen or so items in the In Clause. What is the best way of doing this? Should I just define multiple parameters
    (e.g. @In1, @In2,...) or would you just build a string parameter for this? How would I use a string parameter in a In clause?
    Select * From Employees Where EmployeeNumber In (12345, 23456, 34555)
    Ray Pietrzak

    The simplest answer is to use a long parameter list to construct lists and derived tables inside the procedure body. SQL server can handle up to 2100 parameters, which should be more than enough for practical purposes. SQL Server is actually a wimp in
    this regard; DB2 ;can pass 32K parameters. and Oracle can have 64K parameters
    Their database engines use those extreme limits for certain system functions that the users will never see. Nobody expects a human being to type in thousands of lines of CSV text with any of these techniques. In practice, I have seen a list of 64 (Chessboard),
    81 (Sudoku solver) and 361 (Go board) simple parameters. Most of the time, 100 parameters is a very safe upper limit. If I need to pass more then I want to look at an ETL tool or something else. 
    The main advantages of the long parameter lists are:
    1) The code is highly portable to any Standard SQL. One product bigots need to get over the idea that they are never going to see more than one SQL engine in their careers. 
    2) The code is pure native SQL and not an external procedural language. The people that maintain it can be SQL programmers. There will be no need to send your C# programmer to F# classes next year to keep up. 
    3) The optimizer will treat them like any other parameter. They can be sniffed. You can use a RECOMPILE option and get the best performance possible each time the procedure runs. 
    4) The compiler will treat them like any other parameter. You get the expected error messages and conversion. Frankly, I have never seen anyone who used one of the other techniques write RAISERROR() calls to return the same error messages as the compiler. 
    5) It is easy to generate the code with a text editor. Think about how hard it is to write in a CLR language you don't know or to write a loop in T-SQL. I just cut & paste a skeleton with 250 parameters then cut off what I need. I am going to show a list
    of five parameters in my skeleton code to save space. 
    The simplest example of the long parameter list technique is just to use them: Pass what you need and leave the rest of he list to default to NULLs. 
    CREATE TABLE Zoo
    (sku CHAR(11) NOT NULL PRIMARY KEY, 
    animal_name VARCHAR(25) NOT NULL)
    INSERT INTO Zoo (sku, animal_name)
    VALUES
    ('39634-62349', 'Horse'), 
    ('74088-65564', 'Cow'), 
    ('16379-19713', 'Pig'), 
    ('39153-69459', 'Yak'), 
    ('17986-24537', 'Aardvark'), 
    ('14595-35050', 'Moose'), 
    ('40469-27478', 'Dog'), 
    ('44526-67331', 'Cat'), 
    ('93365-54526', 'Tiger'), 
    ('22356-93208', 'Elephant');
    CREATE PROCEDURE Animal_Picker
    (@p1 CHAR(11) = NULL, 
     @p2 CHAR(11) = NULL,
     @p3 CHAR(11) = NULL, 
     @p4 CHAR(11) = NULL,
     @p5 CHAR(11) = NULL)
    SELECT sku, animal_name
     FROM Zoo
     WHERE sku IN (@p1, @p2, @p3, @p4, @p5);
    EXEC Animal_Picker '39153-69459', '17986-24537', '99999-99999';
    If you had a long list, there would be a lot of NULLs in the IN() predicate list. It would be a good idea to clean them out. But you cannot do that with a simple IN() predicate list. We need to get the data into a column in a derived table first. This is another
    simple text edit problem. 
    CREATE PROCEDURE Animal_Picker
    (@p1 CHAR(11) = NULL, 
     @p2 CHAR(11) = NULL,
     @p3 CHAR(11) = NULL, 
     @p4 CHAR(11) = NULL,
     @p5 CHAR(11) = NULL)
    AS
    SELECT sku, animal_name
     FROM Zoo
     WHERE sku 
      IN (SELECT in_sku
         FROM (VALUES (@p1), (@p2), (@p3), (@p4), (@p5)) AS X(in_sku)
         WHERE in_sku IS NOT NULL); 
    EXEC Animal_Picker '39153-69459', '17986-24537', '99999-99999';
    The use of the VALUES() constructor is new to SQL Server programmers, but other products have had it for awhile now.
    I have a two articles on this topic at Simple Talk; 
    http://www.simple-talk.com/sql/learn-sql-server/values()-and-long-parameter-lists/
    http://www.simple-talk.com/sql/learn-sql-server/values()-and-long-parameter-lists---part-ii/
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • [Android n00b] how to begin?

    It's pretty quiet around here ATM - maybe I can sneak this in before the conversation gets too serious...
    The short version:
    I have a small tcl/tk app that I'd like to port to the Android environment.  I don't speak Java or Android.  My Yoga Tab 8 arrived today.  What do I do now?
    The long version:
    I'm an old hardware guy (designed PCI boards, mostly) who does some C programming.  Almost exclisively device drivers.  A little BASH scripting.  I've always been curious about GUI programming so I wrote a little toy program in tcl/tk.  That's my first and only experience with a GUI app and only tcl/tk program.
    It's a Sudoku solver.  Doesn't generate puzzles.  Just a toy to see if I could get a GUI running.  For the record: Sudoku Solver.  With some help from the nice people at comp.lang.tcl, it actually works
    To continue my education, I'd like to port (or translate) this to run in the Android environment.  As stated above, I'm not a Java programmer (yet) and haven't done anything in Android land.
    What I've done so far:
    Read through "Head First Java" on my last vacation...  Ordered a copy of "Hello, Android: Introducing Google's Mobile Development Platform" from Amazon.  Currently reading through the pages at Android Developers.
    I plan on digging into AndroWish to see if I can short-circuit things and run my existing tcl/tk on top of Android and dodge some of the Java pain.  AndroWish
    What's next(?):
    Since I'm starting from zero (or -1...) any input on how to get going is greatly appreciated. Links to tutorials, blogs, templates, newsgroups, emulators, IDE recommendations, book recommendations, sample code, etc would be very helpful.  Necessary, actually.
    Justification:
    I'll probably never be an Android developer, and this toy program will certainly never be an app.  It will, I think, make for a valuable and interesting learning experience.
    I realize that the veteran developers reading this will think it's pretty silly.  OTOH newcomers will hopefully find encouragement in the (anticipated) input from the community. Maybe some motivation to join the conversation to learn - and teach.  Not just in this little thread but in the Lenovo Android community in general.
    Thanks and regards,
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

    > How did you spot that typo?  Do you have debugging tools that threw an error - or just very sharp eyes?
    I've tried your script on a CentOS 6 system and expected a typewriter font due to your source. But apperently a normal sans serif font showed up. And I was aware of the pixel density problem (Tcl/Tk on desktops 75 .. 110 dpi, on tablets etc 140 .. 300 dpi).
    Have fun with Tcl/Tk on Android,
    C.

  • In IOS7 none of my YouTube movies show up on my site build with iWeb and its YouTube widget. On an iPad running IOS6 the site still works fine, and all movies play well. What is going on,and what can I do to solve this problem ???

    In IOS7 none of my YouTube movies show up on my site build with iWeb and its YouTube widget. On an iPad running IOS6 the site still works fine, and all movies play well. What is going on,and what can I do to solve this problem ???

    It's only Safari/iOS7. Chrome iOS7 works fine.
    Solution?
    Go to YT and grab the code.
    Paste it in a HTML Snippet.

  • No Window in Widget Browser or Adobe Help on Mac, solved

    I had trouble installing Air, got that solved, then found Widget Browser and Adobe Help would seem to start, but never show a window, and they'd "quit unexpectedly" when quitting.
    Noted that, when logging into a different account, the applications worked fine.
    This was solved by deleting the Macromedia folder from ~/Library/Preferences under the troublesome account, then relaunching the Widget Browser and Adobe Help applications. Relaunching recreated the Macromedia folder with some new subfolders and files, including ~/Library/Preferences/Macromedia/Flash Player/www.macromedia.com/bin/airappinstaller/airappinstaller, among others.
    Mac OS X 10.6.8
    Adobe Air 2 build 230
    Widget Browser 2
    CS5.5

    I had trouble installing Air, got that solved, then found Widget Browser and Adobe Help would seem to start, but never show a window, and they'd "quit unexpectedly" when quitting.
    Noted that, when logging into a different account, the applications worked fine.
    This was solved by deleting the Macromedia folder from ~/Library/Preferences under the troublesome account, then relaunching the Widget Browser and Adobe Help applications. Relaunching recreated the Macromedia folder with some new subfolders and files, including ~/Library/Preferences/Macromedia/Flash Player/www.macromedia.com/bin/airappinstaller/airappinstaller, among others.
    Mac OS X 10.6.8
    Adobe Air 2 build 230
    Widget Browser 2
    CS5.5

Maybe you are looking for

  • Can I see the Ethernet signal connected to my PC on RJ-45 connector (electric form)?

    Hi, I start working on a project that needs me to know the electric characterisitics of an Ethernet signal in a specific network, and it is illegal to connect any device directly to the network (except for PC). So I was thinking can I use Labview to

  • Text Entry Box - Free Text & Validation

    Good day: I am a user of Captivate 4 and have a question in regards to text boxes and validation.  I am attempting to create a simulation covering signing into a web-based application.  The user needs to input a username and a password. I am attempti

  • Goods return field in BSET or any other FI Table

    Dear Expert, I need to make a report for Purchase Return and Subsequent Debit or Credit for a period. I am not finding any field in BSET or BKPF to filter the document. Can anyone suggest how to get this data if not from the above table also fine. MS

  • Help!!! PE 10 not working correctly?

    Hi I'm right in the middle of a project and suddenly PE10 is giving me problems. It's weird, I can open PE and load my files and elements with no issues but when I try and apply any transitions or anything it doesn't work. Even if I tell it to fade o

  • RV180 not showing up in traceroute

    Hello all, I have a RV180 router that is not showing up in a traceroute. I have multiple VLANs configured where the clients are on one VLAN and the servers are on another. Inter-VLAN routing is enabled and I can ping back and forth and everything wor