3,927 Posted Topics

Member Avatar for husein

[QUOTE=mugdha_2005;779635]hey can u send me the soft copy of the seminar on teleimmersion??[/QUOTE] Because you are genuinely interested in his views on the subject or because you are such a pathetic student that you cannot complete your own assignments? Just curious. Hopefully it's the former. If it's the latter, please …

Member Avatar for ahihihi...
0
320
Member Avatar for ChaosTheory

You didn't post any code, so I can't speak directly to your current structure, but you should be able to do all that in your current animation loop. If your paint method were to operate on a List of car objects, your animation loop can simply update/create/remove car objects in …

Member Avatar for quuba
0
132
Member Avatar for PhiberOptik

Java WebStart might be an option for you: [url]http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/faq.html[/url] [url]http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/contents.html[/url]

Member Avatar for PhiberOptik
0
91
Member Avatar for DomoCobra

Well, those look like XML tags, so an XML parser is one possibility. The regex package is another. [url]http://java.sun.com/docs/books/tutorial/essential/regex/index.html[/url] If the text is simple enough, the methods on the [URL="http://java.sun.com/javase/6/docs/api/java/lang/String.html"]String[/URL] class itself, such as indexOf(), will probably suffice.

Member Avatar for DomoCobra
0
131
Member Avatar for VernonDozier

Just to provide a little more explanation why that works and why you had the previous difficulties, you were executing your animation loop code that slept and called repaint() on the event dispatch thread - which is the same thread that is responsible for processing those repaint() calls you were …

Member Avatar for VernonDozier
0
547
Member Avatar for sane83

And did your friend also let you know that help is only offered to those who demonstrate some effort, as stated in the community rules and many announcement threads scattered throughout the forums? Post what you have so far or at least some specific questions related to the areas that …

Member Avatar for BestJewSinceJC
0
98
Member Avatar for bushman_222

Try these: [url]http://java.sun.com/developer/onlineTraining/JavaIntro/exercises.html[/url] (which was the fourth result of a Google search on "simple java exercises" - think about that)

Member Avatar for verruckt24
0
166
Member Avatar for jhonny_86

Those are things determined by the OS. Windows display the icon of the file type association. Altering any of those would require Windows-specific code to alter the registry for that association. Java itself does not get involved with those things.

Member Avatar for JamesCherrill
0
566
Member Avatar for theod1987

Drop the [] from "A[]" in this portion [icode]array_sum(A[],first,last-1)[/icode], you only need those in the declaration, not when using the variable. The array itself is merely "A".

Member Avatar for theod1987
0
5K
Member Avatar for onyxmethod123

Ok, some hints. 1) In your constructor, don't re-declare "storage", just initialize it. You have already declared it at the class level. 2) In your addCircle method, you want to add that new Circle object to your storage list, so look at the methods on ArrayList for adding things. 3) …

Member Avatar for stultuske
0
66
Member Avatar for goyofoyo

Which do you think you should choose? Why do you think so? Have you been paying attention in class at all? If so, you should be able to formulate some more specific questions to ask here.

Member Avatar for Ezzaral
0
69
Member Avatar for VinceAshbySmith

Here is the main problem[code]public void dieTest(){[/code]Constructors don't specify a return type. What you wrote there is a method, not a constructor. Drop the "void" and you're good to go.

Member Avatar for VinceAshbySmith
0
141
Member Avatar for k2k

masijade means that the TextField variables themselves might be null, as in you have not initialized them with "new TextField()". He wasn't referring to them being empty. The code you posted above doesn't really answer that question, because you didn't post the addField() method code.

Member Avatar for masijade
0
340
Member Avatar for devonte15

Maybe his professor will give you credit for it. devonte15, what is the professor's email address, so Vernon can turn in the assignment?

Member Avatar for VernonDozier
0
1K
Member Avatar for olgratefuldead

You only need to return a single value from that method: the value the user selected from the menu.

Member Avatar for olgratefuldead
0
218
Member Avatar for sciwizeh

Ok, two things: 1) Load the Image through an ImageIcon[code=java]img = new ImageIcon("gifTest2.gif").getImage() ;[/code]ImageIO.read() returns a BufferedImage, which doesn't update the ImageObserver. I couldn't tell you the exact reason why because I don't really mess with images much, but perhaps an animated gif needs a VolatileImage instead of the BufferedImage …

