3,927 Posted Topics

Member Avatar for Lil Babygirl
Member Avatar for Ezzaral
0
86
Member Avatar for KirkPatrick

Take a look at the [URL="http://java.sun.com/javase/6/docs/api/java/awt/GraphicsEnvironment.html"]GraphicsEnvironment[/URL] API. You can get the available screen devices with the following[code]GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice[] screens = ge.getScreenDevices();[/code]The [URL="http://java.sun.com/javase/6/docs/api/java/awt/GraphicsDevice.html"]GraphicsDevice[/URL] class has a multi-screen example in the class documentation.

Member Avatar for KirkPatrick
0
3K
Member Avatar for princebest

So enter the product key. If you don't have one then you have an illegal copy of Vista and you're SOL here.

Member Avatar for PatrickDickey
0
126
Member Avatar for tinamenon
Member Avatar for TheWhite
Member Avatar for newtojsp

You can't. Tomcat is a servlet engine - it has nothing to do with PHP. You'll need Apache with PHP installed. Edit: Scratch that. I spoke too soon. I guess there are ways to hook them up: [url]http://wiki.apache.org/tomcat/UsingPhp[/url]

Member Avatar for Ezzaral
0
66
Member Avatar for StephNicolaou

Have verified your query is returning results? Have you set the list model on the JList?

Member Avatar for StephNicolaou
0
126
Member Avatar for piers

Well, you can't quite work with a custom input dialog like that. There is a way to do it with an Object array for responses, but if you want radio buttons you need to create your own custom dialog. Just for the heck of it, I wrote up one way …

Member Avatar for peter_budo
0
3K
Member Avatar for plodder

You are probably creating multiple ArrayLists but without seeing the code no one could really say.

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for ziaul1234

I'm guessing your connection "con" is null. It probably failed to get the connection and you would never know it because you've discarded the exception information[code]catch(ClassNotFoundException e){} catch(SQLException e){}[/code]That's why empty catch blocks are a bad idea.

Member Avatar for javaAddict
0
3K
Member Avatar for heroes8453

You can start here: [url]http://java.sun.com/docs/books/tutorial/essential/io/index.html[/url]

Member Avatar for jwenting
0
118
Member Avatar for rsaska

Your "Step 6" will do a little more than what you noted. See if you can spot it.

Member Avatar for rsaska
0
225
Member Avatar for new_2_java

Not really sure why you are getting that behavior. Your writeToLog() code wrote a StringBuffer with newline characters in it to multiple lines just fine here in a tiny test program. Are you viewing the file with an editor that's okay with just linefeeds or does it expect carriage return …

Member Avatar for kvprajapati
0
1K
Member Avatar for gedas

I'd recommend starting with [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html"]How To Use Menus[/URL] in the Swing tutorial.

Member Avatar for Ezzaral
0
101
Member Avatar for gedas

You need to alter the Entity class to change how it renders. The ShipEntity is passing the path of the image file along to a parent constructor and I don't see any painting code in ShipEntity.

Member Avatar for gedas
0
331
Member Avatar for StephNicolaou

You didn't post the AddressComboBoxItem class, so no one can see what that does. I can tell you that the combo box is going to display whatever your item's toString() method returns, unless you have created a custom renderer for it.

Member Avatar for Ezzaral
0
92
Member Avatar for md21holla

Yeah, college can get stressful like that. If you don't keep up, you'll fail. Good luck with your program. If you have some specific questions or errors in your code, post them and perhaps someone can help. No one is going to write the program for you though.

Member Avatar for tux4life
-1
905
Member Avatar for jismtu
Member Avatar for Ezzaral
0
33
Member Avatar for ankara84
Member Avatar for Nick Evan
0
2K
Member Avatar for Tara_

[QUOTE=Rahulkumarr;1128035]i m doing project in controlling pc via mobile .so pls tell some ideas & give documents to my id ImSoLazy @ gmail.com pls..........[/QUOTE] Why? It's your project. You're supposed to be learning something and showing some initiative with it - not hijacking someone else's thread to ask others to …

Member Avatar for mackone
0
122
Member Avatar for NinjaLink

The code above will still not print the actual original list if it contains 10s because you are never adding the 10s to the array at all. You need to add every number to the array. Then loop and print it. Then count your 10s and print the count. Then …

Member Avatar for NinjaLink
0
102
Member Avatar for tjsail

There isn't a mechanism to do that easily, but you really shouldn't have any need to. Just set a "name" property on the Player object. A [URL="http://java.sun.com/javase/6/docs/api/java/util/HashMap.html"]HashMap[/URL] can provide easy indexing of them if you need it for look up purposes.

Member Avatar for JamesCherrill
0
5K
Member Avatar for iamsmooth

Keep a reference to the original PrintStream before you reassign it. Then you can just swap it back[code]PrintStream defaultOutstream = System.out; System.setOut(myPrintStream); System.out.println("hello world"); // doesn't print to screen cuz it's sent to printstream System.setOut(defaultOutstream); [/code]

