Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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?
 
Old April 17th, 2010, 11:19 AM
Friend of Wrox
 
Join Date: Jun 2007
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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudoku solver aehb Visual C++ 3 November 12th, 2011 07: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.