2,443 Posted Topics

Member Avatar for mrosario
Member Avatar for mrosario
0
2K
Member Avatar for Mr.M

uhm, use cashDispenser instead of CashDispenser? And actually assign that variable a value, of course.

Member Avatar for Mr.M
0
600
Member Avatar for JamesCherrill

@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. ;-)

Member Avatar for masijade
1
237
Member Avatar for RazaAjmi

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 …

Member Avatar for stultuske
0
153
Member Avatar for emanhossnycs
Member Avatar for Translucentbill
Member Avatar for abhi_marichi
Member Avatar for stultuske
0
230
Member Avatar for initialise

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 …

Member Avatar for adisri
0
448
Member Avatar for DyCE
Member Avatar for stultuske
0
454
Member Avatar for poojavb

for oracle investigate "trigger" and "sequence", for mysql invesitage "auto-increment", for other dbs something similar.

Member Avatar for mrsathishkumar
0
720
Member Avatar for anki7
Member Avatar for funtoosh

Don't ignore errors [code] catch(Exception e) { } [/code] Add a e.printStackTrace() to that catch block and check the Java Console.

Member Avatar for shanker31
0
1K
Member Avatar for abhishek20

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 …

Member Avatar for Pradeeps206
0
344
Member Avatar for losh177

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.

Member Avatar for dimasalang
0
311
Member Avatar for adarshcu

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.

Member Avatar for rahul.pedduri
0
2K
Member Avatar for balagangadharm
Member Avatar for Aia

change from show() to setVisible(true) .... and find a better tutorial, that one's outdated.

Member Avatar for flash901
0
937
Member Avatar for sonu611

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.

Member Avatar for shahbaz07dbit
1
1K
Member Avatar for lehe

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. ;-)

Member Avatar for Pooja#
0
166
Member Avatar for silverkid

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.

Member Avatar for LaughingOtter
0
22K
Member Avatar for thijo

I don't know why you're telling [i]us[/i] what [i]you[/i] need to do, but I wish you luck.

Member Avatar for philfv
0
5K
Member Avatar for rajesh_tawari
Member Avatar for dave_nithis
Member Avatar for laksh.ss
1
115
Member Avatar for Mayank Mathur

sendmail does to include subject. You simply need to have a "Subject: ldsfgfdg" line in the text.

Member Avatar for sftranna
0
625
Member Avatar for chakrapani
Member Avatar for venkat arun

[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.

Member Avatar for sbp94
0
164
Member Avatar for peter_budo
Member Avatar for lokis
Member Avatar for chawda123
-3
223
Member Avatar for k2k
Member Avatar for shivemg
0
145
Member Avatar for learning.java
Member Avatar for Buffalo101

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 …

Member Avatar for java_sabin
0
552
Member Avatar for bhallarahul

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 …

Member Avatar for bhallarahul
0
1K
Member Avatar for end3r
Member Avatar for end3r
0
312
Member Avatar for sirlink99

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 …

Member Avatar for masijade
0
123
Member Avatar for masijade

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 …

0
84
Member Avatar for sincerelibran

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 …

Member Avatar for jouj
-1
745
Member Avatar for mj_sexy14344

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 …

Member Avatar for stultuske
-2
348
Member Avatar for whizkidash
Member Avatar for saumitra11
0
263
Member Avatar for gzero14

I'm sorry, but you do realise that this thread was over two years dead, until you rejuvinated it, right?

Member Avatar for zeroliken
0
650
Member Avatar for Rowdy Busch

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 …

Member Avatar for Rowdy Busch
0
436
Member Avatar for alafift

[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, …

Member Avatar for masijade
0
144
Member Avatar for cvanithakpm

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.

Member Avatar for cvanithakpm
0
133
Member Avatar for cvanithakpm
Re: jsp

Install a web container or an application server, deploy a webapp containing that jsp to that container/server, start the webapp, access the site.

Member Avatar for masijade
0
82
Member Avatar for new_2_java
Member Avatar for test.tracker
0
852
Member Avatar for madhub2v

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 …

Member Avatar for Ezzaral
0
2K
Member Avatar for dayau89
Member Avatar for hannah shrn j

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.

Member Avatar for JamesCherrill
0
272
Member Avatar for nikk

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 …

Member Avatar for vkijust4u
0
321
Member Avatar for cutedollpisces
Member Avatar for masijade
0
287
Member Avatar for chriswinter

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.

Member Avatar for chriswinter
0
196

The End.