2,443 Posted Topics
Re: Try reading through [url=http://www.java-forums.org/advanced-java/34270-unable-write-post-url-java.html]this[/url]. | |
Re: This code is just all wrong. contactkeeper is a apckage so contactkeeper.mainscr would have to reference a class "mainscr" in the package "contactkeeper" statically, not a local (in main defined) instance of the class MainScreen. You also do not define the "MainList" thing anywhere, and definately not as a static … | |
Re: Because the thread was probably already started and is simply finished now. Once that happens you [i]cannot[/i] restart it, you must create a new one. | |
Re: See this [url=http://www.daniweb.com/forums/thread328107.html]thread[/url]. After creating the image use the getRGB method. | |
Re: Simply create a BufferedImage of the right size of type "BYTE_GRAY" and draw the colored image into it by retreiving the Graphics from the new BufferedImage and using drawImage with the coloredImage as the argument. | |
Re: Well this [code]"#.#########"[/code] is a String right? So what's wrong with doing [code]StringBuilder sb = new StringBuilder("#."); for (int i = 0; i < userInputedNumber; i++) { sb.append("#"); } DecimalFormat currQuant = new DecimalFormat(sb.toString());[/code] | |
Re: FYI also posted [url=http://www.dreamincode.net/forums/topic/202776-java-db/]here[/url] | |
Re: Uhm, read some input and compare it to the randomly selected word? | |
Re: [QUOTE=pradeeppatil110]please I am not student ,I am a software professional.. .......[/QUOTE] So then you should have some idea of what you need to do, and if not, you should have some idea of how to figure it out. If you don't that's not saying much for your being a "software … | |
Re: When you have a query with no parameters that is not meant to be run multiple times in a row. | |
Re: Rewrite the remaining 4000 in a new file, delete the old file, and rename the new file to the old file's name. | |
Re: Talking about elements in a Tree, you, then, don't want [i]either[/i] of those. Those are simple sets and maps and the "tree" portion of those only refer to the sorting order. If you [i]need[/i] a pre-finished class that can handle trees then see the API docs for DefaultTreeModel (normally used … | |
![]() | Re: Okay? That's your assignment, that's your code, what's your problem? |
Re: because calendar.getTime() retreives a Date object equivalent to the the last date and time [i]set[/i] in that Calendar object (which is, seemingly, the current time at the time you created it). Simply use new Date() where you are currently using that, or, if you insist on using the calendar (maybe … | |
Re: Reread the MySQL Connector/J documentation and redo the URL accordingly. | |
Re: First, remove that jar file from the ext directory, it does not belong there, and you would have to do it again with every upgrade to Java so it wouldn't be worth it anyway. Then, you can forget about the CLASSPATH environment variable your IDE won't use it to run … | |
Re: Nevermind, got my library APIs mixed up. | |
Re: Okay? For the first one a simple substr in a loop. In the second one a simple substr in a loop combined with charAt to determine the index. Using those hints, give it a try and then post your code with a specific question. | |
Re: That question seems to be backwards as JNI is meant to allow Java to use things written in other languages, not the other way around. Now, if that question is to "use printf from C in Java" then I would understand it, and that tutorial would help. IOW, find the … | |
Re: It's called reflection. Google that and find a tutorial. | |
Re: [url=http://www.lmgtfy.com/?q=jdbc+blob]here[/url]. | |
Re: Uhm, toArray(new String[0]) , maybe? See the API docs for Vector. | |
Re: Where did you show the output? You probably casted to int there. | |
Re: Well, if you did it correctly and the GUI code is not mixed in with the data and logic code, all you need to do is to write a new view (gui) using JSP, but, probably, you have it all mixed together and so need to simply rewrite the [i]entire[/i] … | |
Re: Whether you want to do the work yourself, or you want to control the read size of the buffer, or you don't want line endings getting hacked off (if using readLine), etc, etc. | |
Re: [QUOTE=Dhruv Gairola]btw, you would probably need to use Integer.parseInt somewhere in order to do the comparisons..[/QUOTE] No. I would say to simply do [code]if (!string.trim().matches("^[+-]?[0-9\\.]+$")) { System.out.println("is not a number"); }[/code] The only problem is that that misses things like 001.002.003 (i.e. strings with numbers and multiple dots). The other … | |
Re: Remove the JTable and the JLabel, then remove the JLabel and add the JTable. | |
Re: Okay? So, what, [i]exactly[/i], is your problem with that? Post your code, any and all error/compiler messages, and/or a brief description of expected vs. actual bahaviour/output. | |
Re: Well, hopefully you declared and defined the ArrayList as [inlinecode]ArrayList<Contact>[/inlinecode] and then you also need to to use the T[] form of the toArray method [inlinecode]Contact[] ia = contactObj.toArray(new Contact[0]);[/inlinecode] | |
| |
Re: Well then, display one (or fire an event programettically. Really, the "initial" display [i]never[/i] comes as the result of an action event, so, if you want a question displayed right away, than you need to display one, and not only display them in the Action Listener (which won't, obviously, be … | |
Re: Good for you. Maybe you'd be willing to tell us [i]what[/i] the problem is. | |
Re: Can we [i]see[/i] what you've tried? Otherwise a simple remove and add on the JTabbedPane (its remove and add as pertaining to it's tabs, or place [i]another[/i] panel on the tab in question and place your login panel in [i]that[/i] panel and remove and add from that panel) and don't … | |
Re: I'm sorry (not) but [url=http://www.lmgtfy.com/?q=what+is+the+JVM]this[/url]? | |
Re: :sigh: If you [i]really[/i] have to ask, you probably shouldn't be doing it. | |
Re: Stick with your [url=http://www.daniweb.com/forums/thread324296.html]JSP Thread[/url]. Closing this thread. P.S. its called "actually making use of the session". | |
Re: Many people here can, ask a specific question. Otherwise the answer is frame.setVisible(true) in an ActionListener. | |
Re: Simply call the add method, then validate and/or repaint. | |
| |
Re: [code]this.getClass().getProtectionDomain().getCodeSource()[/code] see the API docs for Class and ProtectionDomain and experiment a bit. | |
Re: A bowel? As in intestines (I.E. your "guts")? ;-) | |
Re: Okay? And [i]what[/i] part of this is giving you problems? Where is [i]your[/i] code? We are [i]not[/i] going to write it for you. | |
Re: An alias in your web server configuration. This is a web server question, nothing at all to do with Java. See the documentation for your web server. Edit: I.E. your "alias" will change "www.mydomain.com/john" to "www.mydomain.com/someservlet?someparam=john" and this [i]can[/i], normally, be done with wildcard expressions so you would not need … | |
Re: Because you declare but do not define "it" so it's initial value is null, and since you are doing "+=" with String types you are getting the String value of that null reference (i.e. "null") plus the String you are appending to it. | |
Re: [url=http://www.java-forums.org/new-java/34383-question-about-adding-using-arraylist-using-terminal.html]Cross-post[/url] |
The End.