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
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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 16th, 2010, 09:21 AM
Registered User
 
Join Date: Apr 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sudoku GUI

Hi
The sudokuSolver works, and I get the numbers in the GUI, but when i open a new file with a different size(9x9 to 6x6) It gives me the solution in the same window. I dont know how to get the grid to update size. Any tips?
Reply With Quote
  #2 (permalink)  
Old April 17th, 2010, 11:19 AM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Quote:
Originally Posted by knut-o View Post
Hi
The sudokuSolver works, and I get the numbers in the GUI, but when i open a new file with a different size(9x9 to 6x6) It gives me the solution in the same window. I dont know how to get the grid to update size. Any tips?
In desktop development you have to trigger a resize followed by a rerender, and I believe web development goes through the same basic process. So there are two moving parts you need to worry about. You have to resize the grid first. But two you have to trigger page rendering after that. If you haven't resized the grid OR you don't render the page after that, it will appear that you're not updating the size.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
Reply With Quote
Reply


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 GUI knut-o Java GUI 0 April 15th, 2010 01:35 PM
Sudoku lldonn XSLT 1 October 12th, 2007 09:53 AM
help in GUI khfarooq Java GUI 5 August 22nd, 2004 05:00 AM



All times are GMT -4. The time now is 06:12 PM.


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