2,443 Posted Topics
Re: Next Line will include the "newline" which is not parseable as a number. | |
Re: uhm, use cashDispenser instead of CashDispenser? And actually assign that variable a value, of course. | |
Re: @s.o.s You can also escape the literal `-` System.out.println("This is _ a - test?.".replaceAll("[_\\-?]", "+")); produces This is + a + test+. But, including it at the front or end looks cleaner. ;-) | |
Re: Ugh, judging by this JOptionPane stuff, I assume this is part of a GUI? In which case I HOPE that this is part of a SwingWorker, and even then the JOptionPane stuff is probably not usuable in this form, as otherwise this is running on the same thread as the … | |
Re: Google for the Eclipse m2e plugin. | |
Re: Google "Java OCR", maybe? (P.S. OCR is Optical Character Recognition) | |
Re: That is [i]not[/i] a portability issue. You do not simply grab a components graphics and paint to it, as that "painting" will be "removed" the next time the component refreshes. You need to rewrite this "PhotoPanel" class and give it a "setImage(image)" method and then, in that class, override paintComponent … | |
Re: You do realise that this thread is over a year and half old, right? | |
Re: for oracle investigate "trigger" and "sequence", for mysql invesitage "auto-increment", for other dbs something similar. | |
| |
Re: Don't ignore errors [code] catch(Exception e) { } [/code] Add a e.printStackTrace() to that catch block and check the Java Console. | |
Re: You would have to place the "mdb" on a shared drive and provide the path to that shared drive/mdb. Access is [i]not[/i] a "remote access" capable DB. It is a file-based DB. If a machine cannot directly access the mdb file, they cannot access the Acess DB, and two people … | |
Re: no, it is objQueue[0] that is null. When you initiate an Object[], each of the elements initially contain null. You still have to define the individual elements of the array. | |
Re: As I have answered elsewhere, I believe on java-forums.org, but I'm not sure anymore, and [i]stop[/i] cross-posting, use getTimestamp. | |
Re: Google (or the search engine of your choice) can. | |
Re: change from show() to setVisible(true) .... and find a better tutorial, that one's outdated. | |
Re: Read [url=http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html]this[/url] completely and thoroughly, and [i]implement[/i] its suggestions. | |
Re: Of course, the stuff with the replacement is completely unnecessary as this [code] s/^[^=]*=\(.*\)$/\1/ [/code] is the same as [code] s/^[^=]*=// [/code] And the second is probably, at least slightly, more effecient. ;-) | |
Re: Nope. The real problem is that that code needs to be inside a method. You can't simply code loops and other actions as part of the class definition, but rather as method/constructor/block definitions inside the class. | |
Re: I don't know why you're telling [i]us[/i] what [i]you[/i] need to do, but I wish you luck. | |
Re: Closing this multiply resurrected zombie now. | |
Re: Cool. What do you have so far, and what problem are you having with it. | |
Re: sendmail does to include subject. You simply need to have a "Subject: ldsfgfdg" line in the text. | |
Re: JavaScript != Java Find a JavaScript Forum | |
Re: [QUOTE=venkat arun;1245550]If not is there another way to do this?[/QUOTE] Yes, have the method return that "new" array. Java is pass-by-value and pass-by-value [i]only[/i]. If you want pass-by-reference, use another language. If you want to use Java, then you need to abide by pass-by-value. | |
Re: Java is an inanimate thing, it has no objective perspective on its future. | |
Re: It might help to show the pattern used and the text you think matched that pattern. | |
Re: Finished. What does your's look like? | |
Re: Creating a new ObjectOutputStream around an OutputStream will cause a new "header" object to be created and written to the Stream, which you do not want to do more than once (unless you are also creating a new ObjectInputStream on the other end with every "read", both of these is … | |
Re: Well, that can't be the configuration that is being used, as it is trying to use a user "javauser" not "nn". Also, if you are going to connect using "localhost" then don't forget to add a grant for "localhost" as that will not be the same as the grant for … | |
Re: Did you check that the file is actually in the created jar? | |
Re: You would have to connect to the mysql server with the root user (or some other user with full rights), then use the standard mysql command to create the db, and to grant accesses and/or create users. All of this, of course, assumes that a mysql server is installed and … | |
I am attempting to run a junit test against a JAX-WS service method using a simple client class and compiled generated sources from ws-import. When the test is run through surefire while doing either test or install I get the error java.lang.NoSuchMethodError: com.sun.xml.ws.api.model.SEIModel.getJAXBContext()Lcom/sun/xml/bind/api/JAXBRIContext; but when I inspect the xml in … | |
Re: You [i]can't[/i] have a Frame within a Frame. You can have a JInternalFrame within a JFrame, but not another JFrame. Why do want a JFrame inside of a JFrame? If it's because you want to reuse a class that currently extends JFrame, then, well, now you see one of the … | |
Re: So what do you have? According to the terms and conditions of this site (which you agreed to when you signed up here), and on general principla, we will not do your homework for you. We are more than glad to help you correct [i]your[/i] work, but [i]you[/i] do need … | |
Re: Do kindly explain exactly what you need. Junk character means nothing. | |
Re: I'm sorry, but you do realise that this thread was over two years dead, until you rejuvinated it, right? | |
Re: Install a 64 bit office or a 32 bit java. You can access (with some extra admin steps to configure the driver) a 64 bit access with the 32 bit bridge (as, as mentioned, you can, with a few steps, create access to the 64 bit driver using a 32 … | |
Re: [QUOTE=DJSAN10]And as for your exception, you need to add the jar file of your driver to the path.[/QUOTE] Nope. Or, at least, not yet. That error means that Java can not find any loaded driver that matches the provided url, not that java can not load the class, but rather, … | |
Re: Properly configure your web caontainer's configuration pool and use jndi to access it. See the JEE tutorials and/or your web container's documentation. | |
Re: Install a web container or an application server, deploy a webapp containing that jsp to that container/server, start the webapp, access the site. | |
Re: A JFrame is a top-level component. It can not be "added" to another. Use a JPanel. | |
Re: IOW "give me teh codez". No. Post your code here along with all compiler messages and/or exceptions as well as a descritpion of what it is suppossed to do and what it actually does and exactly how they differ, and we will [i]help[/i] you to correct your own code, but … | |
Re: Look at those compiler warnings. The compiler will also suggest to you an argumnet to use during compilation. Do so, and it will tell you [i]exactly[/i] what needs to be changed. | |
Re: convert them all to gif? With a jpeg image, you can play with "compression level", of course, but this also effects quality. png are not "compressed" at all (as png is gif without the compression routines). So, convert them to gif, and they will get smaller. If you say you … | |
Re: Please use code tags. Anyway, what is your question? And why a Leftist heap? Why not a Marxist heap? | |
Re: You don't close the else block of case 5. Always use braces when using if and you won't forget this sort of thing. |
The End.