3,927 Posted Topics

Member Avatar for balagangadharm

[quote=balagangadharm;457669]cool dude dont get simply moved away.And u dont have anything to say about someone's attitude.If u then ur mind will definetly points about ur attitude wen give such responses.Just try to deal the things softly.Iam sorry if I hut u[/quote] This is not even decipherable.

Member Avatar for Ezzaral
0
93
Member Avatar for cms271828

Why not just use Applet->database? I think you may have to sign the applet, but you can use JDBC within an applet.

Member Avatar for Ezzaral
0
137
Member Avatar for pawan_1983

There is no need to create an .exe. If your jar has specified the Main-Class property in the manifest.mf file, it can be executed on it's own. The other jars and dll libraries can be simply packaged in a /lib folder and the whole app bundled as a zip or …

Member Avatar for Ezzaral
0
144
Member Avatar for Panarchy

[quote=Panarchy;457149]PS: Hopefully I will get the code soon![/quote] Hopefully you will use Google soon then, instead of pestering people here to give you code.

Member Avatar for Panarchy
0
157
Member Avatar for leroi green

You need to re-examine the basic structure of your class. This will not compile. Your main() method is not declared correctly. Several methods and even the class itself has no end brace. At least go through and make sure the methods are properly structured before you worry about putting any …

Member Avatar for mickinator
0
216
Member Avatar for The Dude

Sure, that's great.. unless you are the eagle and don't wish to exist in a surveillance society :P

Member Avatar for Ezzaral
0
32
Member Avatar for vivek_green

Just like you would identify any other character in a string: look for "\r\n" or "\n" (system dependent).

Member Avatar for Ezzaral
0
2K
Member Avatar for deeptiarora

There are apps that will do that, but why do you feel that you need to? You give up portability and tie your program to a single native compiler, which may be slower than newer JIT compilers. If you think you need an exe, know specifically why your app absolutely …

Member Avatar for Ezzaral
0
156
Member Avatar for thunderstorm98

[quote=Mongooseman;456306]Linux Air Disgruntled employees of all the other OS airlines decide to start their own airline. They build the planes, ticket counters, and pave the runways themselves. They charge a small fee to cover the cost of printing the ticket, but you can also download and print the ticket yourself. …

Member Avatar for Ezzaral
1
872
Member Avatar for balagangadharm

[quote=balagangadharm;456529]hi cany anyone help me how to upload and download an audio file using jsp[/quote] Perhaps you should be posting all of these questions over in the JSP forum instead of the Java forum.

Member Avatar for Ezzaral
0
79
Member Avatar for degamer106

There are two different ways you can approach drawing the spiral. 1) Using [URL="http://java.sun.com/javase/6/docs/api/java/awt/geom/GeneralPath.html"]GeneralPath[/URL] to define the path from a fixed coordinate system in which you define the coordinates of the segments to be drawn on a fixed x-y plane. 2) Using coordinate transformations ([B][URL="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html#translate%28double,%20double%29"]translate[/URL], [/B][B][URL="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html#rotate%28double%29"]rotate[/URL][/B]) to alter the coodinate …

Member Avatar for degamer106
0
2K
Member Avatar for lordx78

Um, no. If you can't understand homework code that you have copied, that would be your own problem. If you have a [U]specific [/U]question about some operation that it is performing then post it.

Member Avatar for Ezzaral
0
80
Member Avatar for vivek_green

Edit: This probably doesn't apply now based upon the example code you posted while I was responding. You mentioned using those two hashtables in other classes without qualifying them by name, which is not what your example indicates. Of course it will cause ambiguity. The only way to use them …

Member Avatar for jwenting
0
107
Member Avatar for flavour_of_bru

There isn't a specific function for that, but all you need to do is walk the tree and collect the parent references if node.isLeaf() is false.

Member Avatar for Ezzaral
0
58
Member Avatar for Labby77

Labby, please remove the advertising from your post as well. It has no bearing on your question and is not approriate for the forum.

Member Avatar for jwenting
0
93
Member Avatar for vladdy19

You don't show what code is getting that "s" object [inlinecode]s.getStudentID()[/inlinecode] but "s" is not getting cast to Student. It's still just Object, as indicated by the error message.

Member Avatar for masijade
0
151
Member Avatar for ubercat

Read the error in its entirety, especially the name of the class it reports and the line number. Try to figure out why the compiler cannot see that class.

Member Avatar for ubercat
0
160
Member Avatar for satish.paluvai

[quote=masijade;454551]By reading the documentation, maybe?[/quote] Yep, sounds like a good bet to me. They put that documentation in there for a reason :)

Member Avatar for jwenting
0
82
Member Avatar for JVStylez
Member Avatar for ezzat_hakeem
Member Avatar for Ezzaral
0
85
Member Avatar for Chaster

Read your Eclipse documentatioin for how to set the class path for libraries you are using in your project.

Member Avatar for Ezzaral
0
187
Member Avatar for The Dude

[quote=jwenting;450978]If you have a decent creditcard it is charged to your bank account every month, and has a low limit that's no more than you can (normally, if you don't do stupid things) pay off each month. Yes, many people get tons of credit cards to lead a high life …

Member Avatar for Lardmeister
0
242
Member Avatar for wegdan

Verify that you have the main class set. There is an an entry in the jar manifest.mf file [inlinecode]Main-Class:[/inlinecode] that specifies the main entry point class when the jar is run. If you have specified the main class in your project properties, this entry will be made automatically when you …

Member Avatar for peter_budo
0
116
Member Avatar for satish.paluvai
Member Avatar for rwm

