![]() |
|
#11
|
||||
|
||||
Re: Trouble integrating console code into GUINo problem.
Oh, the '3 to 2' button quit working because this was modified and left behind: JAVA Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
||||
|
#12
|
|||
|
|||
Re: Trouble integrating console code into GUIroger that, and hey whatd'ya know, that buttons magically come back lol.
Thanks |
|
#13
|
||||
|
||||
Re: Trouble integrating console code into GUIQuote:
I modified withdraw() to this: (requires a change in the peg class) JAVA Code:
JAVA Code:
Will scrolling text be expected in the text window? Is this also where the vertical output is expected? (along with the other messages?) Also there doesn't appear to be a label3 on the GUI? Other than that, still looking at the first two items, and have an idea for the vertical print, but not sure where you are expecting it to be shown? EDIT: Oh, does the image you have fill that entire top area? __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#14
|
|||
|
|||
Re: Trouble integrating console code into GUINice work on the reset button, works like a charm.
Yes board and all messages on text pane, except for the number of discs choice and manual or auto mode, I like how you did that. Saves having an input on the gui.No scrolling isnt needed on the textpane. I was thining everytime there is a message it just re-displays it. And everytime there was a board change it just replaces what was on there. I dont mind either way though, which ever is easiest scrolling or not. Im sitting here working on it and ive been racking my brain for the last two days how to get the board displaying on the JTextPane but im failing everytime. So if you can get it doing that i'd be well impressed. |
|
#15
|
||||
|
||||
Re: Trouble integrating console code into GUIStill a work-in-progress, but here's the main class again...
The changes from your last post (when you posted this class) include: 1. buttons 7 & 8 have been added to the array (see the 'titles' string, and function actionPerformed(), and #5, below ) 2. Function reset() modifed (removed loop -- change to withdraw() makes it unnecessary) 3. Added new function: newGame() (called by the constructor, AND reset() ) 4. Removed the statement that disabled the button. 5. Added commentary for the button array areas: (see the 'titles' array, the 'button loop' [just after where the progress bar is colored], function actionPerformed(), and the section where the components are added to the content pane. ) JAVA Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#16
|
|||
|
|||
Re: Trouble integrating console code into GUIAll good the resest button works perfectly. Assignment is due by this time tommorow just to give you a timeframe. No worries if you dont have time to help out anymore but just letting you know if you do anything you post after this time tommorow will be unuseable for me. Progress bar, printing vertically and printing to the gui screen are the only things left. Hopefully i'll have have solved atleast one of them by tommorow, but i'll post back and let you know how im going.
I know I sound like a broken record, but thanks again |
|
#17
|
|||
|
|||
Re: Trouble integrating console code into GUIJust in case you get another chance to take a look for me I just worked out how to print vertically and ive nearly finished writing the code for that, I should have that complete before I go to sleep.
Now its just a matter of getting the board displaying on the JTextPane(which ive tried a million different ways but just cant crack it) and the progress bar. :::::::::********EDIT***********::::::::::::: Scratch that, I thought I had it lol. Its printing out the first board state ok, but after that it just dies. JAVA Code:
|
|
#18
|
||||
|
||||
Re: Trouble integrating console code into GUIYou said:
Quote:
Elements for the llist class: (see the comments as to what's new) JAVA Code:
JAVA Code:
JAVA Code:
Inside function processManual(): JAVA Code:
JAVA Code:
JAVA Code:
JAVA Code:
JAVA Code:
Here's sample output from the TextPane: At start: Code:
Code:
1. A vertical scroll bar appears with 5+ discs 2. When the #discs exceeds nine, the double digits make the columns appear slightly off-alignment. HTH __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#19
|
||||
|
||||
Re: Trouble integrating console code into GUI(if not seen yet, check post #18 for the vertical print)
As to the progress bar... Is the progress bar supposed to work in manual mode too? You only mentioned automatic. Anyway, the automatic solver, being recursive that it is, within another class, there is not a way (as it stands right now) to make updates to the progress status, as it only returns after solving. Also, while in this recursive mode, there won't be a way to get regular board updates back to the GUI for display either. I don't know how much time I'll get to look at this part today, but maybe this insight (if not already known) might give some insight as to what might need to be done for an alternative? __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need code to hide a console program from startup | lockd | C++ Forum | 1 | 14-Aug-2007 19:03 |
| How to sort random access file? | wmmccoy0910 | C Programming Language | 12 | 04-Sep-2006 04:40 |
| Here it is again! 35% - 40% off For Life! | my-e-space | Web Hosting Advertisements & Offers | 0 | 20-Apr-2006 15:48 |
| Guidelines for posting requests for help - UPDATED! | WaltP | C Programming Language | 0 | 21-Apr-2005 03:44 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The