Forum: Java 16 Days Ago |
| Replies: 1 Views: 176 Hello all,
I have the bluej source code in eclipse, and it compiles fine, but when I try to run it BlueJ starts fine, and then pops up an error window that says that bluej couldn't create a VM.
... |
Forum: Java 16 Days Ago |
| Replies: 3 Views: 287 thanks for the suggestion, I actually already have the bluej source, but I haven't been able to run it out of Eclipse, I get a very strange error, but I will definitely look in those packages now.... |
Forum: Java 17 Days Ago |
| Replies: 14 Views: 521 What exactly is your question?
one thing is that your not calling any method from within main(), which would be why it doesn't do anything (if that's your problem.
Another thing I notice that... |
Forum: Java 17 Days Ago |
| Replies: 3 Views: 287 Update:
After a lot of googleing I found this link: http://java.sun.com/developer/technicalArticles/javase/extensible/
it explains some of what I was curios about, but, I'm wondering how I can... |
Forum: Java 21 Days Ago |
| Replies: 20 Views: 556 I see one thing that could be a problem, getValues.nextLine()=="n" will (should) always return false, because it compares the memory addresses, so you should replace it with... |
Forum: Java 21 Days Ago |
| Replies: 3 Views: 406 That's only necessary if there are other things on the JPanel (buttons other panels etc..)
The problem is that your image is null, as for why, I am not sure, but that is the reason that the... |
Forum: Java 21 Days Ago |
| Replies: 3 Views: 273 I didn't run into any problems with your code, I added the necessary imports to run it, and commented out the five lines of code that deal with classes that you did not include:
static Control c... |
Forum: Java 21 Days Ago |
| Replies: 3 Views: 273 We can only help if we can see the code, otherwise there is no way for us to know what is wrong, it could be something simple your overlooking.
the only thing I can think of is that the frame is... |
Forum: Java 21 Days Ago |
| Replies: 3 Views: 287 Hello all,
As you may know by now, from my previous posts recently, I am working on a Paint application. My question, then, surprisingly does not involve Graphics or Swing.
So my question... |
Forum: Java 23 Days Ago |
| Replies: 3 Views: 300 Thanks for the reply, I will look into that, it probably would be more efficient that way. |
Forum: Java 23 Days Ago |
| Replies: 3 Views: 300 Well, as an update, I'm using this as a temporary solution,
BufferedImage im = new BufferedImage(b,b,TYPE_INT_ARGB);
im.getGraphics().drawImage( this, 0, 0,... |
Forum: Java 23 Days Ago |
| Replies: 3 Views: 300 Hello all,
I have a new problem with my Paint app, I have a TYPE_INT_RGB buffered image, and I'm drawing a "preview" of it, but I want to be able to see through the "preview." Is there a way to... |
Forum: Java 29 Days Ago |
| Replies: 3 Views: 244 I didn't want to post my code before because it's long and dididn't have any comments, now that I've commented it I suppose I'll post it. I have the JList displaying exactly what I wanted to,... |
Forum: Java 29 Days Ago |
| Replies: 3 Views: 244 Hello All, it's been a while since I've had a question for you all.
I'm trying to write a paint app, I've done so before, but this time I decided to add Layers, and I wanted a JList of the layers, I... |
Forum: Java Sep 18th, 2009 |
| Replies: 2 Views: 280 thanks for the info, I'll relay that to him. |
Forum: Java Sep 17th, 2009 |
| Replies: 2 Views: 280 Hello everyone,
Someone I know asked me about a problem he has with a program he is writing. I know nothing about his code, but he is writing a keyboard program, with the midi synthesizer in the... |
Forum: Java Jun 15th, 2009 |
| Replies: 8 Views: 528 I think I can shed some light on why people have stopped replying... People don't like that sort of application, so not many people are willing to help create one.
if I were to give a fast guess,... |
Forum: Java Jun 15th, 2009 |
| Replies: 6 Views: 285 Thanks, perhaps I'll just make it for only one type. The reason I wanted this is because I wanted to have a position in an array as a vector which has to be an int, but I also wanted to be able to... |
Forum: Java Jun 14th, 2009 |
| Replies: 17 Views: 895 Look at the java tutorial on collections there is an entire trail there, here is a link: Collections trail (http://java.sun.com/docs/books/tutorial/collections/index.html) |
Forum: Java Jun 14th, 2009 |
| Replies: 5 Views: 328 What do you mean by "fake Java"? Do you mean Processing (http://processing.org/reference/environment/)? if that is the case than you can simply download it as it is free.
If it is not processing,... |
Forum: Java Jun 14th, 2009 |
| Replies: 6 Views: 285 what i mean by "cannot do that" is that because of the generic within the class trying to take the component x of type <T> and add it to another Java won't accept that as correct.
here is the code... |
Forum: Java Jun 14th, 2009 |
| Replies: 6 Views: 285 Hello all, it's been a while since I've had a question, but I'm back.
I'm trying to write a Vector class which can be any type. The problem I have is that generics can only hold objects, so when I... |
Forum: Java May 22nd, 2009 |
| Replies: 6 Views: 626 Thanks for the information, I didn't realize that there were more posts here, because I didn't get the normal e-mail from daniweb. thanks i'll use that Ezzaral. |
Forum: Java Mar 17th, 2009 |
| Replies: 6 Views: 626 thanks for the reply (and welcome to daniweb first post I see) I ended up doing that already, I figured it could be a temporary solution, until someone here might come up with something else, maybe... |
Forum: Java Mar 16th, 2009 |
| Replies: 6 Views: 626 Hello All,
I'm trying to write a simple html editor that will highlight tags, and it does, but if the user types the caret jumps to the very end of the document, how can I stop this from... |
Forum: Java Feb 23rd, 2009 |
| Replies: 2 Views: 1,224 thanks for the reply, no one else seems to not know, I did however find a way to do it, I found it while searching google,... |
Forum: Java Feb 22nd, 2009 |
| Replies: 4 Views: 607 I have a new suggestion for you.
Make a new JPanel, or JComponent instance in your constructor, then rather than adding your listeners to this add them to the JPanel/JComponent and add the... |
Forum: Java Feb 22nd, 2009 |
| Replies: 1 Views: 786 unable to edit last post, sorry about the double post and the bump, but I thought about something else that I could use some advice on.
Once I can use an animated GIF (still haven't figured it... |
Forum: Java Feb 22nd, 2009 |
| Replies: 2 Views: 1,224 Hello, this is related to the last thread I posted (http://www.daniweb.com/forums/thread177461.html), but it is also different. I found something about ImageObserver with a google search and can't... |
Forum: Java Feb 22nd, 2009 |
| Replies: 3 Views: 382 JOptionPane.showMessageDialog(...); takes two strings, you are only using one really long string after +payment, add "", |
Forum: Java Feb 21st, 2009 |
| Replies: 4 Views: 607 I'm not sure, usually the component in question has to have focus. The only way I have been able to get a key listener to work is to derive from JComponent rather than JFrame then add the derived... |
Forum: Java Feb 21st, 2009 |
| Replies: 4 Views: 607 Hello,
I think I may have found a reason, but I also have a few questions, the first of which is why are you using a window listener, the same action could be done with:... |
Forum: Java Feb 21st, 2009 |
| Replies: 1 Views: 786 So, I got this idea that I could make a simple game in Java, with animated GIFs for the running animations, but I have a problem, although Java will display the animation on a JLabel when made into... |
Forum: Java Feb 7th, 2009 |
| Replies: 2 Views: 2,083 I know, but, i've tested out some random stuff, and my way makes a better spread. |
Forum: Java Jan 29th, 2009 |
| Replies: 8 Views: 1,247 may i suggest that you look at the first thread i started after my joining Daniweb? it has a solution to the problem that i got from a book (the art of java, search it on amazon), but i do suggest... |
Forum: Java Jan 29th, 2009 |
| Replies: 3 Views: 647 The Art Of Java (http://www.amazon.com/Art-Java-One-Off/dp/0072229713) has an example of a web crawler, but it doesn't go into mySQL. |
Forum: Java Jan 24th, 2009 |
| Replies: 2 Views: 2,083 This is a simple implementation of the Chaos Game to produce a Seirpinski Triangle. |
Forum: Java Dec 15th, 2008 |
| Replies: 7 Views: 580 wow... i figured it out when i actually called initialize it did log an exception, a NullPointerException, i realized that i was setting parent=parent rather than parent1... that fixed everything... |
Forum: Java Dec 15th, 2008 |
| Replies: 7 Views: 580 crap, i can't believe i didn't catch that one... thanks, i have a bit of time now, i'm going to try{}catch{} that now |
Forum: Java Dec 15th, 2008 |
| Replies: 11 Views: 6,147 oh, yea, i forgot about that parameter, oops |