Well, you are probably right on the bloat. It all depends on how your menu items need to be used. If you have a single menu for the app, then just create a single menu bar class that manages those items. If you need to share those menu items among …

Member Avatar for rwm
0
101
Member Avatar for kanetaz

It's going to be hard to set those name and value properties if you don't ever declare them.

Member Avatar for DrCruel
0
102
Member Avatar for leroi green

Closer, but still off by one. The methods are using a and b directly, instead of the array parameter :P You probably don't even want to define those array at the class level. They aren't related to the calculations themselves. Just define them in main() and use the methods for …

Member Avatar for leroi green
0
129
Member Avatar for PL.P27

No, it's not correct. You need to re-examine the basics of class structure. You don't even have the class, constructor, and main method defined correctly. This is just cobbled together pieces of UI creation code with no methods to actually do any computations. Even if it did compile it wouldn't …

Member Avatar for PL.P27
0
178
Member Avatar for flavour_of_bru

I'm not clear on what you want to do with the subtrees when you say "get the subtrees". If you select a node, you essentially have that subtree via it's children collection. What you do with that collection depends on your needs, so perhaps a bit more info would help.

Member Avatar for Ezzaral
0
214
Member Avatar for java_starter
Member Avatar for Ezzaral
0
101
Member Avatar for JavaNewbie07

Sure. 1) Learn the basics of the sort algorithm. 2) Learn the basics of a "double ended list" (doubly linked list you mean perhaps?). 3) Write code to perform the sort. 4) Post your code and questions if you encounter problems.

Member Avatar for Ezzaral
0
62
Member Avatar for alinurl

Are you compiling against JDK 1.5 or 1.6? Generics were introduced in 1.5 and if your JDK is older it won't like that declaration.

Member Avatar for alinurl
0
56
Member Avatar for rwagnes

[url]http://java.sun.com/javase/6/docs/api/java/io/File.html#lastModified([/url])

Member Avatar for rwagnes
0
99
Member Avatar for wegdan

No, because the button has no concept of what it is next to. That depends on where you put them, so you have to code your own method to determine what "next to" should be. Of course, the component does know things like it's local coordinates, which could certainly be …

Member Avatar for Ezzaral
0
62
Member Avatar for filanfis8

Well, as the message says [inlinecode]File not found: Computer.java[/inlinecode]. Make sure that the file is actually in that directory and you have not misspelled the name.

Member Avatar for parthiban
0
80
Member Avatar for eldnek

This search might yield a good starting point. [url]http://www.google.com/search?q=simple+%22name+disambiguation%22+&btnG=Search&hl=en[/url] As you might imagine, it can get fairly deep pretty quickly depending upon your expectations.

Member Avatar for eldnek
0
87
Member Avatar for iCez

The compiler gives you more information than just "errors". Post the errors and what you think might be the reason for them. You need to learn how to interpret those messages and deal with the cause. Throwing up your hands and saying "I have errors!" won't get you too far.

Member Avatar for iCez
0
94
Member Avatar for sawant_nitesh

[quote=sawant_nitesh;450830]What is the future of JAVA ? JAVA was overcoming Microsoft's .net because of it's platform independence. As in coming couple of years , Microsoft is going to launch a version of .net that will support all platforms like windows, unix, linux etc. Then will .net become trouble for JAVA …

Member Avatar for hopalongcassidy
0
183
Member Avatar for alexasmith

What have you been covering in class lately? I'm sure your instructor has given you some idea as to how he wants you to approach it.

Member Avatar for Ezzaral
-1
98
Member Avatar for JavaNewbie07

Well, "...." doesn't give much insight into what you are doing with your lists, but to perform math operations on the elements you will need to cast them to Integer types. If you are using Java 1.5 or 1.6, auto-boxing will let you add them directly. Otherwise you will need …

Member Avatar for JavaNewbie07
0
95
Member Avatar for rwarrender

If you first run the text through an expression that separates the uncommented code sections from the commented out sections, you can then parse only the uncommented sections.

Member Avatar for rwarrender
0
81
Member Avatar for naomiauk
Member Avatar for wegdan

What components are in your button[] array? Are they not the JButtons? If they are, you aleady have the button reference - it's button[i]. If that's not what you have in button[], then you can call getComponentAt() on the frame or panel that contains the buttons to get the component …

Member Avatar for Ezzaral
0
269
Member Avatar for bc030400412
Member Avatar for Ezzaral
0
93
Member Avatar for omi.jain

[quote=omi.jain;449794]plz send me inventory management project in java immedietly[/quote] No. Where do you get off demanding code from anyone? Do your own work or fail. No one here will shed a tear.

Member Avatar for Ezzaral
0
33
Member Avatar for jamminjelly

Actually, it complains that grade [I]might not have been[/I] initialized. "grade" is only given a value in the switch statement, which is a conditional. This means it's possible that grade might not get any value assigned and your later code which uses the variable may fail. The compiler warns you …

Member Avatar for jamminjelly
0
98
Member Avatar for cat8882
Member Avatar for ceyesuma

[quote=nschessnerd;448827]As far as i know getText doesnt have any parameters. you would just say [code] String x=box.getText(); Long l= Long.parseLong(s);[/code][/quote] Well, yes, mostly correct, except you want "long" not "Long" and the parameter should be "x" instead of "s". It also needs to deal with the potential NumberFormatException[code=java] JTextField txtField …

Member Avatar for ceyesuma
0
112
Member Avatar for Rashul
Member Avatar for mariejt

Ok, it's pretty close but missing one important step: actually showing something in your text area. The listeners change your displayBooks index, but you still need a method to show the current book. I would make a method that takes a book index value as a parameter and shows (or …

Member Avatar for mariejt
0
118

The End.