3,927 Posted Topics

Member Avatar for jdbarry

Add System.out.println() statements in the calculations themselves so you can debug the intermediate results.

Member Avatar for BestJewSinceJC
0
187
Member Avatar for G-to-the-RIZZLE

>thats my main class. I think you mean that's the main class you copied from someone else and can't get to run.

Member Avatar for G-to-the-RIZZLE
0
2K
Member Avatar for muskan
Member Avatar for peedi

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.

Member Avatar for sillyboy
0
177
Member Avatar for SSagar

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?

Member Avatar for Ezzaral
0
92
Member Avatar for yukirosaki
Member Avatar for Ezzaral
0
111
Member Avatar for G-to-the-RIZZLE

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]

Member Avatar for G-to-the-RIZZLE
0
125
Member Avatar for SSagar

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.

Member Avatar for Ezzaral
0
493
Member Avatar for Intrade

>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 …

Member Avatar for Ezzaral
0
81
Member Avatar for qinazaza

[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?

Member Avatar for Will Gresham
0
995
Member Avatar for Madbuda
Member Avatar for erdomester

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]

Member Avatar for erdomester
0
1K
Member Avatar for admiralxgmx

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]

Member Avatar for sneekula
0
510
Member Avatar for cuddykid
Member Avatar for Ezzaral
0
84
Member Avatar for admiralxgmx

Since you have already rejoined under this new name, why not just post under this name and start with a clear slate?

Member Avatar for The Dude
0
165
Member Avatar for BestJewSinceJC

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.

Member Avatar for BestJewSinceJC
0
87
Member Avatar for luke42

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]

Member Avatar for jasimp
0
204
Member Avatar for charlie81

By 23 posts, you should be familiar with [noparse][code] [/code][/noparse] tags. Please use them.

Member Avatar for jasimp
0
159
Member Avatar for xgmx

^ this. I hadn't seen that particular post until you pulled it up. Thanks for sharing.

Member Avatar for Ezzaral
-1
264
Member Avatar for bahr_alhalak
Member Avatar for verruckt24
-3
194
Member Avatar for serkan sendur

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.

Member Avatar for Ancient Dragon
1
668
Member Avatar for Fionageo

Don't try to cast a JasperReport object, which is apparently returned by that method call, to a String. The error is pretty clear.

Member Avatar for Fionageo
0
992
Member Avatar for m_sam6

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.

Member Avatar for Ezzaral
0
59
Member Avatar for grebnesor88

Ok, so now you just need to post the code you have so far and specific questions about it.

Member Avatar for ithelp
0
107
Member Avatar for Darkwater

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 …

Member Avatar for Ezzaral
0
161
Member Avatar for T'Scoopz

Well, they're limited to 2,147,483,647 elements (which would be 4gb of data). I doubt you are hitting that limit.

Member Avatar for Ezzaral
0
118
Member Avatar for fpk
Member Avatar for Ezzaral
0
71
Member Avatar for arkaprava

You need to specify the full name of the driver in the Class.forName() call:[code] Class.forName("com.mysql.jdbc.Driver").newInstance();[/code]

Member Avatar for peter_budo
0
164
Member Avatar for koolhoney07
Member Avatar for Caled

That is exactly what the static methods on the utility class that stultuske suggested above would do for you.

Member Avatar for stultuske
-1
443
Member Avatar for Valkerion

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.

Member Avatar for blog_user
0
1K
Member Avatar for caps_lock

Are you're referring to the fact that when you double-click a jar file, there is no command window shown?

Member Avatar for Ezzaral
0
62
Member Avatar for serkan sendur
Member Avatar for goyofoyo

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 …

Member Avatar for Ezzaral
0
295
Member Avatar for thijo

And I don't know what you think this line is doing for you[code]inputdata=new Vector();[/code]but it isn't.

Member Avatar for BestJewSinceJC
0
98
Member Avatar for denniskhor

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]

Member Avatar for Ezzaral
0
868
Member Avatar for The Dude
Member Avatar for denniskhor

By 21 posts, you should know how to use [noparse][code] [/code][/noparse] tags.

Member Avatar for denniskhor
0
80
Member Avatar for redZERO

Just like any other KeyListener implementation: [url]http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html[/url]

Member Avatar for Ezzaral
0
83
Member Avatar for jhonny_86

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)

Member Avatar for jhonny_86
0
126
Member Avatar for redZERO

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 …

Member Avatar for redZERO
0
102
Member Avatar for weblover

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.

Member Avatar for weblover
0
151
Member Avatar for Hugers

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 …

Member Avatar for Rashakil Fol
0
164
Member Avatar for c0dex

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]

Member Avatar for JamesCherrill
0
204
Member Avatar for redZERO

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.

Member Avatar for hell_tej
0
169
Member Avatar for serkan sendur

So you are just posting answers to homework questions so students can Google them easier?

Member Avatar for MosaicFuneral
0
1K
Member Avatar for youngstorm

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 …

Member Avatar for youngstorm
0
886
Member Avatar for nour-n
Member Avatar for llemes4011

OpenGL and Java3D are only necessary for 3D work. You don't need to worry about them if you are working with 2D.

Member Avatar for llemes4011
0
112
Member Avatar for ProgrammersTalk

The End.