Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old April 15th, 2010, 01:35 PM
Registered User
Join Date: Apr 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default sudoku GUI

PHP Code:
    private JPanel lagBrettet() {
int toppvenstre;
JPanel brettPanel = new JPanel();
brettPanel.setLayout(new GridLayout(dimensjon,dimensjon));
setPreferredSize(new Dimension(new Dimension(dimensjon RUTE_STRELSE,
dimensjon RUTE_STRELSE)));

int i 0dimensjoni++) {
/* finn ut om denne raden trenger en tykker linje på toppen: */
topp = (vertikalAntall == && != 0) ? 1;
int j 0dimensjonj++) {
/* finn ut om denne ruten er en del av en kolonne 
                   som skal ha en tykkere linje til venstre:       */
venstre = (horisontalAntall == && != 0) ? 1;

JTextField ruten = new JTextField();
ruten.setPreferredSize(new Dimension(RUTE_STRELSERUTE_STRELSE));
brett[i][j] = ruten;
How can I update the Sudoku with new numbers (instead og A)?
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudoku solver aehb Visual C++ 3 November 12th, 2011 06:41 AM
I'm here for the GUI OldCProgrammer BOOK: Beginning Python: Using Python 2.6 and Python 3.1 1 April 26th, 2010 03:29 PM
Sudoku lldonn XSLT 1 October 12th, 2007 09:53 AM
GUI questions hlchuah77 Java GUI 2 August 24th, 2004 09:23 AM
help in GUI khfarooq Java GUI 5 August 22nd, 2004 05:00 AM

All times are GMT -4. The time now is 03:11 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.