Forum: Java Jun 17th, 2009 |
| Replies: 2 Views: 297 Alright, that is helpful information. I think that is all I need to know for my purposes, thanks for the help. |
Forum: Java Jun 16th, 2009 |
| Replies: 2 Views: 297 So I am writing a voice activated recording program, and one of the things I would like it to do is plot the current and past volume level on a JPanel.
Write now I am simply reading one byte from... |
Forum: Java Apr 2nd, 2008 |
| Replies: 8 Views: 853 Alright, the combination of those posts resulted in a pretty comprehensive answer. It even answered another question I had on the effects of instantiating within a loop opposed to before it. So,... |
Forum: Java Apr 2nd, 2008 |
| Replies: 8 Views: 853 So, readability aside, it is more efficient to do a fairly simple calculation two or three times than to store the result?
The code in question is going to be called every time the paintComponent... |
Forum: Java Apr 1st, 2008 |
| Replies: 8 Views: 853 When is it more efficient to store the value of a calculation than perform that calculation 2 or more times?
I have always been under the impression that performing a simple arithmetic calculation... |
Forum: Hardware Swap Mar 24th, 2008 |
| Replies: 0 Views: 3,706 So I have a couple pieces of hardware which I don't need anymore.
-Onkyo TX-8511(B) receiver
-Sony CDP-CX355
-Creative L3500 speakers
-HP deskjet 930c
-HP Officejet 5510
-Nostromo n50... |
Forum: JavaScript / DHTML / AJAX Dec 23rd, 2007 |
| Replies: 7 Views: 1,489 Alright Hielo, that's enough information for me to know what I'm aiming for, so I'll now take a shot.
Thanks for taking your time to answer my questions. |
Forum: JavaScript / DHTML / AJAX Dec 23rd, 2007 |
| Replies: 7 Views: 1,489 Thanks Hielo, and S.O.S. Those replys threw a lot of light onto the situation. I'm afraid I have one more question regarding the next step. Once the information is delivered to a server side script,... |
Forum: JavaScript / DHTML / AJAX Dec 23rd, 2007 |
| Replies: 7 Views: 1,489 Oh then I suppose I mis-interpreted what was used to create this page (https://www251.safesecureweb.com/ramadabelton/reserve.aspx). What exactly would I be looking at to create something similar? I... |
Forum: JavaScript / DHTML / AJAX Dec 20th, 2007 |
| Replies: 7 Views: 1,489 The only experience I have in programming is with Java, and I am somewhat experienced in that. However, I have only just touched the surface of javascript by implementing google maps into a page of... |
Forum: Java Sep 6th, 2007 |
| Replies: 7 Views: 4,535 If you got errors when compiling, then I suspect that you did not declare s as a static variable.
You may already be aware of this, but it seems you would have to divide length by two otherwise... |
Forum: Java Sep 5th, 2007 |
| Replies: 7 Views: 4,535 Hmmm, my guess would be that you either pass s as another parameter or instantiate s outside of the method. If you choose the latter you will have to reset s once length = 0.
That's my guess... |
Forum: Java Feb 14th, 2007 |
| Replies: 4 Views: 1,238 Thanks for the reply cudmore, I should be able to find the information I need with the links you provided.
Jwenting, after searching through the index of the current book I'm using: "Fundamentals... |
Forum: Java Feb 13th, 2007 |
| Replies: 4 Views: 1,238 A friend of mine and I are taking an external computer science test. While studying the review it has become apparent that some of the syntax presented is quite unfamiliar.
Here are a few examples:... |
Forum: Java Feb 6th, 2007 |
| Replies: 2 Views: 971 Thanks; I should be able to find any other information with what you have given me. |
Forum: Java Feb 6th, 2007 |
| Replies: 2 Views: 1,928 As for learning swing, try this page:
http://java.sun.com/docs/books/tutorial/uiswing/TOC.html |
Forum: Java Feb 6th, 2007 |
| Replies: 2 Views: 971 I was going through the questions in my study guide for computer science, and I noticed a few blocks of code that contained syntax that I had never used before.
My first question is on the ^... |
Forum: Java Jan 2nd, 2007 |
| Replies: 3 Views: 1,309 Thanks, I was not aware of that.
In the end what I ended up doing was compiling it through the command prompt. Then I changed the current directory I was viewing to that of the java file. Then using... |
Forum: Java Jan 2nd, 2007 |
| Replies: 3 Views: 1,309 I've never actually ran a CLI based program outside of bluej.
And after exporting one of my programs to a jar, I noticed I was not able to get any results when double clicking the jar.
So, I'm... |
Forum: Java Nov 22nd, 2006 |
| Replies: 3 Views: 2,209 I think you may be best off using KeyboardReader to take input.
And you definitely have to use Ancient Dragon's suggestion for the bubble sort. |
Forum: Java Nov 22nd, 2006 |
| Replies: 2 Views: 1,080 Yeah the File Class should have all the methods that you would need.
http://java.sun.com/j2se/1.3/docs/api/java/io/File.html |
Forum: Java Nov 22nd, 2006 |
| Replies: 1 Views: 6,866 Let me focus the question.
When updating a JList would this code do the trick:
public void updateList(JList list, ArrayList objs)
{
DefaultListModel listModel =... |
Forum: Java Nov 22nd, 2006 |
| Replies: 1 Views: 6,866 So this is my first attempt at a GUI in swing, and so far things seem to have been going somewhat smoothly.
However I am un-able to update a JList named objectsL.
I imagine this is because I have... |