3,927 Posted Topics

Member Avatar for pooja.shinde

>Plz give solution as soon as possible. Good info [here](http://www.catb.org/~esr/faqs/smart-questions.html#urgent) and [here](http://www.informit.com/articles/article.aspx?p=1592963&seqNum=3)

Member Avatar for JamesCherrill
0
612
Member Avatar for kaushik259106

All of the above suggestions are valid and using a [URL="http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html"]regex pattern[/URL] is another option. Regex will allow a pretty complex input string to be validated rather simply.

Member Avatar for ScottyKnows
0
1K
Member Avatar for sirlink99

Created a BufferedImage of the desired dimensions, create a graphics context for it with createGraphics(), and pass that to your rendering method or paint() method. Use the ImageIO.write() method to write that out to a file.

Member Avatar for richieking
0
82
Member Avatar for raviaaaa

> jdk 1.4 and tomcat 4 Firstly, install components that are not 10 years old. There is no reason to be using 1.4 and Tomcat 4. Regarding your question, you could build your map by checking for the key before you put the value and if it exists, concatenate the …

Member Avatar for JamesCherrill
0
409
Member Avatar for jackmaverick1

It really shouldn't be any different from other collisions. Once you know the collision occurred, you just change the state of the colliding object to whatever result you intend. That may involve adjusting its velocity and position.

Member Avatar for jackmaverick1
0
214
Member Avatar for rupes0610

Use [OpenCSV](http://opencsv.sourceforge.net/). You can use tabs delimiters with a CsvReader and a CsvWriter for the output. Use regex to split "rdy 784 bsy 16".

Member Avatar for Ezzaral
0
146
Member Avatar for MooGeek

Er... yeah, arinborn. A poorly-quoted except from a "discussion" unknown to most surely best addresses the point. Perhaps supplying a bit of context would clarify your point? As it stands, it's absolute nonsense - though I'd wager that par for most threads on this topic.

Member Avatar for Stuugie
0
356
Member Avatar for koduruabhinav

The DecimalFormat class will allow you to specify a format string to control such things. Look it up in the API. The String.format() and PrintStream.printf() functions also allow such formatting.

Member Avatar for Ezzaral
0
105
Member Avatar for poojavb

Yes, as JorgeM mentioned, try clearing your cache. I saw the kitten until I hit Ctrl-F5 in Firefox to clear the cache and reload.

Member Avatar for poojavb
0
148
Member Avatar for jdseader

As long as the two frames have references to one another, you can easily interact between the two. Another idea may be to use a non-visual controller that can act as a mediator between the two frames and synchronize interactions and state changes as needed.

Member Avatar for twmgeo
0
915
Member Avatar for vaironl

In Java, you can use the [JOGL bindings](http://jogamp.org/jogl/www/) for OpenGL. There are some basic tutorials on their project site and then you can move on to the [NeHe OpenGL tutorials](http://nehe.gamedev.net/). The [OpenGL red book](http://www.glprogramming.com/red/) is a good reference to keep handy. The JOGL bindings are just wrappers around the OpenGL …

Member Avatar for Ezzaral
0
146
Member Avatar for tracydo

Use a counter variable or a for loop. Any further questions should go in a new thread of your own. Don't hijack old threads to ask new questions.

Member Avatar for Ezzaral
0
1K
Member Avatar for sayeila241

If you need help then start a new thread and post [U]specific[/U] questions you are having trouble with.

Member Avatar for manar mansour
-7
352
Member Avatar for BestJewSinceJC

The read loop starts on line 20: `while(file.hasNext()){` That loop is where you'd perform any operations you want to do with each entry.

Member Avatar for Ezzaral
0
5K
Member Avatar for john_beginner
Member Avatar for stultuske
0
13K
Member Avatar for Dani

> Is it really annoying? Yes. It is. > Does it make the ads more noticeable? If by 'noticeable', you mean 'more noticeably annoying', then yes, it does.

Member Avatar for Sahil89
0
843
Member Avatar for kirii
Re: help

No one is going to answer your quiz for you. Try Google or read your class notes.

Member Avatar for JorgeM
0
60
Member Avatar for happygeek
Member Avatar for Iamateur

Do not make multiple threads for a single question. Closing this one. Please continue working through the original thread.

Member Avatar for Ezzaral
1
161
Member Avatar for Nicky1224

Closing this thread as it is in breach of the DaniWeb rule (http://www.daniweb.com/community/rules) that states you must show "evidence of having done some work yourself if posting questions from assignments". What this means, for future reference, is that we expect you to have put some effort into solving the problem …

Member Avatar for Ezzaral
0
90
Member Avatar for hadi1370

Based on the minimal information that you provided, I guess you can start here: [url]http://download.oracle.com/javase/tutorial/2d/index.html[/url]

Member Avatar for Miladsob
0
117
Member Avatar for jbennet

Obviously these aren't priorities, just general observations: "Show Comments" link is visible when there aren't actually any comments. "Show Comments" is still displayed when comments are showing. Perhaps it should change to "Hide Comments" to reflect its functionality if clicked again.

Member Avatar for Airshow
0
2K
Member Avatar for Thermalnuke

> and no this question is not Homework what so ever How do you expect anyone to buy that when you are obviously in a Java class currently? Show some effort and at least make a start on it or ask specific questions about what you are confused about.

Member Avatar for Ezzaral
0
185
Member Avatar for best4050

The API doc on ResultSet says getRow() is optionally supported on forward-only result sets. Sounds like your JDBC driver opted to not support it. Try creating your statement to be scrollable Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

Member Avatar for Ezzaral
0
221
Member Avatar for nicolemarie
Member Avatar for cpat258
Member Avatar for Biiim
0
118
Member Avatar for msmriyas

The error is pretty clear. You don't have a main method defined in that class, so you cannot run it directly.

Member Avatar for NormR1
0
158
Member Avatar for msmriyas

If the class StackX is not in the same directory as this file, you will need to import the StackX class to reference it.

Member Avatar for NormR1
0
215
Member Avatar for ~s.o.s~
Member Avatar for AirmanTheGreat

Seems like your friend who said it could easily be done in a few lines of code would be the best place to start.

Member Avatar for AirmanTheGreat
0
135
Member Avatar for Dani

What about ditching the alternating line highlight? It seems to make it less readable rather than more. Such highlight is helpful for tabular reports - not so much for code.

Member Avatar for Dani
0
526
Member Avatar for Stevo812

The general gist of it would go as follows: You already (should) know the coord of the center of the cue ball. While the mouse is pressed, your mouse point becomes the endpoint of a line to the cue and is easily updated in mouseDragged(). The length of that line, …

Member Avatar for NormR1
1
1K
Member Avatar for Mr.BunyRabit
Member Avatar for Mr.BunyRabit
0
210
Member Avatar for MrHardRock

Your class needs a main() method defined if you are going to run it directly. public static void main(String[] args){ ... }

Member Avatar for Ezzaral
0
230
Member Avatar for syed30

syed, Helping is one thing. Asking others to just give you the code is something else entirely. You don't seem to be putting any effort into this. Even the original piece of code you posted was copied from elsewhere. Students are expected to make an effort if they wish to …

Member Avatar for Ezzaral
1
509
Member Avatar for Bowsan22

You are dividing by the length of the grades array, but not all of those elements have a value. You need to divide by the actual number of entries the user has added.

Member Avatar for Xinen
0
329
Member Avatar for #include <lou>

So everyone is supposed to know what some obscure "MARIE" simulator is? As bibki pointed out, you're in the Java forum - which MARIE is not. "Written in Java" != Java. No need to be a jerk when you are the one posting in the wrong forum about some simulator …

Member Avatar for nydriek
0
4K
Member Avatar for 117

Is there a reason not to just use [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/internalframe.html"]JInternalFrames[/URL] for this? It seems that is what you're trying to mimic.

Member Avatar for 117
0
4K
Member Avatar for gerchi152

Some of your variables will only be initialized if conditions are met. The compiler requires that they be initialized under all conditions. If you declare them to have an initial value, the compiler will be satisfied[code]String ch2="";[/code] Edit: cross-posted with above.

Member Avatar for Ezzaral
0
314
Member Avatar for spixy
Member Avatar for CertifiedMan

The infographic looks like useless promotional propaganda to me. Only half of it's visible and I see no source cited. Are you at all affiliated with that facebook group?

Member Avatar for jbennet
0
191
Member Avatar for rambo12

Merged three threads for the same question. Please do not post the same question multiple times.

Member Avatar for Ezzaral
0
487
Member Avatar for chrislucas11

Mentioning ASP in your first post or posting it in the correct forum would have been more helpful in getting an answer. Are you using classic ASP or ASP.NET?

Member Avatar for SummiRS
0
110
Member Avatar for Tuz
Member Avatar for AbdullahJava
Member Avatar for uurcnyldrm

Jesus, just pick one already. You have an entire list and you're waiting for people on the internet to tell you what to do? Seriously?

Member Avatar for DavidKroukamp
0
713
Member Avatar for birdbrain44

What more are you expecting? Yes, it's a scam. No, they are not from DaniWeb. Case closed. You don't even have other threads posted here, so referencing your posting history makes little sense.

Member Avatar for birdbrain44
0
238
Member Avatar for frrf
Member Avatar for Sanna.1

Agreed. Let's keep further discussion in a single thread: [url]http://www.daniweb.com/software-development/java/threads/411255[/url] Closing this one.

Member Avatar for Ezzaral
0
125
Member Avatar for frogboy77

That is a random hijack. Report them as bad posts so they can be split to new threads (which I did on that one you linked above).

Member Avatar for diafol
1
232

The End.