Member Avatar for sciwizeh
0
689
Member Avatar for PhiberOptik

[icode]System.getProperty("user.home")[/icode]will give you the users home directory.

Member Avatar for PhiberOptik
0
126
Member Avatar for NickMalone85

You don't need JUnit at this point, you just need to place some debugging println statements throughout your methods so you can see what is going on inside them (if you don't have or know how to use an IDE debugger). Trying to learn how to use JUnit is not …

Member Avatar for Ezzaral
0
88
Member Avatar for notuserfriendly
Member Avatar for Narayan15

You need to add the scroll pane to your container instead of the text area. Change this[code]container.add(textArea);[/code]to this[code]container.add(sp);[/code]

Member Avatar for Ezzaral
0
487
Member Avatar for petike

It really just depends on where and how that class is used. For a tiny private data struct? I'd leave em public. For something that will be used by others, probably best to add accessors. You can read Josh Bloch's thoughts on the matter here if you're inclined: [url]http://books.google.com/books?id=ka2VUBqHiWkC&pg=PA71&lpg=PA71&dq=java+public+fields+on+small+data+classes+bloch&source=bl&ots=yXFkJkt1OX&sig=PzH5Fo9XfOcs4P2AZScOHjji-bw[/url]

Member Avatar for Rashakil Fol
0
100
Member Avatar for crowleykg

Take a look at the [URL="http://java.sun.com/products/java-media/jmf/"]Java Media Framework[/URL]. Some of the demo solutions here [url]http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html[/url] may be useful.

Member Avatar for peter_budo
0
846
Member Avatar for ghostworkers
Member Avatar for vegaseat

Yeah, I always thought that Tom Hanks guy was kind of shifty...

Member Avatar for sneekula
0
148
Member Avatar for Lamar Cole

[QUOTE=Lamar Cole;803436]Just as a stapler will bind paper, love will bind people.[/QUOTE] A stapler will bind people too, if it's big enough.

Member Avatar for sneekula
0
171
Member Avatar for Superstar288

A more generalized Theater class design would have either a single collection of seats with the section, price, etc being properties of the seats, or another intermediate collection class to represent seating sections that contained their own collections of seats. Theaters do not all share common layouts or number of …

Member Avatar for Ezzaral
0
148
Member Avatar for jbennet

This would do it[code]int total = 399; System.out.printf("\u00a3%1$d.%2$dp%n", total/100, total%100);[/code]

Member Avatar for BestJewSinceJC
0
99
Member Avatar for mashimaro

Which was most likely found with a simple Google search: [url]http://www.google.com/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=java+ldap[/url] Please take some initiative to search a little on your own before posting questions of this nature.

Member Avatar for mashimaro
0
138
Member Avatar for dbwalters

"Global" is not the same as instance level scoping. Careful about using those terms interchangeably. Scoping issue aside, I have to wonder why you nine different unrelated arrays to hold the properties of what should probably be a one dimensional array of objects that contain that data?

Member Avatar for hrdzdier
0
828
Member Avatar for britto

Have you designed classes to represent those Swing controls? Have you read the Sun tutorial on drag and drop yet?

Member Avatar for Ezzaral
0
61
Member Avatar for curtissumpter

