3,927 Posted Topics

Member Avatar for dholt

HTML is a subcategory under Web Design, for future reference in finding it :) Moving this there.

Member Avatar for dholt
0
402
Member Avatar for loozax
Member Avatar for nishant52

[URL="http://java.sun.com/javase/6/docs/api/java/sql/Connection.html#setAutoCommit(boolean)"]Connection.setAutoCommit(boolean)[/URL]

Member Avatar for nishant52
0
408
Member Avatar for jackiesampieri
Member Avatar for The Dude
-3
74
Member Avatar for the_prox

Your clock viewer component currently has no size because it's an empty container and you have used the default flow layout. It's drawing on the panel, you just can't see it because it has no dimensions. Here's an alternate layout and setup for that panel that does show the clock.[code=java] …

Member Avatar for VernonDozier
1
176
Member Avatar for ragnarok511

You need to initialize the array before you can use it.[code]books = new Book[MAX_BOOKS];[/code]where MAX_BOOKS would be whatever initial size you wanted to make the array.

Member Avatar for ragnarok511
0
365
Member Avatar for joshSCH

[quote]work under conditions where neither they nor their employers will be paying taxes for them[/quote] Actually, many of them do have taxes withheld because they work in places that are required to remit those taxes from payrolls. Some examples are kitchen staff, cleaning staff, groundkeepers, etc. The employers must have …

Member Avatar for GrimJack
1
1K
Member Avatar for red_evolve

Well, you could develop an artificial intelligence program that suggests final year projects for students. We get posts like this all the time and our little environment would certainly benefit from your system :P

Member Avatar for Nick Evan
0
967
Member Avatar for PhiberOptik

[QUOTE=PhiberOptik;897122]I am curious if anyone here is a java developer and actually makes good money at it?[/QUOTE]Yes and yes. [QUOTE=PhiberOptik;897122]Basically I would like to know what kind of stuff you do, where you work from, office, home, etc. [/QUOTE]I work in a small office with three other developers on an …

Member Avatar for BestJewSinceJC
0
144
Member Avatar for xgmx

I was the kid in the "Honors" classes (somewhat like AP) that hung out with the smokers and stoners, wore heavy metal concert t-shirts, and drove the '72 Chevelle with glass packs. Edit: ^^ All my friends were jephthah :P

Member Avatar for s_sridhar
-1
418
Member Avatar for ndeniche

[quote=Nichito;410808]which one would you choose?[/quote] Someone who gives pause to the question deserves to live with the "crap and idiotness" (sic)

Member Avatar for ditz
0
1K
Member Avatar for javaAddict

[QUOTE=javaAddict;893105]By the way, I just noticed that the person who send me that PM has the flag "Banned" under his name.[/QUOTE]That means the issue has been addressed :)

Member Avatar for The Dude
0
240
Member Avatar for AhmedHussain

There are plenty of resources listed in the "Starting Java" sticky thread at the top of the Java forum. Start with that.

Member Avatar for shadwickman
0
179
Member Avatar for zachman1094
Member Avatar for peter_budo
Member Avatar for peter_budo
0
155
Member Avatar for joshmo

I would second JamesCherill's suggestion of subdividing the pixel array into a smaller number of regions, perhaps 10x10, with each region assigned the average of those pixels. Then subtract the two arrays and compare the result against some tolerance threshold value to determine if they are "the same enough" for …

Member Avatar for Ezzaral
0
232
Member Avatar for topito2

Ask the author or find a page that includes a download link for the source.

Member Avatar for fredofrey
0
197
Member Avatar for Lotus_2011
Member Avatar for Lotus_2011
0
140
Member Avatar for jephthah

>Let me bring my face close that i may inhale the toner fumes of your papery printed essence. I think perhaps you have had enough of the toner fumes.

Member Avatar for scru
1
177
Member Avatar for xpartmgr

I fail to see why you would need both a PartID and a PartNumberID. Is it at all feasible that two parts would share the same part number? I would ask the same of DescriptionID. Why not just a Description field on the Parts table? Unless two completely identical parts …

Member Avatar for Ezzaral
0
111
Member Avatar for jamojo

Perhaps this will help: [URL="http://www.exampledepot.com/egs/javax.net.ssl/Client.html?l=rel"]Creating an SSL Client Socket[/URL]

Member Avatar for jamojo
0
115
Member Avatar for acplayer

Can you move the conditional portion into "C" and just leave the call as "ob.myMethod()"? You can't expect to upcast a "B" object to a "C". If you can't let the conditional be handled polymorphically, you'll have to add an "instanceof" test prior to the upcast and method invocation.

Member Avatar for JamesCherrill
0
77
Member Avatar for Web_Sailor

No, your class def only states that it implements MouseMotionListener. It also needs to implement MouseListener as adatapost says and it needs to register itself with addMouseListener(). edit: You'll need to add mouseClicked(), mouseEntered(), and mouseExited() methods as well to fulfill the implementation.

Member Avatar for Web_Sailor
0
166
Member Avatar for KirkPatrick

Did you add that refreshListener to something? Just glancing at it, what you wrote looks as though it should work fine (except for the syntax error "counteLimitr"), though it won't stop at zero.

Member Avatar for KirkPatrick
0
118
Member Avatar for SnagglezMaw

