3,927 Posted Topics
Re: HTML is a subcategory under Web Design, for future reference in finding it :) Moving this there. | |
Re: [URL="http://java.sun.com/javase/6/docs/api/java/sql/Connection.html#setAutoCommit(boolean)"]Connection.setAutoCommit(boolean)[/URL] | |
Re: 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] … | |
![]() | Re: 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. ![]() |
Re: [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 … | |
Re: 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 | |
Re: [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 … | |
Re: 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 | |
Re: [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) | |
Re: [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 :) | |
Re: There are plenty of resources listed in the "Starting Java" sticky thread at the top of the Java forum. Start with that. | |
Re: I don't. I haven't really seen any compelling reason to. | |
Re: So post back your thoughts on them for us when you're finished :) | |
Re: 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 … | |
Re: Ask the author or find a page that includes a download link for the source. | |
Re: And also the value that you are outputting may not be the one you want. | |
Re: >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. | |
Re: 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 … | |
Re: Perhaps this will help: [URL="http://www.exampledepot.com/egs/javax.net.ssl/Client.html?l=rel"]Creating an SSL Client Socket[/URL] | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: That's what LayoutManagers are for: [url]http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html[/url] | |
Re: 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]. | |
Re: I guess that would really depend on how you read and then wrote that date, wouldn't it? | |
Re: Looks absolutely useless - except to spam ad links along the edges. | |
Re: You can't write methods in the middle of other methods. | |
Re: ... 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] | |
Re: [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html"]How to write a KeyListener[/URL] | |
Re: That depends entirely on what you have rendered it on. | |
Re: 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. | |
Re: JPanel does not have an addActionListener() method. Perhaps you should use JButtons or use a MouseListener for your panel instead of ActionListener. | |
Re: [code=java]void actionPerformed(ActionEvent e) { JButton pressedButton = (JButton)e.getSource(); int xPos = pressedButton.getX(); ... }[/code] | |
Re: And hopefully learn valuable lessons from that failure. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: I'm just trying to figure out if Flyin Dagger is having a conversation with himself or if some posts were deleted ;) | |
Re: Use[code]Pattern.compile("(\\d{7,8}).txt");[/code]and retrieve it with group(1). | |
Re: [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.) | |
Re: [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] | |
Re: 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 … | |
Re: You may want to look into [URL="http://java.sun.com/docs/books/tutorial/essential/regex/"]Regular Expressions[/URL] as well. |
The End.