2,443 Posted Topics

Member Avatar for ajst

Try reading through [url=http://www.java-forums.org/advanced-java/34270-unable-write-post-url-java.html]this[/url].

Member Avatar for ajst
0
320
Member Avatar for Dean_Grobler

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 …

Member Avatar for Dean_Grobler
0
708
Member Avatar for eman 22

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.

Member Avatar for masijade
0
84
Member Avatar for lh8ca

See this [url=http://www.daniweb.com/forums/thread328107.html]thread[/url]. After creating the image use the getRGB method.

Member Avatar for masijade
0
84
Member Avatar for takercena

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.

Member Avatar for masijade
0
298
Member Avatar for Katana24

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]

Member Avatar for masijade
0
108
Member Avatar for laupkram

FYI also posted [url=http://www.dreamincode.net/forums/topic/202776-java-db/]here[/url]

Member Avatar for masijade
0
99
Member Avatar for Goyle
Member Avatar for Goyle
0
138
Member Avatar for pradeeppatil110

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

Member Avatar for masijade
0
201
Member Avatar for DoubleShot

When you have a query with no parameters that is not meant to be run multiple times in a row.

Member Avatar for masijade
0
92
Member Avatar for titan5

Rewrite the remaining 4000 in a new file, delete the old file, and rename the new file to the old file's name.

Member Avatar for masijade
0
89
Member Avatar for eman 22

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 …

Member Avatar for masijade
0
93
Member Avatar for Codeslinger
Member Avatar for apines
0
108
Member Avatar for ajst

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 …

Member Avatar for ajst
0
188
Member Avatar for taufiqbzz
Member Avatar for StevePrim

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 …

Member Avatar for masijade
0
298
Member Avatar for sijothomas
Member Avatar for sijothomas
Member Avatar for Alex86fire

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.

Member Avatar for Alex86fire
0
165
Member Avatar for Xufyan

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 …

Member Avatar for masijade
0
745
Member Avatar for Abdel_eid
Member Avatar for JamesCherrill
0
129
Member Avatar for nikita.chandra
Member Avatar for Monkey-huh?
Member Avatar for raul8
Member Avatar for plasticfood
Member Avatar for techieinvents

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

Member Avatar for masijade
0
61
Member Avatar for daudiam

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.

Member Avatar for daudiam
0
250
Member Avatar for coding101

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

Member Avatar for Dhruv Gairola
0
187
Member Avatar for LianaN
Member Avatar for LianaN
0
4K
Member Avatar for sijothomas
Member Avatar for cocoll
Member Avatar for markhowe56

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.

Member Avatar for masijade
0
100
Member Avatar for Dean_Grobler

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]

Member Avatar for Dean_Grobler
0
140
Member Avatar for Anthony Cameron
Member Avatar for neo_31591

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 …

Member Avatar for neo_31591
0
92
Member Avatar for hiddenman91
Member Avatar for hiddenman91
0
103
Member Avatar for Anthony Cameron
Member Avatar for MellyMel1984

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 …

Member Avatar for MellyMel1984
0
201
Member Avatar for extemer
Re: JVM

I'm sorry (not) but [url=http://www.lmgtfy.com/?q=what+is+the+JVM]this[/url]?

Member Avatar for Dhruv Gairola
-1
118
Member Avatar for VAISHALI THAKER
Re: JAVA

:sigh: If you [i]really[/i] have to ask, you probably shouldn't be doing it.

Member Avatar for masijade
-5
62
Member Avatar for vij123

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

Member Avatar for masijade
0
107
Member Avatar for koushikG

Many people here can, ask a specific question. Otherwise the answer is frame.setVisible(true) in an ActionListener.

Member Avatar for javanub123
0
98
Member Avatar for ceyesuma
Member Avatar for ceyesuma
0
106
Member Avatar for de.ICeman
Member Avatar for sureshksk

[code]this.getClass().getProtectionDomain().getCodeSource()[/code] see the API docs for Class and ProtectionDomain and experiment a bit.

Member Avatar for sureshksk
0
69
Member Avatar for DallasFan3
Member Avatar for compe_dsd

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.

Member Avatar for compe_dsd
-1
200
Member Avatar for mole363

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 …

Member Avatar for Brillig
0
131
Member Avatar for akinfemi

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.

Member Avatar for kramerd
0
83
Member Avatar for chmo

[url=http://www.java-forums.org/new-java/34383-question-about-adding-using-arraylist-using-terminal.html]Cross-post[/url]

Member Avatar for masijade
-1
399

The End.