You would probably need to reset() the stream to get that to work. After it's read all the way through the file, [icode]seLine=seReader.readLine()[/icode] is going to remain null - it's done reading. Unless your files are so large as to cause memory problems, you'd get a lot better performance reading …

Member Avatar for Ezzaral
0
113
Member Avatar for SKANK!!!!!

You can use as many ANDs and ORs as you like, with as many parenthesis as you like to create as many logical sub-groupings as you like:[code]a AND b AND (c OR (d AND e) OR (f AND g)) ... [/code]but be aware that at some point you cross a …

Member Avatar for SKANK!!!!!
0
137
Member Avatar for 3xxx

That was the thread he originally post this in. I can't really figure what the heck he is asking either, but he mentioned MS SQL so I dropped it in here.

Member Avatar for Ezzaral
0
89
Member Avatar for SnagglezMaw
Member Avatar for mintsmike

That's what LayoutManagers are for: [url]http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html[/url]

Member Avatar for mintsmike
0
318
Member Avatar for Arctic wolf

For a quick all-in-one installation, I'd recommend [URL="http://www.wampserver.com/en/"]WampServer[/URL] or [URL="http://www.apachefriends.org/en/xampp.html"]XAMPP[/URL].

Member Avatar for Arctic wolf
0
144
Member Avatar for titosd

I guess that would really depend on how you read and then wrote that date, wouldn't it?

Member Avatar for masijade
0
99
Member Avatar for jimb90
Member Avatar for Tulsa
0
316
Member Avatar for coolbuddy059
Member Avatar for Ezzaral
0
293
Member Avatar for MasterGoGo

... so, the game is to guess what error you got? My guess is "NoSuchElementException". If my guess wins, try [code=java]int count = 0; while (myScanner.hasNextLine()) { strLine = myScanner.nextLine(); count++; if (count % 2 == 1) { System.out.println(strLine); } } [/code]

Member Avatar for Ezzaral
0
110
Member Avatar for conan19870619

[URL="http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html"]How to write a KeyListener[/URL]

Member Avatar for Ezzaral
0
59
Member Avatar for mastr924
Member Avatar for jjohnson33

Please do not drag up and hijack old threads for related questions. Post a new thread and use code tags around any code to preserve formatting.

Member Avatar for umay
0
419
Member Avatar for Olsi009

JPanel does not have an addActionListener() method. Perhaps you should use JButtons or use a MouseListener for your panel instead of ActionListener.

Member Avatar for Ezzaral
0
237
Member Avatar for mastr924

[code=java]void actionPerformed(ActionEvent e) { JButton pressedButton = (JButton)e.getSource(); int xPos = pressedButton.getX(); ... }[/code]

Member Avatar for Ezzaral
0
93
Member Avatar for _Rosie_
Member Avatar for kingarthur

No, a statement is a single SQL statement. You can batch them into transactions and commit them as a unit if you wish, but each statement still needs to be executed individually. You could write a stored procedure and call it with a CallableStatement if you wanted to go that …

Member Avatar for kingarthur
0
136
Member Avatar for Web_Sailor

MouseOverExample is just the top level frame class and has nothing at all to do with the Glyphs. It's just a window for the PaintPanel. There is no need for the constructor you're created for it and no need to create additional instances of it in your code. As far …

Member Avatar for Web_Sailor
0
290
Member Avatar for localp

Well, the first hint would be the exception itself, which you did not specify here. I would recommend using executeUpdate() which returns the number of rows affected instead of executeQuery(), which return a result set.

Member Avatar for ~s.o.s~
0
260
Member Avatar for vandenzergen

I'm just trying to figure out if Flyin Dagger is having a conversation with himself or if some posts were deleted ;)

Member Avatar for Salem
0
1K
Member Avatar for aru211285

Use[code]Pattern.compile("(\\d{7,8}).txt");[/code]and retrieve it with group(1).

Member Avatar for Ezzaral
0
113
Member Avatar for daniel_ahuk

[url]http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/imageio_guideTOC.fm.html[/url] ("plss" and "thx" are not words. If you're too lazy to communicate properly, don't expect too much help.)

Member Avatar for BinodSuman
0
201
Member Avatar for scru

[URL="http://www.fastgraph.com/makegames/3drotation/"]The Mathematics of the 3D Rotation Matrix[/URL] might be worth a read for you. If it's too deep at the moment, perhaps it will be helpful as you get in further. Gamedev has many articles on matrices as well if you want to peruse them: [url]http://www.gamedev.net/reference/list.asp?categoryid=28#259[/url]

Member Avatar for certifmix123
0
257
Member Avatar for Web_Sailor

Post your initial code that is drawing the rectangles. As a general suggestion, keep a List containing [URL="http://java.sun.com/javase/6/docs/api/java/awt/Rectangle.html"]java.awt.Rectangle[/URL] objects for each entry you have to draw. Your mouseMoved and mouseClicked method implementations can easily test against those Rectangle objects by their contains() methods. Alternately you could use a null layout …

Member Avatar for Web_Sailor
0
167
Member Avatar for Rs trainer
Member Avatar for JohnPhilipps

You may want to look into [URL="http://java.sun.com/docs/books/tutorial/essential/regex/"]Regular Expressions[/URL] as well.

Member Avatar for JohnPhilipps
1
255

The End.