736 Posted Topics
Re: [QUOTE=JamieC90]I have tried using if (x[0][0] == x[0][1]...etc.), but this throws errors back at me[/QUOTE] And what are those errors Java is normally pretty clear while specifying any errors in code. And your thread title almost sounds like an ad in a matrimonial columns :P . | |
Re: Directly your stored procedure would not work, you will need to generate a dynamic SQL statement like this:- [code=sql] create proc dbo.uspMySearch ( @database1 nvarchar(50), @database2 nvarchar(50) ) as set nocount on execute 'select * from ' + @database1 + '.dbo.table1 UNION select * from ' + @database2 + '.dbo.table1' … | |
Re: Which world are you from, If you are not aware then "if" statements can be multiline too. For ex : [code=java] if(.........) { a = true; b= false; . . . } else if (........) { a = false; b = true; . . . . . } else { … | |
Re: Now if you have ever written a main, in your Java program, we write it as :- [code=java] public static void main(String args[]) { [/code] Here the args, is an array containing the parameters you provided at the command line. Consider the following example :- [code=java] public class CommandLineArgEx { … | |
Re: If you want to invoke the JSP page then you will have to use the following URL:- http://localhost:8080/JSPMultipleForms/<YOUR_JSP_NAME>.jsp When you call only [url]http://localhost:8080/JSPMultipleForms/[/url] , you basically are calling the context root of your Web application and Tomcat will try to search for files mentioned in your <welcome-file-list> (in you applications … | |
Re: Please use [URL="http://www.daniweb.com/forums/announcement9-3.html"]code[/URL] tags, if you wish us to go through the code. Also I hope you have indented the code correctly, because honestly I do not think any one will dare try to go through such a big file, especially if it is not presentable. To use code tags, … | |
Re: If you wish to be ale to fix the size and location of a component (irrespective of the users screen size, resolution etc), you will need to set your layout to "null" (not recommended) and then set the co-ordinates for each component manually. But then this could handicap your users … | |
Re: What is the Error that MySQl threw at you ?? Also did you remember to put the "END" at the end of the Trigger. | |
Re: Now let us look at the error :- [code]" Exception in thread “main” java.lang.Error: Do not use Login.add() use Login.getContentPane().add() instead at javax.swing.JFrame.createRootPaneException(JFrame.java:454) at javax.swing.JFrame.addImpl(JFrame.java:480) at java.awt.Container.add(Container.java.490) at Login.<init>(LoginDemo.java:26) at LoginDemo.main(LoginDemo.java:60) [/code] And you say you do not know what to do ????????? Sorry I do not want be rude … | |
Re: I think this is what is causing the problem :- [code=java] add(frame); [/code] To quote the Java Tutorial on frames [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html"]here[/URL] :- [QUOTE]A Frame is a top-level window with a title and a border. [/QUOTE] So basically frames cannot be added into any other component. What you could do is … | |
Re: A Very Merry Christmas to All daniwebbers ;-), from me too. | |
Re: Actually when you consider serializing static variables, it doesn't make any sense, because the static variables are part of the "STATE OF THE CLASS" not the "STATE OF THE OBJECT". However as far as your question goes, any variable not declared as "transient" (even static variables) would be serialized and … | |
Re: The question has already been answered, so please take some time looking through some previous threads, or better yet use the search box at the top right of your screen. Also give us a complete description of your problem, give us some details as to what is your error, what … | |
Re: [QUOTE=sillyboy]but for a school project I really wouldn't worry about it. [/QUOTE] I disagree with that one, School projects are supposed to teach you how you should do things the "RIGHT" way, the way things are supposed to be done. Even if this is a school project I suggest you … | |
Re: Considering the blatant disregard for the rules here, I had to give this guy a positive rep for exceeding the limits of ignorance. | |
Re: Well this is not a question of JSP, since your query is related to the IMG tag of HTML, Anyways try using the absolute path to your image file in the "src" attribute of the <img> tag, for example "D:\abc.jpeg", instead of file:///. | |
Re: Well not so embarrassing, I remember another naive employee from my firm (you will not want to believe this one) actually SHREDDED the most recent copy of her project and she had conveniently forgotten to commit her code every night in our version control system. So now back to the … | |
Re: You are facing that problem simply because if we look inside your constructor, the "button", that you have added to your JFrame is this this one :- [code=java] JButton button = new JButton ("Click ME!!"); [/code] And you are adding the ActionListener on that button Because of that the JButton … | |
Re: @ben98 I am pretty sure the thread starter must have found one by now, so why did you have to resurrect this relic ? | |
Re: Paste the code of the HTML file which is using your Applet, So we can see whats going on. | |
Re: Sheff21, you need to learn first about [URL="http://www.jmarshall.com/easy/http/"]HTTP[/URL]. And how data is sent to a web page via GET or POST. You send a request to a Web page via the GET or POST method, if you have done some basic web programming or written some forms in HTML you … | |
Re: Take it easy guys, most probably the thread starter's project deadline has already passed, so no use bumping this thread any more. Also if she is smart enough ( and worthy enough to be helped) I am pretty sure she will get the point with the first post itself , … | |
Re: Since you have already achieved control over your lights through your LAN, I am guessing you have some sort of listener (a kind of server) set up which actually listens to these requests on the PC where you have connected the lights on the serial port. To achieve the same … | |
Re: [QUOTE=srs_grp]How can i convert float or double to binary? [/QUOTE] Same way I convert. I would not mind giving you the answer, but let us see what have you tried. We only give answers to those who have at least made an effort to find them, So first show us … | |
Re: Considering the fact that you have a negative Rep and the fact that you have not even put in the slightest effort to do this assignment on your own made me think ten times before posting this. The dialog boxes shown in your snapshot can be done using the [URL="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html"]JOptionPane[/URL] … | |
Re: The Type 4 JDBC Driver for the MySQL database which you are talking about needs to be on the client, where your java application is running. Its exactly like using third party java libraries in your program. The "jar" file needs to be in your classpath while you are compiling … | |
Re: [QUOTE=dipesh1987;762988]Hi! i am trying to develop an application using java in which i want that i should be able to send messages from my application to mobiles and i m using a modem.please reply! i want the code in java for it.[/QUOTE] If you would have just cared to search … | |
Re: [QUOTE]newly wrote data until i compile again[/QUOTE] Please get your basic concepts on Java clear, compiling only takes your source code .java file(s) and generates the corresponding .class files for every class. It has nothing to do with anything that might go right or wrong at runtime | |
Re: Simple read the [URL="http://www.daniweb.com/forums/thread50370.html"]"Starting C"[/URL] thread at the top of the forum | |
Re: Yes and I want the moon. In case you want more help full answers out of me then read :- [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Member Rules[/URL] [URL="http://www.catb.org/~esr/faqs/smart-questions.html"]How to ask questions the smart way ?[/URL] [URL="http://www.daniweb.com/forums/announcement9-2.html"]Who we help ?[/URL] And then repost. | |
Re: First you could check whether your MySQL installation really works, try [icode]telnet <IP-Address-of-machine-which-has-MySQL-server> 3306[/icode] on your console, if this gives you a "Connection Refused" error then it means your MySQL server has not been installed correctly (or is running on a different port, 3306 is just the default). Now to … | |
Re: You can find a pretty comprehensive list of libraries to read and write PDF documents (both commercial and free) [URL="http://schmidt.devlib.org/java/libraries-pdf.html"]here[/URL] and [URL="http://www.dmoz.org/Computers/Programming/Languages/Java/Class_Libraries/Data_Formats/PDF/"]here[/URL]. Once you extract the text from the PDF file, displaying it should not be too much of problem. | |
Re: According to me the MAC-Address comes into play at the Data Link Layer, whereas Java can go down only till the Transport Layer. One of the reasons why I had read "ping" cannot be written in Java. | |
Re: [QUOTE]i got this code, unfortunately it refuses to run.. please help.. Something is wrong with "A", dnt know what it is...[/QUOTE] [QUOTE]im not really good in making classes.. some gave this to me but i don't fully understand... this is the code i guess... [/QUOTE] Now how are we supposed … | |
Re: Well Deven the error speaks for itself, let us look at your declaration of the method insert(Node,Node) (also I do not know why would you want two Nodes to be passed to the insert() method) in the Tree class: - [code=java] protected abstract Node<E> insert(Node<E> curr, Node<E> node); [/code] Now … | |
Re: [QUOTE=PhiberOptik;758295]Please post your code in tags, its almost impossible to read without them.[/QUOTE] Already had given her this advice in the first clone of this thread, but she just rather chose to just ignore it and created this one | |
Re: And how exactly is the target file shared on the network ?? FTP, HTTP ?? or just by SMB (Windows Sharing) ?? You need to divulge more details as to what exactly are you trying to achieve. Also although I know its useless saying this but still read [URL="http://www.catb.org/~esr/faqs/smart-questions.html"]this essay[/URL] … | |
Re: First please help us try to help you by :- [LIST=1] [*]Putting your code inside [noparse][code=java]and [/code][/noparse] tags, that way your formatting, Indentation (if any) is maintained and it also provides syntax highlighting so the code becomes more readable. you can read more about them [URL="http://www.daniweb.com/forums/announcement9-3.html"]here[/URL]. [*]Next tell us what … | |
Re: Since you have not posted the code of the two functions I can only guess that the transform function mentioned in the commented line here :- [code=java] recovered=IWT2_PO.transform(denoised, 4, QMF); [/code] is performing some modification(although it appears that it should not do so) in the value of the denoised array, … | |
Re: Try [URL="http://letmegooglethatforyou.com/?q=API+-+Application+Programming+Interface"]this[/URL] link. And if you still cannot figure it out then let us know. | |
Re: [QUOTE=jbennet;756866]Contact thier host/isp and tell them whats going on[/QUOTE] Chill JBennet, the topic is more than three years old, thats why Salem gave webdeb the bad cookie | |
Re: I am assuming you want to do that in an image, So check out the [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html"]java.awt.image.BufferedImage[/URL] class | |
Re: inFile is a non-static class variable while your main is a static method (which has to be in Java). And non-static instance variables cannot be accessed directly from static methods (to do so you will need to create an instance of the class and then access that instances inFile variable) … | |
Re: I checked the site, I think you will have to purchase the script from SmsNexus, if you want to change that. | |
Re: Whenever you are trying to add a variable to a Class always check for a "HAS-A" relationship. For ex: If you were to declare a Car class, it would definitely have the 4 tyre variables. Because A Car HAS Tyres. So you are talking of adding the ArrayList to your … | |
Re: My advice would be to confirm that really the file cannot be found. Take a look at the javadocs of [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html"]File[/URL] class. It has an "exists()" method using which you can really confirm whether the file can be read by your Java program or not. If the "exists()" method returns … | |
Re: [QUOTE=Jen0608;755586]this is just like that Michael Jackson Video![/QUOTE] I think you are talking about "Black or White" | |
Re: Take a look at the [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.htmlhttp://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html"]Runtime[/URL] class. Although I have not tried it with parameters, I think all you have to do is give the entire command to execute to its exec() method and it will return you a reference to that Process. | |
Re: Honestly even I have not been able to encounter any such method of editing files. What I do is read the contents of the original file into a [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html"]String[/URL] or [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringBuffer.html"]StringBuffer[/URL], using the methods of the String or StringBuffer class perform the required string manipulation on the file content, write … |
The End.