John Richardson

Greenhorn
+ Follow
since Feb 20, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Richardson

Hi-
Scenario:
I am using javascript to open a window (not a new window) each time a certain icon is clicked that opens a applet.
Problem:
I have started a thread in the applet that I want to keep open (in the applet window), then I return to the main page and click the icon again in the main window. The applet is re-initializing and killing the thread that I wanted to keep open.
Question:
Is there any way to find if there is an applet context open, and then check some variable in a frame on that applet before a new applet is initialized, and the old applet is killed (along with it's thread(s))?
Thanks even for the slightest direction!
John
19 years ago
I want to send a cloned subclass of Panel to the printer (an image), then allow the user to change the original to whatever they want by opening a new file.
My question: Can I successfully clone the Panel (or the entire Frame) and hide it from the user, and keep printing the cloned panel behind the scenes in memory? I have to display pages on the new cloned(printed) panel too because this would be a multipage document.
Essentially, I want to keep the UI "alive" during printing.
Also, are there any other gotchas I should look out for in AWT with that approach?
Any information would be much appreciated.
Thanks!
19 years ago
Okay-
So I was able to get my question answered somewhat on the thread, but now I have a strictly AWT question (I think):
I want to send a cloned ImagePanel to the printer, then allow the user to change the original to whatever they want by opening a new file.
My question: Can I successfully clone the ImagePanel (or the entire Frame) and hide it from the user, and keep printing the cloned panel behind the scenes in memory? I have to display pages on the new cloned(printed) panel too because this would be a multipage document.
Also, are there any other gotchas I should look out for in AWT with that approach?
I realize this may be a long-winded answer (as was the question), but I would really be grateful for an answer... and committed too!
thanks-
John
19 years ago
Thanks to both of you for your reply. I do understand that threading is not going to allow me to make my printing faster. My original problem (which I should have noted) was that one of our users wanted to manipulate the GUI while something went to the printer. The printer would just take over everything. I don't think they were able to use the GUI at all when something went to the printer before, which made me think that threading it would make their user experience better. It may still be a must have in order to allow the possibility of that occuring.
But threading didn't seem to alleviate my problem because although the user (me in this case) could manipulate the GUI somewhat, the print spooling still took almost all of the bandwidth. I would click on the "Open" icon to open a new doc in the GUI, and it would wait until at least 2 more pages had spooled (15-30 secs) before it got there. I'm sure they have a lot bigger docs than the one I'm trying to print as a test(4 page TIFF), which leads me to believe they're not going to satisfied... and I don't want that.
I'm not really sure where to go at this point. The printing call could be a little broken up maybe... I'm going to look at that. Maybe I need to try and just make the image smaller before it goes to the printer... hopefully with little loss in quality. O, the trials of a developer
Thanks again-
John
[ April 28, 2004: Message edited by: John Richardson ]
Hi-
I just wanted to know if anyone could point me to a good learning page that would show me various tutorials/faqs regarding such things as image rendering geometry, anti-aliasing, file type technical descriptions, etc... etc... I am taking over some code from a former employee, and I really need to get informed the basics, as I've been server side for a long time now! I appreciate any help you can give!
Thanks-
John
19 years ago
Hello everyone-
I posted this in the Swing/AWT group, but it might make more sense here:
This is my first post in this particular forum because I've just recently been tasked with some presentation-side stuff, and I'm getting a crash course in Swing/AWT (mostly AWT due to client restrictions)!
I've got a rather large problem with printing speed, and was wondering if anyone has had any success with threading print operations to allow GUI interaction to continue for the user while a print job is spooling/printing? I tried to thread my print method, and set the priority to Thread.MIN_PRIORITY but to no avail. My printing is still tying up almost all of the bandwidth.
Thanks for any input or alternate strategies you can offer.
John
Hello everyone-
This is my first post in this particular forum because I've just recently been tasked with some presentation-side stuff, and I'm getting a crash course in Swing/AWT (mostly AWT due to client restrictions)!
I've got a rather large problem with printing speed, and was wondering if anyone has had any success with threading print operations to allow GUI interaction to continue for the user while a print job is spooling/printing? I tried to thread my print method, and set the priority to Thread.MIN_PRIORITY but to no avail. My printing is still tying up almost all of the bandwidth.
Thanks for any input or alternate strategies you can offer.
John
19 years ago
Thanks guys, I appreciate the input.
I am going to put the 1.3 stuff back on. After battling the 1.4 RI because of some subtle nuisances, your advice is really making sense. Great Scripture Ko Ko.
John
Hello all-
I am starting to prepare for the SCBCD exam, and using Head First EJB as a starting point. Looks awesome so far. One point that is made in the book is to not use J2EE 1.4, but I haven't gotten far enough into the book (or my research) to figure out the differences between 1.3 and 1.4 that I need to worry about. See, the problem is I downloaded J2EE 1.4 and started using that before I got this book and I have tried to follow links to get 1.3 installed and I feel like I am wasting precious time if there really isn't too much difference between the two for the purposes of the exam... TO THE POINT: will I be able to get by if I study the 1.3 API documentation, but use the J2EE 1.4 RI & deploytool to do the book examples?
And if it is important that I get J2EE 1.3 RI/deploytool/SDK, then do I need something other than the SunOne Studio 7 that it points me to download? I have tried to find links to the RI to no avail.
Thanks, and sorry it was long winded!
John
Thanks to everyone who answered my questions, and Kathy and Bert for an incredible book that was the key to helping me pass the exam. Also, a group of 2 other developers and I went through the book together, and that helped immensely. Dan's exam was extremely hard and pinpointed my weak areas. But most of all I have to give praise to the Father for granting me the capability to learn the material and to answer enough of the questions correctly! I got a good score, but it ain't worth posting... I passed!
19 years ago
Thanks for all the help. I've got it crystal clear now. Just one of the many things I don't use day in and day out that I needed to have solid before the exam!
John
20 years ago
Thanks for answering Billy Bob. Why is it that 1111 1111 is -1? I thought that to convert to decimal 1111 1111 would be like 255? Is it only when you have a negative integral type that you flip all the bits and add 1, meaning that all the highest-order bit "1" signifies is that you need to flip the bits and add 1 BEFORE you try to convert to decimal?
20 years ago
This should be an easy answer, but I surely can't get my head around it. To keep it simple I'll use a byte. How would I represent +127 (prob. 0111 1111) and -128. I'm mostly concerned with -128 FOR THIS REASON:
If the last bit is the sign bit, what does this mean (I know if it's a "1" then it's a negative number) and do you still count the bit in the calculation? Is 1000 0000 equal to -128, or is it 1111 1111?
Thanks for anyone that can clear this up!
John
20 years ago