3,927 Posted Topics
Re: Add System.out.println() statements in the calculations themselves so you can debug the intermediate results. | |
Re: >thats my main class. I think you mean that's the main class you copied from someone else and can't get to run. | |
Re: You need to add the mysql driver jar to your classpath. | |
Re: sillyboy is correct in what's causing the problem and, with your particular code above, String.equalsIgnoreCase() would save you having to check the multiple forms separately. | |
Re: Then why did you post the question in the HTML forum - especially when you already have an active thread on this in the Java forum? | |
Re: Correct it for what? You need to post specific questions or errors. | |
Re: You don't include the parameter types in a method call. Remove them and only pass the variables by themselves:[code]Store.changeLoanStatus(bookname, authorf, authors); [/code] | |
Re: You're probably going to have to dig into the event processing code of the combo and forward the appropriate events along to the checkbox that is being selected. | |
Re: >How do I solve this problem? You solve it by actually caring about coding the solution. That is how code gets finished. If you really don't care about the project you've decided to piddle around with, you're not going to put in the time, thought, and effort to see it … | |
Re: [QUOTE=qinazaza;828746]I just need a basic php code so that I can edit it. Thanks.[/QUOTE] If it's simple, why can't you write it? And if you can't write it, what makes you think you can edit it? | |
Re: You can use the following query to get a list of the non-system tables[code]select name from MSysObjects where type=1 and flags=0[/code] | |
Re: What exactly do you get out of postings like these? [url]http://www.google.com/search?hl=en&q=%22Prime+Minister+Jonathan+McDonald%22&start=0&sa=N[/url] | |
Re: You need to save a UserId with the plan data in that table. | |
Re: Since you have already rejoined under this new name, why not just post under this name and start with a clear slate? | |
Re: Why not just create the GUI itself with Netbeans (or some other GUI tool) and a little bit of dummy data? You don't have to actually wire it up at this point. | |
Re: You can take a look at using a [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/formattedtextfield.html"]JFormattedTextField[/URL] with a MaskFormatter also: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/formattedtextfield.html#maskformatter[/url] | |
Re: By 23 posts, you should be familiar with [noparse][code] [/code][/noparse] tags. Please use them. | |
Re: ^ this. I hadn't seen that particular post until you pulled it up. Thanks for sharing. | |
Re: So write it. It's your homework and this has nothing to do with Java. | |
Re: I agree with the others above: enough with this public crush thing you have going on. At best, it's disrespectful and you should be old enough to realize that. | |
Re: Don't try to cast a JasperReport object, which is apparently returned by that method call, to a String. The error is pretty clear. | |
Re: Here is a good place to start: [url]http://lmgtfy.com/?q=java+open+source+projects[/url] The best thing you can learn for programming is how to think for yourself. | |
Re: Ok, so now you just need to post the code you have so far and specific questions about it. | |
Re: I think it's probably just a validation issue with the container since you're changing the reference to the table. I would try to validate the JFrame and call repaint after you're swapped out that table as a start. Something to consider though: you only need to change the model when … | |
Re: Well, they're limited to 2,147,483,647 elements (which would be 4gb of data). I doubt you are hitting that limit. | |
Re: Are they available from the publisher or author as free downloads? | |
Re: You need to specify the full name of the driver in the Class.forName() call:[code] Class.forName("com.mysql.jdbc.Driver").newInstance();[/code] | |
Re: Leave your lame chat-speak at the door. Read the forum rules on this. | |
Re: That is exactly what the static methods on the utility class that stultuske suggested above would do for you. | |
Re: If you really want to learn then don't be so hostile to suggestions that could help you improve. His point was that you shouldn't write all of your code in main(). Learn to use classes and methods properly, as that is the entire foundation of Java. | |
Re: Are you're referring to the fact that when you double-click a jar file, there is no command window shown? | |
Re: I never posted in Community Introduction either. | |
Re: goyofoyo, it looks as if you modified the code you posted after BestJestSinceJC's question and did not mention the edit, which makes the thread very hard to follow. In the future, post the updated code as a reply and note what you've changed and what problems you are still having … | |
Re: And I don't know what you think this line is doing for you[code]inputdata=new Vector();[/code]but it isn't. | |
Re: Actually, a [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/documentlistener.html"]DocumentListener[/URL] is better suited to that purpose. Read more about the Document model here: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#document[/url] | |
Re: By 21 posts, you should know how to use [noparse][code] [/code][/noparse] tags. | |
Re: Just like any other KeyListener implementation: [url]http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html[/url] | |
Re: That is the currently selected file, so you could do this[code]JFileChooser chooser = new JFileChooser(); chooser.setSelectedFile(new File("Write your file name here"));[/code]Personally, I don't see why you would want to, but that will do it. (And there is no one named "u" here. Leave the lazy chat speak at the door) | |
Re: And did you try it with larger values? Run this with various values for the sleep time[code]long start = 0; for (int i=0; i<20; i++){ start = System.currentTimeMillis(); try { Thread.sleep(500); } catch (InterruptedException e) { } System.out.println((System.currentTimeMillis() - start)); }[/code]And the doc on currentTimeMillis() has the following to say[quote]public … | |
Re: That is an applet object tag - not Applet source code. You need the "burnshow.jar" if you're going to do anything with that at all. | |
Re: Go for either one, or both. They are both good languages and there are plenty of tutorials available with a simple Google search. The Java forum here has a [URL="http://www.daniweb.com/forums/thread99132.html"]"Getting Started"[/URL] thread stickied at the top. I didn't see one in the C# forum, but searching and asking questions should … | |
Re: Take a look at [URL="http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html"]SwingWorker[/URL]. You may want to read this tutorial as well: [url]http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html[/url] | |
Re: Maybe this example (and the others listed below it) will get you started: [url]http://www.exampledepot.com/egs/java.awt.image/ImagePixel.html?l=rel[/url] BufferedImage and Raster both have methods that allow you to work directly with the pixel array data. | |
Re: So you are just posting answers to homework questions so students can Google them easier? | |
Re: You'll probably have to attach the debugger from a separate command window. [URL="http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/jdb.html"]From the Sun doc on jdb:[/URL][quote]For example, the following command will run the MyClass application, and allow jdb to connect to it at a later time. % java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n MyClass You can then attach jdb to the … | |
Re: OpenGL and Java3D are only necessary for 3D work. You don't need to worry about them if you are working with 2D. | |
The End.