Member Avatar for jwenting
0
1K
Member Avatar for rishi1382

This is a design discussion forum - not Code On Request. Perhaps you can search Google for some software you can buy for your needs.

Member Avatar for Ezzaral
0
54
Member Avatar for ceyesuma

You need to keep the reference 'g' at class level or pass it to methods that need to act on it.

Member Avatar for ceyesuma
0
95
Member Avatar for jorgelex008

Well, your second JFrame probably has a call to [iCODE]setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE)[/iCODE] somewhere in its setup code. You need to change that to use [iCODE]DISPOSE_ON_CLOSE[/iCODE] or something else. Those are not commands. They are constants you use to specify the parameter value.

Member Avatar for jorgelex008
0
171
Member Avatar for FotG2

I'm sure the stack trace says more than "something about an unknown source". It contains the exact error, the method that generated it, and the line number. It would help if you posted that here as well - at least the first couple of lines.

Member Avatar for Ezzaral
0
116
Member Avatar for selenask

Just trace through and figure out how str.substring(index2,index2+length2) would end up with a position beyond the length of 'str'.

Member Avatar for Ezzaral
0
70
Member Avatar for KirkPatrick

What issues did you encounter? Yes, they are just ints and you should be able to pass them just like you have in the method signature you posted.

Member Avatar for KirkPatrick
0
106
Member Avatar for baloonie
Member Avatar for Ezzaral
0
111
Member Avatar for vivek4020
Member Avatar for vivek4020
0
150
Member Avatar for Sarada Adiraju

Check all of your braces. You are missing one (or more). edit: hehe, cross-post. What he said ^^

Member Avatar for musthafa.aj
0
55
Member Avatar for sujithy15

And some additional reading: [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies#faq_keep_it_clean[/url]

Member Avatar for musthafa.aj
0
92
Member Avatar for FallenPaladin

Why do you need to write tests that don't adhere to the access scope of the inner class? If it's not a static inner class, you should have an instance of the enclosing class to work from. If that's not the case, then perhaps your inner class should actually be …

Member Avatar for FallenPaladin
0
97
Member Avatar for brianlevine
Member Avatar for Ezzaral
0
140
Member Avatar for endsamsara

I agree with jwenting that a map is great for this. He already gave precise instructions on how to process the list. The rest is simply a matter of looking at the Map api for the details on the required methods. The actual code to do it is only a …

Member Avatar for Ezzaral
0
279
Member Avatar for HollyHall

Please note this forum is to discuss existing scripts. If you are seeking someone to do custom work for you, that belongs over in the Business Exchange looking to hire section.

Member Avatar for Ezzaral
0
89
Member Avatar for nil_gh_80

Well, I suppose you would get it like any other job - searching job listings and perhaps posting your resume in appropriate places (which would not be here by the way).

Member Avatar for Ezzaral
0
182
Member Avatar for Salem

"That's amazing. I've got the same combination on my luggage!" - President Skroob

Member Avatar for PedroStephano
0
707
Member Avatar for PhiberOptik

You can call [iCODE]setOpaque(false)[/iCODE] on the brick panel if you'd like it to be transparent.

Member Avatar for PhiberOptik
0
84
Member Avatar for aryanmughal
Member Avatar for drewpark88

Ok, since there are obviously other threads already posted for this, this one doesn't really need to go any further.

Member Avatar for Ezzaral
0
89
Member Avatar for renyges

Perhaps you should read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies#faq_keep_it_clean"]the forum rules[/URL]: [QUOTE]We strive to be a community geared towards the professional. We strongly encourage all posts to be in full-sentence English. Please do not use "leet" speak or "chatroom" speak.[/QUOTE]

Member Avatar for darcee
-2
149
Member Avatar for campkev

I really doubt they are going to post the source code for a problem that was posted [U]almost four years ago[/U].

Member Avatar for Ezzaral
0
212
Member Avatar for zteam777

It's always important to read announcements: [url]http://www.daniweb.com/forums/announcement6-20.html[/url]

Member Avatar for random1970
-2
91
Member Avatar for Midnite002
Member Avatar for Stefano Mtangoo
0
321
Member Avatar for ricss_madara

With a text editor, of course. Why don't you write a bit of pseudocode that outlines the general process the program must follow to complete the needed steps and post it here if you need some help with portions of it?

Member Avatar for jwenting
0
113
Member Avatar for benregn

[QUOTE=benregn;1063715]This doesn't work, the method isn't called. Any help or pointers are welcome![/QUOTE] What makes you think the method isn't being called? I would guess that it takes about 7 seconds for that whole method to finish - and it only updates the display after it's done. If my guess …

Member Avatar for verruckt24
0
105
Member Avatar for Midnite002

You have already been warned previously about starting additional threads for the same question. Just because you do not like the nature of the replies you have gotten does not mean this warrants a new thread. Closed.

Member Avatar for Ezzaral
0
585
Member Avatar for vaultdweller123

Yes. It's completely true. Run outside and panic. Also cancel your xmas plans.

Member Avatar for ankush.mukherje
0
158

The End.