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);
}

Similar Messages

  • Sudoku grid - Pages Table

    On my iMac, I have created a Sukoku grid using a Table within Pages. But I can't find out how to make some more lines more bold to create the three-by-three boxes. I have read relevant posts here but not found the answer.

    If you are actually on OS X 10.9 and using Pages v5, then the following approach will visually identify Sudoku groups:
    Make a 9 x 9 table, and using the Arrange tab, size it to 6.5 x 6.5 in.
    Select the upper-left 3x3 group, and click the Cell tab.
    Click Border, and set it to the thickness desired for the group boundary
    Pick the color of your line in the adjacent color well, or color chooser globe
    Click the box with the leaning paint brush on a line icon
    Click the icon that represents a complete box outline
    Your first Sudoku group is now outlined.
    Repeat for each new 3x3 Sudoku group
    Click the following to enlarge. For challenging Sudoku play. Or an excellent teaching/play tool, get Sudoku Daily from the OS  X App Store. The in-app, paid update version allows you to key in a puzzle from another source, and then walk you through solving it. Also available for iPhone/iPad. I use OS X and IOS versions.

  • 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.)

  • Proposed Layout for a sudoku-grid

    I'm making a sudoku game. I'm not sure how to build the gui though. What kind of layout should I have? I want to be able to highlight empty squares and also be able to drag n drop numbers into them. How can I do this?

    Well, I don't know what a "sudoku-grid" is. But if it's anything like a chess board then maybe this posting will help:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=518707

  • Gnome-sudoku doesn't show the grid

    Hi! I have a problem with sudoku game. You can see it on the screenshot

    How did you install the Greybird-master theme?
    Xfce4 is gtk2 dependent and gnome-sudoku is a gtk3 appli, so I am surprised that changing the theme in Xfce worked for the gnome game.
    All this is not very clear to me.
    Personally I use some gtk3 applis and I have this '$HOME/.config/gtk-3.0/settings.ini' file:
    [Settings]
    gtk-theme-name = oxygen-gtk
    gtk-font-name = DejaVu Sans 10
    gtk-icon-theme-name= oxygen
    gtk-fallback-icon-theme = gnome
    The theme comes from the oxygen-gtk3 package which is installed like that:
    $ pacman -Ql oxygen-gtk3
    oxygen-gtk3 /usr/
    oxygen-gtk3 /usr/bin/
    oxygen-gtk3 /usr/bin/oxygen-gtk3-demo
    oxygen-gtk3 /usr/lib/
    oxygen-gtk3 /usr/lib/gtk-3.0/
    oxygen-gtk3 /usr/lib/gtk-3.0/3.0.0/
    oxygen-gtk3 /usr/lib/gtk-3.0/3.0.0/theming-engines/
    oxygen-gtk3 /usr/lib/gtk-3.0/3.0.0/theming-engines/liboxygen-gtk.so
    oxygen-gtk3 /usr/share/
    oxygen-gtk3 /usr/share/themes/
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/argb-apps.conf
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/gtk-csd.css
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/gtk-spinner.css
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/gtk.css
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/icons4
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/kdeglobals
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/oxygenrc
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/special-icons/
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/special-icons/standardbutton-closetab-16.png
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/special-icons/standardbutton-closetab-down-16.png
    oxygen-gtk3 /usr/share/themes/oxygen-gtk/gtk-3.0/special-icons/standardbutton-closetab-hover-16.png
    If you install your theme manually, you can do something like that for the gtk3 part of the theme.
    Don't forget the necessary engine of the theme:
    Dependencies of gtk3.2-branch (for Gtk3.2)
    – gtk2-engines-murrine (v0.90)
    - gtk3-engines-unico (v1.0.1)
    As an aside again here is a screenshot of sudoku-savant:
    I don't find that so ugly and there is a solver and the 'expert' level is pretty hard to solve.
    Last edited by berbae (2015-01-25 16:12:07)

  • 11.2.0.2 Grid Installation for a Standalone Server FAILED!

    OS: OEL-5.5 x86_64 (kernel-2.6.18-194.17.4.0.1.el5, glibc-2.5-49.el5_5.7)
    Product: Oracle 11gR2 (11.2.0.2.0) x86_64 for Linux
    Hi,
    I was trying to perform a clean and full 11.2.0.2 installation for a Standalone Server (Single database + ASM + Restart), but unlike 11.2.0.1, this standalone patch, shipped as set of full installation files, has serious flaws mainly due to insane installation and configuration scripts. My environment is as follows:
    ORACLE_BASE=/opt/oracle
    ORACLE_HOME=/opt/oracle/product/11.2.0/db_1
    GRID_HOME=/opt/oracle/product/11.2.0/grid
    all owned by oracle:dba. ASMLib was configured with four 256 GB partitions on four physical disks.
    1. During grid installation the Prepare, Copy files, Link binaries, Setup files, Execute Root Scripts (root.sh), Update Inventory, Oracle Net Configuration Assistant all succeeded, but ASM Configuration Assistant FAILED and installation couldn't continue. That was because root.sh script (and inside it calling scripts) changed the ownership of ORACLE_BASE and GRID_HOME to root:dba, so that admin and diag directories creations in ORACLE_BASE were not permitted. After fixing that manually as root (immediately after executing root.sh), the installation continues and succeeds.
    2. During installation of Client software the error message window appears stating that cannot find the /opt/oracle/product/11.2.0/db_1/oui/bin/runInstaller.var file. By pressing the Continue button the installation continues ignoring this.
    3. If Oracle Scheduler Agent is selected for installation during Client software installation, the Oracle Enterprise Manager 11g Database Control Release 11.2.0.2.0 cannot start (https problem - cannot establish connection). To fix this, I had to deinstall Client software and install it again without Oracle Scheduler Agent.
    4. The Performance window in Enterprise Manager 11g Database Control Release 11.2.0.2.0 cannot display any graph ("Initializing" and "Transferring data from localhost..." never end).
    Are those issues known issues? If they are, why did Oracle ship that standalone patch without testing it before? Given that prior release (11.2.0.1) was free of any errors above, it is really beyond me to figure out this negligence.
    NJ

    Are those issues known issues? Have you created service request ? That would be much better to be sure about the workaround you found.
    Nicolas.

  • Java program for Sudoku puzzle

    I basically need to list the possible solutions to every blank space in a sudoku puzzle. I can make my puzzle in a .txt file and then just run that in my program.
    Here's an example of a line I would create in my.txt file:
    5 3 _ _ 7 _ _ _ _ (So possible solutions for the third spot would be 1,2, or 4. Then you'd continue down the line)
    So to get started I need to create a 9x9 array to store my .txt file. Read in my input one line at a time, then use a StringTokenizer to break apart each value in the line. So basically I need help starting that beginning part of my program. I'm a pretty slow learner with this stuff so a little help getting me started helps out a lot, then I tend to catch on to what is going on and I can finish up from there.
    Thanks Guys

    I still need to loop through and rows, columns, and grid to find possible solutions but I didn't ask for help on that. I know how to set up a 2d array, but when I set it up it's not reading out my .txt file. I was going to use 'char' in my array, but I don't know how I'm going to read from that .txt file, charAt I was thinking. Then for the stringTokenizer I'm really confused on how I would break apart each value from my .txt file.So, it looks like you're panicking and trying to do everything all at once. Maybe that's why you aren't getting anywhere. You need to start small. Don't try to write the whole program in one go, but instead start with a simpler program that doesn't do the whole business. In fact, start with a really simple program that does just one thing.
    What's the first thing that's necessary? You have to read your input data from a file, one line at a time. (Yes, then you have to break each of the lines into pieces, but don't get ahead of yourself.) So write a little program that only reads your input file one line at a time. To check that it's working, just write each of the lines out to the console.
    Then when that's working, add another feature. That would be splitting the lines into pieces. Again, for now just write the pieces out to the console to check that it's working. Then carry on from there.

  • Dw6 fluid grid layout

    trying to make sense of the fluid grid layout.
    can you use <div class> in fluid grid layout?
    is it best to only insert divs using the fluid grid layout div?
    when you insert a new fluid grid div what is the difference between entering a new line or not?
    the html structure seems to be the same regardless of if you start a new line or not, am i wrong?
    any help would be appreciated!

    Ben Pleysier wrote:
    It's not my code, just rubbish I pulled out of the Bootstrap example sites....plenty more like that........ how about this beauty:
    <div class="spb-row-container spb-row-full-width spb_parallax_asset sf-parallax parallax-window-height parallax-fixed spb_content_element bg-type-cover col-sm-12 no-shadow hidden-xs remove-element-spacing col-natural" data-v-center="true" data-top-style="" data-bottom-style=""  data-midnight="dark" style="background-color:#009fc2;margin-top:0px;margin-bottom:0px;background-image: url(http://www.thesign.pt/wp-content/uploads/2014/10/FM.jpg);">
    I thought we were talking about Bootstrap. No Bootstrap in the above.
    <body class="html not-front not-logged-in no-sidebars page-node page-node- page-node-1172 node-type-static-page not-mobile region-content navbar-is-fixed-top"  onunload="">
    No Bootstrap here either.
    <div class="col-lg-3 col-md-4 col-md-offset-1 col-sm-4 col-sm-offset-1 col-xs-22 col-xs-offset-2 col-lg-offset-0">
    Please allow me to explain. Bootstrap is based on 12 columns regardless of screen size. Translating the above we get the following for each of the screen sizes
    large 3 cols offset 0
    medium 4 cols offset 1
    small 4 cols offset 1
    extra small 22 cols offset 2
    Our attention immediately falls on the extra small device with 22 columns that are 2 columns offset, total 24 columns. How can this be when there are only 12 columns available. Why would one have offset columns on the smallest screen size when we are already battling for real-estate. I think that if we make the classes believable we can safely ignore the classes for the extra small device. Continuing, we see the same number of columns for medium and small and the same offset. Being a mobile first approach, the classes that we assign to small will filter through to larger screen sizes making the classes for medium screen sizes ineffective. Looking at the 0 offset for large screen sizes?? Why do that when it is the default value. In other words, had Bootstrap been applied properly, the tag would look like
    <div class="col-sm-4 col-sm-offset-1 col-lg-3">
    The other two examples are even more ridiculous. Once again, I implore you to start learning Bootstrap and you will come to the conclusion that you are supplying us with gibberish.
    I'm not supplying the gibberish it's the many websites that rely on frameworks, be they Bootstrap/Foundation/Wordpress - whatever rubbish they are using that I'm lifting this code from that are supplying it.
    Take the Bootstrap form - every form input field I observe is wrapped in a <div> tag, why - it's bloated and redundant coding. Bootstrap, much like Wordpress was never invented to be used to build websites.
    That IS my whole point - there are numerous examples of where Bootstrap IS NOT being used properly because people rely on something they no nothing about and end up with verbose class names splattered around all over their pages, bloated js and css scripts because they are the default files which come with Bootstrap.
    <div class="col-sm-4 col-sm-offset-1 col-lg-3"> to me this is still nasty and overly complex 'class' mark-up. A page full of this tripe would drive me insane.
    The very worst people you could advise to use Bootstrap are the people in this forum because most will have little knowledge of coding (that's why they turn to a framework) and end up with a page full of crap.
    And I'm not verbalising you - you said it yourself. People use lots of 'short cuts' - it doesnt mean it's a good approach to take. No ones re-inventing the wheel apart from Bootstrap, who are obviously trying too. Media queries already exist to produce responsive design, learn how to implement them and free yourself from being entrapped by frameworks where you have to use their naming convention, their break points by default, their over bloated js and css files and somethimes rubbish html mark-up.

  • Reporting an App error?  EA Sudoku update doesn't work

    Does anyone know how to report an iPhone App error?
    I've been using EA's Sudoku App for weeks now with no issue. This morning I downloaded the latest update and now the game doesn't work. It loads fine but when it brings you to the board it is populated incorrectly with, for example, three number 2s in one square and 4 number 7s in another.
    Thanks,
    Jacob

    You're not the only one -- I'm having the same problem, although it's affecting at least three levels -- Hard, Very Hard and Insane. I sent an e-mail to iTunes support; will post a resolution here if I get one. Please do the same if you can resolve it, so that anyone else having the problem can benefit.

  • 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 Algorithm

    Hi, i was venturing out to design an algorithm to generate sudoku puzzles, I was thinking of emplying 2D Matrix arrays. The idea I have is filling up the whole grid first with a solution then taking away a few numbers. I don't really know how to do this, though I have an idea, getting it to check the rows and columns add up to 45 and each 3x3 grid adds up to 45, 45 being the sum of all the numbers in a 3x3 grid. Would anyone be able to tell me if this would work and how would I be able to program this in JAVA. Many thanks in advance.

    And I need an algorithm to solve sudokupuzzles.
    That's the hard part, at least if you want to solve
    it without brute force.Indeed, I thought that only with brute force Sudoku can be solved.
    Indeed, I don�t think that there is a "magic intelligent" algorithm that can solve it . Well, Sudoku is cool exactly because it can just be solved by brute force. LOL!!!!
    Maybe some math genius person knows how to write an algorithm to solve Sudoku easily, or how to explain and prove mathematically that an algorithm to solve that is not possible.

  • Sudoku in J2ME

    Hi guys,
    I am trying to fix a problem wit a MIDlet I have... jus want to know a way of drawing fixed numbers onto the Sudoku grid using an Array...

    Yea I know I could do it like that..... but there is a way of doing it with 2D Arrays and am not sure how to do it that way...
    The numbers entered onto the grid is determined by an Array... so in the same way the fixed numbers should be able to be displayed with an Array.... I made an attempt as follows....
    public Cell(String s) {
    int i, j;
    SMatrix = new byte[9][9];
    fixedNumber = new boolean[9][9];
    for (i = 0; i < 9; i++)
    for (j = 0; j < 9; j++)
    SMatrix[i][j] = draw.String (""+......, x, y, 16|4);
    if (SMatrix[i][j] > 10)
    fixedNumber[i][j] = true;
    SMatrix[i][j] -= 10;
    else
    SMatrix[i][j] = 0;
    fixedNumber[i][j] = false;
    }

  • Sudoku Pluzzle

    I'm looking for Algorithms that will solve sudoku puzzles. Im trying to write my own program for this to get ready for a compition. Would anyone know where to find these algorithms or ways to slove sudoku puzzles using a system every time? Any suggestions are helpfull thank you,
    Cobbweb

    I think you are going to have to write your own algorythm for this.
    The math is beyond me, but off the bat I am going to guess that a brute-force-from-zero approach is not going to work anytime this century. However, if you make an initial elimination pass and then start trying possibilities with recursive elimination passes from there I bet it would chop things down enough that you could just do it that way without any really clever algorythm.
      A B C
    A 1 ? ?
    B ? ? 3
    C ? 2 ?With coordinates given as X,Y - so that the 3 is at C,B.
    The number at A,B could be 1, 2, or 3, given only the rules of the game. Your "initial pass" is where you just run through the colum (A) and the row (B) and eliminate possibilities. So we know it cannot be 1 because there is a 1 at A,A and it cannot be 3 because there is a 3 at C,B. In a puzzle this simple that already tells us the answer (since only 1 is left) but obviously this will not be the case in a real puzzle. However, we will still have chopped out a LOT of possibilities.
    Next we just pick an order for empty spaces - say left to right, top to bottom. The first one is B,A, so we go there. Then we just pick a number (moving from 1 up) to try out. That number gives us more information, so we make another pass over the entire grid eliminating stuff again. Then we just walk down the grid in a binary search tree type of dealy.
    I bet that even a big puzzle would be no problem for a modern computer this way.
    Drake

  • Sudoku GUI

    Hey am trying to create a GUI for my Sudoku board.
    Here is how it currently looks: (See code below)
    There are two things I wanna change
    1. How do I center align the number so they are not stuck to the right edge as they are now?
    2. How do I add a bolder line around blocks/boxes(e.g. the 3*3 sections). Im sure these are pretty easy but havent been able to figure it out as of yet!
    Any help would be greatly appreciated.
    Code:
    package proj.sudoku.gui;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Cursor;
    import java.awt.Font;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.InputMethodEvent;
    import java.awt.event.InputMethodListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.SwingConstants;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableCellRenderer;
    import proj.sudoku.representation.Board;
    import proj.sudoku.representation.Square;
    import proj.sudoku.ui.Sudoku;
    public class SudokuGUI extends JFrame implements ActionListener{
    private JTextField unfilledSquaresTextField;
    private JTextArea messagesTextArea;
    private JTable boardTable;
    private Board board;
    private Sudoku sudoku = new Sudoku();
    private int noOfUnfilledSquares = 20;
    private static final long serialVersionUID = 1L;
    class BoardTableTableModel extends AbstractTableModel {
    public final String[] COLUMN_NAMES = { "Row 0", "Row 1", "Row 2", "Row 3", "Row 4", "Row 5", "Row 6", "Row 7", "Row 8"};
    public int getRowCount() {
    return 9;
    public int getColumnCount() {
    return COLUMN_NAMES.length;
    public String getColumnName(int columnIndex) {
    return COLUMN_NAMES[columnIndex];
    public Object getValueAt(int rowIndex, int columnIndex) {
    int squareValue = board.getSquare(rowIndex, columnIndex).getSquareValue();
    if(squareValue == 0){
    return null;
    }else{
    return new Integer(squareValue);
    public boolean isCellEditable(int row, int col){
    return true;
    public void setValueAt(Object value, int row, int col) {
    int intValue = ((Integer)value).intValue();
    if((intValue >= 0) && (intValue < 10)){
    Square square = board.getSquare(row, col);
    square.setSquareValue(((Integer)value).intValue());
    board.setSquare(square, row, col);
    fireTableCellUpdated(row, col);
    public Class getColumnClass(int c) {
    return Integer.class;
    * Create the frame
    public SudokuGUI(Board newBoard) {
    super();
    getContentPane().setBackground(new Color(128, 128, 255));
    board = newBoard;
    getContentPane().setLayout(new GridBagLayout());
    setTitle("Sudoku Sudokme");
    setBounds(100, 100, 607, 456);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    final JPanel tablePanel = new JPanel();
    tablePanel.setLayout(new GridBagLayout());
    final GridBagConstraints gridBagConstraints = new GridBagConstraints();
    gridBagConstraints.weighty = 0.5;
    gridBagConstraints.weightx = 1;
    getContentPane().add(tablePanel, gridBagConstraints);
    boardTable = new JTable();
    boardTable.setRowHeight(40); // TODO This line has been changed
    boardTable.setFont(new Font("", Font.PLAIN, 20));// TODO This line has been changed
    boardTable.setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));
    boardTable.setRowSelectionAllowed(false);
    boardTable.setShowGrid(true);
    boardTable.setModel(new BoardTableTableModel());
    final GridBagConstraints gridBagConstraints_2 = new GridBagConstraints();
    gridBagConstraints_2.gridx = 0;
    gridBagConstraints_2.gridy = 0;
    gridBagConstraints_2.insets = new Insets(0, -265, 0, 0);// TODO This line has been changed
    //gridBagConstraints_2.insets = new Insets(5, -265, 5, 0);
    tablePanel.add(boardTable, gridBagConstraints_2);
    final JPanel messagesPanel = new JPanel();
    messagesPanel.setLayout(new GridBagLayout());
    final GridBagConstraints gridBagConstraints_6 = new GridBagConstraints();
    gridBagConstraints_6.weighty = 0.3;
    gridBagConstraints_6.weightx = 1.0;
    gridBagConstraints_6.gridy = 1;
    gridBagConstraints_6.gridx = 0;
    getContentPane().add(messagesPanel, gridBagConstraints_6);
    messagesTextArea = new JTextArea();
    messagesTextArea.setAlignmentY(Component.BOTTOM_ALIGNMENT);
    messagesPanel.add(messagesTextArea, new GridBagConstraints());
    messagesTextArea.setText(board.getMessage());
    messagesTextArea.setEditable(false);
    final JPanel generateButtonPanel = new JPanel();
    generateButtonPanel.setLayout(new GridBagLayout());
    final GridBagConstraints gridBagConstraints_3 = new GridBagConstraints();
    gridBagConstraints_3.gridy = 2;
    gridBagConstraints_3.gridx = 0;
    getContentPane().add(generateButtonPanel, gridBagConstraints_3);
    final JButton generateEmptyBoardButton = new JButton();
    generateEmptyBoardButton.addActionListener(this);
    generateEmptyBoardButton.setText("Generate Empty Board");
    final GridBagConstraints gridBagConstraints_9 = new GridBagConstraints();
    gridBagConstraints_9.gridy = 0;
    gridBagConstraints_9.gridx = 0;
    generateButtonPanel.add(generateEmptyBoardButton, gridBagConstraints_9);
    final JButton generateBoardButton = new JButton();
    generateBoardButton.addActionListener(this);
    generateBoardButton.setText("Generate Board");
    final GridBagConstraints gridBagConstraints_10 = new GridBagConstraints();
    gridBagConstraints_10.gridx = 2;
    generateButtonPanel.add(generateBoardButton, gridBagConstraints_10);
    final JLabel unfilledSquaresLabel = new JLabel();
    unfilledSquaresLabel.setText("Unfilled Squares");
    final GridBagConstraints gridBagConstraints_11 = new GridBagConstraints();
    gridBagConstraints_11.gridy = 0;
    gridBagConstraints_11.gridx = 3;
    generateButtonPanel.add(unfilledSquaresLabel, gridBagConstraints_11);
    unfilledSquaresTextField = new JTextField();
    unfilledSquaresTextField.setFont(new Font("", Font.BOLD, 14));
    unfilledSquaresTextField.addActionListener(this);
    unfilledSquaresTextField.setText(new Integer(noOfUnfilledSquares).toString());
    unfilledSquaresTextField.setBackground(Color.WHITE);
    final GridBagConstraints gridBagConstraints_12 = new GridBagConstraints();
    gridBagConstraints_12.gridy = 0;
    gridBagConstraints_12.gridx = 4;
    unfilledSquaresLabel.setLabelFor(unfilledSquaresTextField);
    generateButtonPanel.add(unfilledSquaresTextField, gridBagConstraints_12);
    final JPanel solveButtonsPanel = new JPanel();
    solveButtonsPanel.setRequestFocusEnabled(false);
    solveButtonsPanel.setLayout(new GridBagLayout());
    final GridBagConstraints gridBagConstraints_1 = new GridBagConstraints();
    gridBagConstraints_1.weighty = 0.1;
    gridBagConstraints_1.weightx = 1;
    gridBagConstraints_1.gridy = 3;
    gridBagConstraints_1.gridx = 0;
    getContentPane().add(solveButtonsPanel, gridBagConstraints_1);
    final JButton heuristicsSolveButton = new JButton();
    heuristicsSolveButton.addActionListener(this);
    heuristicsSolveButton.setText("Heuristics Solve");
    final GridBagConstraints gridBagConstraints_4 = new GridBagConstraints();
    gridBagConstraints_4.gridx = 0;
    solveButtonsPanel.add(heuristicsSolveButton, gridBagConstraints_4);
    final JButton bruteForceSolveButton = new JButton();
    bruteForceSolveButton.addActionListener(this);
    bruteForceSolveButton.setText("Brute Force Solve");
    final GridBagConstraints gridBagConstraints_7 = new GridBagConstraints();
    gridBagConstraints_7.gridx = 1;
    solveButtonsPanel.add(bruteForceSolveButton, gridBagConstraints_7);
    final JButton hybridSolveButton = new JButton();
    hybridSolveButton.addActionListener(this);
    hybridSolveButton.setText("Hybrid Solve");
    final GridBagConstraints gridBagConstraints_8 = new GridBagConstraints();
    gridBagConstraints_8.gridx = 2;
    solveButtonsPanel.add(hybridSolveButton, gridBagConstraints_8);
    final JPanel testButtonsPanel = new JPanel();
    testButtonsPanel.setLayout(new GridBagLayout());
    final GridBagConstraints gridBagConstraints_5 = new GridBagConstraints();
    gridBagConstraints_5.weighty = 0.1;
    gridBagConstraints_5.weightx = 1.0;
    gridBagConstraints_5.gridy = 4;
    gridBagConstraints_5.gridx = 0;
    getContentPane().add(testButtonsPanel, gridBagConstraints_5);
    final JButton checkIfValidButton = new JButton();
    checkIfValidButton.addActionListener(this);
    checkIfValidButton.setText("Check If Valid");
    testButtonsPanel.add(checkIfValidButton, new GridBagConstraints());
    final JButton checkIfLegalButton = new JButton();
    checkIfLegalButton.addActionListener(this);
    checkIfLegalButton.setText("Check If Legal");
    testButtonsPanel.add(checkIfLegalButton, new GridBagConstraints());
    public static void main(String args[]) {
    try {
    SudokuGUI frame = new SudokuGUI(new Board());
    frame.setVisible(true);
    //frame.pack();
    } catch (Exception e) {
    e.printStackTrace();
    public void actionPerformed(ActionEvent arg0) {
    if(arg0.getSource().getClass().getName().equals("javax.swing.JTextField")){
    noOfUnfilledSquares = new Integer(((JTextField)arg0.getSource()).getText()).intValue();
    this.repaint();
    }else{
    try{
    board = sudoku.processGUICommands(board, arg0.getActionCommand(), noOfUnfilledSquares);
    messagesTextArea.setText(board.getMessage());
    this.repaint();
    }catch(Exception e){
    e.printStackTrace();
    }

    1) Use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags when posting code so the code is readable
    2) The code you posted isn't compileable or executable so we see exactly what you layout looks like
    3) If you have a Grid type layout, then I would think a GridLayout would be more appropriate to use then the GridBagLayout. Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers for more information.
    How do I add a bolder line around blocks/boxes[url http://java.sun.com/docs/books/tutorial/uiswing/misc/border.htmlHow to Use Borders[/url]
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

  • Sudoku helpers

    How should the grid helpers in sudoku be used? I don't know how to select the helper icons at the bottom right of the screen. (Not that I'd need to use the feature, tho, this just bugs me

    It's possible that those puzzles are based on Flash, which won't work on the iPad's Safari.
    You can look for other browsers, like iSwiffer or Photon that support flash and see if that helps. the easier and possibly cheaper way would be to look if that site has an app, which would allow access to the puzzles without needing flash (if that is indeed the issue)

Maybe you are looking for

  • Jdbc scenario .. where to find the error msg

    Hi, I am working on a scenario, abap proxy->jdbc adapter->MsSql server. Whle testing, i sent the payload xml from the sproxy test sceen. After that, i checked the "Monitor for processed xml messages" screen (SXI_MONITOR). There it shows the status "P

  • Dojo toolkit for BSP

    Hello, I am trying to develop a BSP application which will use the Dojo toolkit for some nice controls.  Has anyone been through this process and is able to help me out with the necessary steps? I have downloaded the toolkit, deployed it in the MIME

  • Whenever I open the browser, it immediately minimizes and I have to click in the corner to get the full screen. How can I change this?

    The browser opens, then immediately minimizes to about 1/4 screen size. I have to click the corner box to maximize to full screen. It stays that way until I close it. But it happens every time I open it.

  • CALL Transaction 'MIRO' return error messages in MESSTAB

    Dear All, We have created a test function module to call transaction 'MIRO', the function works fine on one server but the same give error messages on other server. The messages returned by call transaction is as follows =============================

  • RAID 5 - 2 disk failure

    Hi everyone, I have OSX server 10.6 on a MacPro with a RAID 5 array (4 disks). After a power failure OSX cant mount the array anymore. In RAID utility the 4 disks are OK (GREEN for status and SMART) but only the 3 and 4 are inside the array now. 1 an