First  |  Prev |  Next  |  Last
Pages: 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
swing app using threads
Hi all I have a basic swing app that has a text area and 2 buttons (to keep things simple), when clicking the start button a sound is played, however this makes the app non responsive, all other controls do not respond till the sound stops. I made the class that plays the sound extend thread now the play butt... 8 Dec 2009 09:40
add authorization header (user/password) before sendRedirect
Hi I need to send a request to another web server The username and password are sent in the header (Authorization) But when I try as follows: response.addHeader("Content-Type", "application/x-www-form- urlencoded"); response.addHeader("Authorization", "Basic SUJJASDFASDFASDFUM="); response.sendRedirect(the... 10 Dec 2009 20:06
array concatenation problem
Consider the following function : String[] concat(String[] Final, String[] Fresh) { String[] C= new String [A.length+B.length]; System.arraycopy(A, 0, C, 0, A.length); ... 3 Dec 2009 12:34
Problem tracking down an error
I've got some production code and at one site I keep getting an ArrayIndexOutOfBoundsException. The problem is that there is no line number in the stack trace so I don't know where this is happening. The error is posted below. This one user must be doing something different than the other two but I can't get... 2 Jan 2010 22:39
return to the begin of InputStream
How to return to the begin of InputStream after reading this file? ... 3 Jan 2010 20:27
Forcing garbage collection
Hello Java Guru's! Is there a way to force garbage collection in Java? Before anyone answers I feel I need to state: - I know about System.gc() and Runtime.gc() and what they do - I am not suggesting to do this in production code The purpose of my asking is that I want to test a finializer during a unit tes... 1 Dec 2009 19:32
Calendar.add (DAY_OF_YEAR, 1) - roll not working properly
Simple code snippet: =================== Calendar date = Calendar.getInstance(); date.set(Calendar.YEAR, 2007); date.set(Calendar.MONTH, 4); date.set(Calendar.DAY_OF_MONTH, 30); date.add(Calendar.DAY_OF_YEAR, 1); =================== After this manipulation, the date reads out as 2007-04-31 - reading it with... 3 Jan 2010 20:27
Using examples in software development
On Fri, 27 Nov 2009 05:42:19 -0800 (PST), Ohad Barzilay <ohadbr(a)gmail.com> wrote, quoted or indirectly quoted someone who said : We are conducting an online web survey as part of a research, held in Tel Aviv University, that investigates the use of examples in software development. By 'using examples' we mean... 28 Nov 2009 10:06
How to send native printer commands (escape codes) directly to the printer ?
On Wed, 25 Nov 2009 03:50:26 -0800 (PST), Krist <krislioe(a)gmail.com> wrote, quoted or indirectly quoted someone who said : How can I do it in Java , access printer port and send native printer commands (escape codes) directly to the printer ? see http://mindprod.com/jgloss/printing.html -- Roedy Green Cana... 25 Nov 2009 14:55
How to send native printer commands (escape codes) directly tothe printer ?
On Wed, 25 Nov 2009 03:50:26 -0800, Krist wrote: Hi all, How can I do it in Java , access printer port and send native printer commands (escape codes) directly to the printer ? (a) Use a socket connection to send the escape codes to a tiny C program that copies bytes from the socket to the par... 25 Nov 2009 09:15
First  |  Prev |  Next  |  Last
Pages: 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83