736 Posted Topics

Member Avatar for JamieC90

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

Member Avatar for JamieC90
0
183
Member Avatar for muek

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

Member Avatar for stephen84s
0
168
Member Avatar for javaman2

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

Member Avatar for stephen84s
0
106
Member Avatar for PhiberOptik

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

Member Avatar for stephen84s
0
138
Member Avatar for Madhuparna

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 …

Member Avatar for stephen84s
0
132
Member Avatar for amalinaishak

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

Member Avatar for quuba
0
154
Member Avatar for nitinnitin18

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 …

Member Avatar for BestJewSinceJC
0
118
Member Avatar for bvssam

What is the Error that MySQl threw at you ?? Also did you remember to put the "END" at the end of the Trigger.

Member Avatar for bvssam
0
143
Member Avatar for kedakai

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 …

Member Avatar for kedakai
0
166
Member Avatar for boburob

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 …

Member Avatar for BestJewSinceJC
0
185
Member Avatar for cohen
Member Avatar for stephen84s
0
127
Member Avatar for andrepezzo

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 …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for hell2heaven

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 …

Member Avatar for stephen84s
0
125
Member Avatar for jackiejoe

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

Member Avatar for sillyboy
0
114
Member Avatar for anuragkollam

Considering the blatant disregard for the rules here, I had to give this guy a positive rep for exceeding the limits of ignorance.

Member Avatar for verruckt24
1
106
Member Avatar for psaziz

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:///.

Member Avatar for stephen84s
0
84
Member Avatar for BestJewSinceJC

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 …

Member Avatar for BestJewSinceJC
0
132
Member Avatar for Rameses

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 …

Member Avatar for BestJewSinceJC
0
93
Member Avatar for kc8pdr

@ben98 I am pretty sure the thread starter must have found one by now, so why did you have to resurrect this relic ?

Member Avatar for chackboom
0
140
Member Avatar for BobTheFish

Paste the code of the HTML file which is using your Applet, So we can see whats going on.

Member Avatar for BobTheFish
0
81
Member Avatar for sheff21

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 …

Member Avatar for ~s.o.s~
0
158
Member Avatar for confusedGirl

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

Member Avatar for BestJewSinceJC
0
202
Member Avatar for nymph

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 …

Member Avatar for nymph
0
126
Member Avatar for srs_grp

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

Member Avatar for srs_grp
0
126
Member Avatar for bahr_alhalak

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

Member Avatar for verruckt24
0
142
Member Avatar for abelarion

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 …

Member Avatar for abelarion
0
118
Member Avatar for dipesh1987

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

Member Avatar for stephen84s
0
76
Member Avatar for k2k

[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

Member Avatar for puneetkay
0
316
Member Avatar for Ezhilnila

Simple read the [URL="http://www.daniweb.com/forums/thread50370.html"]"Starting C"[/URL] thread at the top of the forum

Member Avatar for ajay.krish123
0
78
Member Avatar for Gabriel Arun.R

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.

Member Avatar for peter_budo
0
63
Member Avatar for PhiberOptik

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 …

Member Avatar for peter_budo
0
721
Member Avatar for rude04

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.

Member Avatar for peter_budo
0
155
Member Avatar for awo

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.

Member Avatar for ~s.o.s~
0
364
Member Avatar for raija09

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

Member Avatar for stephen84s
0
156
Member Avatar for deven1974

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 …

Member Avatar for quuba
0
217
Member Avatar for soniagupta98

[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

Member Avatar for PhiberOptik
-2
102
Member Avatar for ajithraj

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

Member Avatar for masijade
0
307
Member Avatar for The Dude
Member Avatar for dimplomat15

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 …

Member Avatar for dimplomat15
0
145
Member Avatar for theraven82

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

Member Avatar for stephen84s
0
128
Member Avatar for shubhang

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.

Member Avatar for verruckt24
0
147
Member Avatar for bbott

[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

Member Avatar for stephen84s
0
239
Member Avatar for tristan17

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

Member Avatar for sciwizeh
0
707
Member Avatar for oobokensilence

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

Member Avatar for stephen84s
0
135
Member Avatar for 83apple

I checked the site, I think you will have to purchase the script from SmsNexus, if you want to change that.

Member Avatar for 83apple
0
68
Member Avatar for Superstar288

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 …

Member Avatar for stephen84s
0
182
Member Avatar for Tyster

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 …

Member Avatar for quuba
0
1K
Member Avatar for GrimJack

[QUOTE=Jen0608;755586]this is just like that Michael Jackson Video![/QUOTE] I think you are talking about "Black or White"

Member Avatar for mrboolf
0
67
Member Avatar for PhiberOptik

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.

Member Avatar for neilcoffey
0
86
Member Avatar for PhiberOptik

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 …

Member Avatar for PhiberOptik
0
286

The End.