You may want to read through this section of the Sun tutorials: [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html#getresource"]Loading Images Using getResource[/URL].

Member Avatar for danielernesto
0
885
Member Avatar for Comatose

[QUOTE=MidiMagic;806329]I'm sick of these rules blah blah... Another problem is that different BBSs have different sets of rules blah blah[/QUOTE] Well, yes, distinct cultures have their own varying ideas on what is and is not acceptable interaction. Not really a new thing - ask any sociologist. Get over it or …

Member Avatar for Ezzaral
0
446
Member Avatar for milgo

@notuserfriendly: What you posted really has nothing to do with OOP. And the purpose of OOP is to manage organizational and behavioral complexity in code design - not "learning easier". You may want to do a bit more reading on the subject: [url]http://en.wikipedia.org/wiki/Object-oriented_programming[/url]

Member Avatar for Ezzaral
-1
123
Member Avatar for BrianK123

You've probably missed a type designation on a variable or parameter somewhere above that code then, because there is nothing wrong with those two lines. Which line specifically is indicated as the cause?

Member Avatar for BrianK123
0
1K
Member Avatar for viber101

You would want the line numbers to be a separate component along the side of the page, not part of the text in your JTextArea.

Member Avatar for Ezzaral
0
64
Member Avatar for BrianK123
Member Avatar for BrianK123
0
193
Member Avatar for Andrewsc1

You should probably explain what it is doing wrong, what you expect it to do, and any errors you receive, rather than expecting people here to pick through it and play "find the problem with this".

Member Avatar for Andrewsc1
0
143
Member Avatar for youngstorm

I'm going to chime in and agree with the -1 return. I had assumed you were already doing what s.o.s. mentions above about returning the index of the element. That is the way many such methods operate in the standard JDK classes. Sticking to the common idioms for things like …

Member Avatar for youngstorm
0
126
Member Avatar for scott_rider

[ICODE]table[tr/td/b/font='Nohup Files'][/ICODE] seems to work for getting the table element, if that's what you are wanting. I tried it out with the following structure[code]<root> <table> <tr><td><b><font>Not this one</font></b></td></tr> </table> <table> <tr><td><b><font>Nohup Files</font></b></td></tr> </table> <table> <tr><td><b><font>Other</font></b></td></tr> </table> </root>[/code]

Member Avatar for Ezzaral
0
103
Member Avatar for jpp10
Member Avatar for jpp10
0
182
Member Avatar for BrianK123

>Also, does anyone know how to add to an existing file, not just write over it? There is another [URL="http://java.sun.com/javase/6/docs/api/java/io/FileOutputStream.html#FileOutputStream(java.io.File,%20boolean)"]constructor for FileOutputStream that allows you to specify append[/URL].

Member Avatar for sillyboy
0
112
Member Avatar for trelek2
Member Avatar for chirayu

Maybe some of the code samples here will help: [url]http://www.java2s.com/Tutorial/VB/0300__2D-Graphics/Catalog0300__2D-Graphics.htm[/url]

Member Avatar for Ezzaral
0
98
Member Avatar for oldSoftDev

Well, you commented out the line that would have read the name data, so you're going to need to put that back in or skip ahead in your input stream somehow. Since you're using some third-party TextReader class, we can't really offer much advice on using that specifically. Edit: I …

Member Avatar for Ezzaral
0
98
Member Avatar for mic2x_caspe

This should get you started: [URL="http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html"]How to Use Actions[/URL]

Member Avatar for verruckt24
0
153
Member Avatar for localp

After 61 posts here, you should be well aware that "chat-speak" or "IM-speak" is discouraged in the forum rules. Are you really too lazy to type out all of the letters and use punctuation where appropriate? Should anyone else spend their time to help someone who doesn't care enough to …

Member Avatar for localp
0
181
Member Avatar for zangster421k

Any code posted should be placed between [noparse][code] [/code][/noparse] tags so that formatting and indentation is preserved. Please ask specific questions. "Can someone help me finish writing the code so that this program will work?" is not a specific question. No one wants to complete your homework just for the …

Member Avatar for javaAddict
0
189
Member Avatar for dmoliver

You can use the [URL="http://java.sun.com/javase/6/docs/api/java/util/Scanner.html"]Scanner[/URL] to read from files as well. Take a look at the documention.

Member Avatar for BestJewSinceJC
0
158
Member Avatar for srs_grp

Sounds like a problem with the database itself or the JDBC driver implementation.

Member Avatar for Ezzaral
0
178
Member Avatar for k2k

This is elementary language syntax that you could easily search out yourself. [url]http://letmegooglethatforyou.com/?q=java+final+static[/url]

Member Avatar for ~s.o.s~
0
87

The End.