2,443 Posted Topics
Re: Well, seeing your code would be a good starting point. [b]And use code tags[/b] | |
Re: We could use a little more information. Do you get an error message when you run it? What is it suppossed to do, and what does it actually do? | |
Re: Java will always take the most specific applicable method. In this case, using null, the String one is the most specific, applicable method. | |
Re: So what, exactly, do you want use to do. I saw a few statements in that post, but no question. | |
Re: Well, let's just pick a braod topic, say tell me about, and then wait for specific detailed information about our nearly meaningless question, shall we? Do a little research until you have at least a general idea of what it is you want to do, Google and standard wikipedia are … | |
Re: Please don't double post. Here the original thread. [url]http://www.daniweb.com/forums/thread84032.html[/url] | |
Re: What do you mean [quote] I want to send the values in the text box to java [/quote] ? If the textbox is part of the applet, "java" already has the values. I think what you are looking for, however, are ActionListener and the getText() method of JTextField. Check out … | |
Re: Try looking into the HTMLDocument and HTMLEditorKit.Parser Classes. | |
Re: change [code] export PATH=$ORACLE_HOME/bin [/code] to [code] export PATH=${PATH}:${ORACLE_HOME}/bin [/code] | |
Re: You do realise that this thread was nearly 3 years old, right? | |
Re: [QUOTE=ProgrammersTalk;404222]it will work!!! but only as a method, not thread. It won't run simultaneously :)[/QUOTE] If you read his thread, that is exactly what he said. ;-) | |
Re: Do your own homework. You have a month, do it. God, asking for someone to do your work for you, then saying, in the same breath no less, that you want to master the language. Well, buddy, those two statements just do not go together. | |
Re: Runtime.exec() Read [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] If you insist on using Java to do this. I feel, for something this simplistic, and server undemanding, php or a simple CGI would be more than enough and any kind of Java/JSP (which would require an entire framework) is [b]extreme[/b] overkill. Ajax, IMO, would also be … | |
Re: Because, by having layers using defined interfaces between them, allows you to completely change the way a specific part of the program works without affecting the others. | |
Re: Yes place the push/unshift @INC in a BEGIN block, or change use MyModule to require MyModule. The keyword use forces inclusion of the module at compile time, so modifications of the @INC list (AFAIK) has no effect for a use, but a require doesn't include the module until "runtime", or … | |
Re: Javascript. most likely. Ask on the JavaScript Forum. | |
Re: Is the database running? Is it running on port 3306? Is there a firewall active blocking the port? Are you attempting to connect to the right host? Are you attempting to connect to 3306? Are you using the correct tablename in the connection url? Is the username and password correct? … | |
Re: What exactly are you trying to do, and what error messages / unwanted effects are you getting / seeing? The code in question would help, [b]alot[/b]. | |
Re: Look at the different Focus and FocusListener classes. I haven't done something like this, myself, yet, but I would assume that you will finds the info there. Specifically (now that I look at it): [url]http://java.sun.com/j2se/1.5.0/docs/api/java/awt/FocusTraversalPolicy.html[/url] | |
Re: He mentions netbeans because he was probably hoping to get an answer that told him what three or four mouse clicks he had to make in netbeans to get netbeans to generate the code. (Not that this either is, or is not, possible.) | |
Re: [QUOTE=deng_cen;398493]hi: you can do that like that is package com.structure; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class TestArray { static List<String> list = new ArrayList<String>(); // static Object[] state; public static void main(String agrs[]) { Scanner scan = new Scanner(System.in); System.out.println("Please input number:"); int num = scan.nextInt(); System.out.println("Please input … | |
Re: Although (at least according to the "normal" rules for class extension) it will compile just fine without overriding any of them (AFAIK, I haven't actually tried it), it just wouldn't do anything other than return the http error message that the requested http service/method is not supported/implemented. | |
Re: That's what these forums are for, so ask your question. | |
Re: [QUOTE=thekashyap;395756]AFAIK this used to be the case, now-a-days webServ itself takes care of both these tasks.[/QUOTE] No. Tomcat is a ServletContainer that is able to perform most of the tasks of a web server. Apache is a Web Server, but has 0 JSP/Servlet capability (it has its own ASPs, but … | |
Re: Using a NullLayout is not Platform independent as the varying underlying graphics systems display things differently, so the bounds are not always (and usually are not) the same and so your layout will not always work. As far as the buttons showing up under the image, remove everything from the … | |
Re: [quote=belhifet;394403]Yes I have, but I didn't get the correct answer yet. <deleted - keep it clean>.[/quote] Well, this is guanrteed to get you answers. Continue in the other thread. If you don't like the answers there, then say that in the thread and ask for other possibilities, don't just simply … | |
Re: They are called CustomRenderers. And, both of them are covered in the JTable Tutorial [url]http://java.sun.com/docs/books/tutorial/uiswing/components/table.html[/url] | |
Re: [code] awk '{print $1 "-" $2 "-" $3}' [/code] | |
Re: Because the Tomcat/Jakarta projects are a part of the Apache Foundation, but the Tomcat Server is not the same thing as the Apache Web Server. | |
Re: [QUOTE=kavita BUDHOLIA;391882]How To Store Image In Oracle[/QUOTE] Use a BLOB. [QUOTE=kavita BUDHOLIA;391882]And Fetch Using Jsp Java Beans.[/QUOTE] Use JDBC. Ask a [b]general[/b] question, get a [b]general[/b] answer. Try and start coding something (search for and read some tutorials and definately read the API for the involved classes), then when you … | |
Re: mod_jk is not part of Tomcat, per se. It is an apache module which allows apache to communicate with tomcat using a "special" protocol, thereby allowing apache to serve as a front end web server for tomcat. Therefore, that file will be found wherever apache stores its modules. | |
Re: First of all, What thing in bold? Second of all, why did you start a new thread? Rather than sticking with [url]http://www.daniweb.com/forums/thread81344.html[/url] ? | |
Re: Download a newer version of Java and use its plug-in ? | |
Re: What the prvious poster was saying is, post the method you are using, as well as the code where you get the string from the user, and where you then call the method involved. | |
Re: Your trying to access/use something that has not been defined/initialised yet. The full error message, and highlighting of the line referenced in the error message would help. | |
Re: I assume this is coming after some other command, right? Such as [inlinecode]cat somefile[/inlinecode]. So, what the following pipeline command does [code]cat somefile | grep "^[a-zA-Z]"[/code] is return all lines that start with a letter, whether capital or not. Effectivly filtering out all lines that do not. That is, as … | |
Re: [code] man rm -r is recursive (including the directories) -f force (don't ask) -i interactive (ask before deleting) [/code] Chances are, somewhere in the profile, whether in your shell or in /etc/profile is an alias that changes rm to rm -i. | |
Re: I'm sorry, but start your own thread, don't hijack someone else's. | |
Re: I will bet that currently, you have a JRE_HOME defined in your Tomcat configuration, but not a JAVA_HOME. Define JAVA_HOME in your Tomcat configuration and the problem should go away. | |
Re: What is the "input" object. It appears as though you have forgotten to declare, define, and initialize it. (I assume it is suppossed to be a Scanner or something like that). | |
Re: [code] Alarm a = new Alarm(); Thread t = new Thread(a); t.start(); [/code] Alarm implements runnable, that means it must define a method run, but it is not, in itself a Thread object. The method start is a method of Thread. You create a new Thread with your Alarm object … | |
Re: Try using [inlinecode]System.getProperty("user.dir")[/inlinecode] or [inlinecode]System.getProperty("home.dir")[/inlinecode] if you want the current directory or if you want the directory where that class file also resides, then try [inlinecode]getClass().getClassLoader().findResource("danger.jpg")[/inlinecode] Read the API for System and ClassLoader for a more detailed description. | |
Re: Stick to one thread. Either in this post, or your other one, post the code again (using code tags this time). Post, also, the complete error message and comment the line referenced in the error message. | |
Re: Read up on JDBC, first (the Sun tutorials are enough). Then download, read the documentation for, and experiment with, either POI or JExcel. Then, combine the lessons learned from the two above points. | |
Re: Could you be at least a LITLLE more specific. Post the entire error message, together with the code (abd use code tags) and mark with a comment, or something, the line referenced in the NullPointerException. As far as to your question "y the null pointer exception is coming" (which I … | |
Re: Well, you can remove files and directories from your path with a single find command as follows: [inlinecode]find /path/to/backup/root -mtime 4 -exec rm -f {} \;[/inlinecode] If you also want a list of files deleted in this manner than do as follows: [inlinecode]find /path/to/backup/root -mtime 4 -exec rm -f {} … | |
Re: Read the API for one of the Timer Classes. The one you want is probably javax.swing.Timer. | |
Re: [code] total += 1000; [/code] Assuming total is the variable. | |
Re: [code] javac *.java // or javac `find . -name \*.java` // then java TheClassWithAMainMethod [/code] | |
Re: Java != JavaScript. Please request to have your thread moved to the JavaScript forum. |
The End.