5,727 Posted Topics

Member Avatar for nabil1983

Everything you need has been explained to you several times already. I don't see how regurgitating the same knowledge again will make any difference.

Member Avatar for NPH
0
102
Member Avatar for Rete

After some more study (in the wee hours of morning) I found the solution (I hope, I've not tested it). Rather than declare the argument as Integer.class define it as int.class (I know it looks strange). These are special classes used internally by the JVM to represent primitive types. They …

Member Avatar for jwenting
0
164
Member Avatar for ! !

Expect more innovative services to take over like highspeed wireless connections. Far cheaper to put up than cables underground but so far it's not been worth it because of the price protection providers had. That's what you get when the government prevents a free market economy: stunted innovation.

Member Avatar for jwenting
0
121
Member Avatar for dcc

ah, the MX1000. I have its slightly cheaper brother, the MX700. Indeed a great piece of kit.

Member Avatar for gerbil
0
492
Member Avatar for gokul

You could start with the installation guide: [url]http://docs.sun.com/app/docs/doc/817-7971?a=load[/url] and then continue with the rest of the documentation: [url]http://docs.sun.com/app/docs/coll/790.7[/url]

Member Avatar for jwenting
0
77
Member Avatar for Rete

There are wrapper classes for every primitive type. Use those instead. From the javadoc (which you DO you, do you?): [quote]"Invokes the underlying method represented by this Method object, on the specified object with the specified parameters. Individual parameters are automatically unwrapped to match primitive formal parameters, and both primitive …

Member Avatar for jwenting
0
118
Member Avatar for glamo

what's that got to do with Java? There are some programs that might help you, IF you are lucky and the data hasn't yet been permanently destroyed (a delete only removes a file information block in the index of the drive, but if the actual data has been overwritten it's …

Member Avatar for JeffHeaton
0
164
Member Avatar for Dani

I've I think 2 permanent forwarding addresses at sites I'm a paying member of. The term "I think" should tell enough, I never use either of them. Maybe the fact that I run my own mailserver has something to do with it but in my experience the only people who …

Member Avatar for mddv
0
220
Member Avatar for Rete

Reflection is your friend. But a better way by far would be to use JUnit ([url]http://www.junit.org[/url]) as a testing framework. It supports complete automation, you effectively write test scripts (as Java classes) and JUnit executes then and shows the results. You can even integrate it with Ant ([url]http://ant.apache.org[/url]) to provide …

Member Avatar for freesoft_2000
0
153
Member Avatar for stevenr

GCJ is a very poor implementation. It's platform specific (like all native compilers), extremely incomplete (effectively utterly useless), and generally a pain in the ass when trying to set up Java correctly on any machine it's installed on. executable Jars and JNLP (Java WebStart) are the way to go.

Member Avatar for freesoft_2000
0
172
Member Avatar for loser1

Crypto and chat apps have been done to death... Doesn't mean you shouldn't consider them, but you might want to think outside the box. In my experience doing something unexpected gets you browniepoints with graders.

Member Avatar for freesoft_2000
0
229
Member Avatar for freesoft_2000

Don't you think 4 months after the last reply (and 5 months after the original question) is a tad long a period for your post?

Member Avatar for winddancer
0
364
Member Avatar for server_crash

It's an AWT exception thrown by datatransfer operations if the datatype isn't supported. Things like drag and drop, clipboard operations, etc. I guess the error occurs on different vendor implementations of the JVM? Possibly on macs or unix? DataFlavors are static descriptors for data types. You get this exception if …

Member Avatar for jwenting
0
253
Member Avatar for joshSCH

Make an executable jar or a jnlp. But anyone with an installed JRE can run a Java application if they know the name of the class that contains the main method (or you provide a batchfile or other startup script for their OS). If you had tried to learn to …

Member Avatar for stevenr
0
170
Member Avatar for jwenting

yes, there's an area of Java I'm almost a complete novice in (so far, I'm going full steam ahead :cheesy: ). I've the following code to filter out non-numeric input from a JTextField (which is meant to contain a timeout interval in minutes, that's why). [code] private void dumpNonNumericInput(KeyEvent e) …

Member Avatar for server_crash
0
341
Member Avatar for server_crash

You can't. It needs to be installed there for your use by the server administrator.

Member Avatar for server_crash
0
224
Member Avatar for Rete

The DOM API is really simple. When you have an XML element you can call methods on that that will give you a list of all elements with a given name (or using other criteria) that are children of that element. There are also methods to retrieve attributes and node …

Member Avatar for jwenting
0
188
Member Avatar for Max_05

Centering the window: [code] // Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = frame.getSize(); if (frameSize.height > screenSize.height) { frameSize.height = screenSize.height; } if (frameSize.width > screenSize.width) { frameSize.width = screenSize.width; } frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); frame.setVisible(true); [/code] [code] frame.setResizable(false); [/code] turns …

Member Avatar for server_crash
0
160
Member Avatar for Max_05

The JSP will need to have access to the class of course. That means importing the package the class is in. After that you can instantiate it like everything else. BUT (and that's a very big BUT) you should really not do that. You should use a servlet for stuff …

Member Avatar for server_crash
0
138
Member Avatar for hkhan45

" dont know y its giving me this error. All the parameters r correct. Can any 1 help me. Im developing a container tracking system for a company. I have worked with Java and Oracle. This is my first time with Java and MS Access." You saved yourself 7 characters …

Member Avatar for Catweazle
0
439
Member Avatar for JeffHeaton

Interesting. And darn that I've no time to look into it (and found out about it a month after it started).

Member Avatar for server_crash
0
144
Member Avatar for dmissai

It's quite easy to build a basic webserver in Java (it's used as an example in several books about network programming in Java). The question is what do you want it to do and support?

Member Avatar for server_crash
0
114
Member Avatar for Sword

none. Linux is not suitable for desktop use unless you have a) a very serious understanding of Unix in general and Linux in particular, b) old hardware (10+ years) to make pretty sure it will all work with Linux, AND c) no requirements to run modern highend software like most …

Member Avatar for jindalarpan
0
687
Member Avatar for gokul

1) search the web. There are some tools that package a jar in an executable wrapper, but why would you want to? Far easier to use JNLP (Java Webstart). 2) Don't. Learn about classpaths instead. 3) see 2) It would be easier to just search the net for one of …

Member Avatar for jwenting
0
152
Member Avatar for gaston
Member Avatar for Dani
0
166
Member Avatar for Rete

use getDeclaredMethods() instead. The API docs would have told you as much :) (yes, I know I keep hammering away at people using them, they're that good) :mrgreen:

Member Avatar for Rete
0
152
Member Avatar for akshayabc

1) not quite. Static methods don't share any object instance. Rather they don't have access to the object instances at all. 2) [url]http://java.sun.com/docs/index.html[/url] see the coding conventions for what's the norm, and the language specs for what's required. Also check out the tutorial (it's not quite up to date but …

Member Avatar for server_crash
0
193
Member Avatar for Shulc

It's alive (even if my Delphi installation isn't at the moment, I'm too busy with other things). But Delphi isn't all that hard and there are loads of resources available, maybe people don't feel the need to ask many questions. Which could be a sign that Delphi is used mainly …

Member Avatar for jwenting
0
115
Member Avatar for zoodaddy65

NEVER eat exceptions. At the very least log the exception message, better yet is to log the entire exception stacktrace. My guess is that either your read operation fails, causing the method to abort, or the data you're reading cannot be parsed to a double (empty string maybe?). Your "while …

Member Avatar for zoodaddy65
0
300
Member Avatar for mark1048

There are in the world more people knowing C/C++ than Java, it's true. It's also true that many Java programmers also know C and/or C++ (and often several other languages as well, including Pascal, Python, Ruby, etc.), while many who mainly program C/C++ rarely know anything else. And the more …

Member Avatar for freesoft_2000
0
507
Member Avatar for server_crash

no. Applets are clientside code, the classfiles will always have to be downloaded to the client. In fact, your user won't even have to do that, he can just pull the classfile from your browsercache. You can do things to prevent the classfile from being used from any other location …

Member Avatar for server_crash
0
125
Member Avatar for jtf27

That's not Java, it's Javascript. Put it in the Javascript forum if there is one, otherwise the html forum, and format it properly so people can actually read it.

Member Avatar for server_crash
0
174
Member Avatar for gokul

Ant is a build tool, similar to what make does for C. It helps automate builds, making them far easier to perform in a way that can be easily reproduced. Little use if you have a few files, but when your project runs into the hundreds or thousands of files …

Member Avatar for freesoft_2000
0
262
Member Avatar for rjeffers

[quote] Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106) [/quote] 2 problems there. Both have been updated a lot since and are now at SP2. Then these. [quote] C:\WINDOWS\System32\ndupinwx.exe C:\WINDOWS\System32\dkfqomrq.exe C:\WINDOWS\System32\??chost.exe C:\Program Files\apsi\wtta.exe O2 - BHO: (no name) - {06CBB302-3027-2876-B64E-B7FB3EDC4AF2} - (no file) O2 - BHO: …

Member Avatar for crunchie
0
482
Member Avatar for ! !

Which goes to show that Gates is a lot more pragmatic than many people give him credit for :mrgreen: :cheesy: :lol:

Member Avatar for jwenting
0
177
Member Avatar for steelers_fan

Of all the people I've worked with over the years very few have a degree in computer sciences or related fields. Most have degrees in physics, mathematics, or chemistry. A few have more esoteric degrees like biology and business economics. The few CS grads I have encountered professionaly have often …

Member Avatar for freesoft_2000
0
227
Member Avatar for freesoft_2000

I doubt Sun will deprecate Properties. After all, PropertyResourceBundle which is one of the main concrete ResourceBundle children uses it internally :) [code] public class PropertyResourceBundle extends ResourceBundle { /** * Creates a property resource bundle. * @param stream property file to read from. */ public PropertyResourceBundle (InputStream stream) throws …

Member Avatar for jwenting
0
323
Member Avatar for rpratt

Deittel is not very good, anything from a Microsoft employee specialising on C I mistrust automatically :) The best currently on the market are: Head First Java (Sierra/Bates) and Agile Java (Langr) (which I proofread before it went into print)

Member Avatar for xerop
0
387
Member Avatar for vex

Your line 14 is illegal there, it can only exist inside a method or an (static) initialiser block.

Member Avatar for server_crash
0
190
Member Avatar for JavaFish

1) use code tags 2) follow the Sun coding standards, which you can get from Sun. Doing both will make your code a lot easier to read and debug, as it stands I'm not even going to try.

Member Avatar for JavaFish
0
350
Member Avatar for bsunkel

Windows reads the time from the system so if one is wrong so is the other.

Member Avatar for mmiikkee12
0
231
Member Avatar for jwenting

[B]Problem[/B] Due to a rather annoying and very old bug in JTable you will never get a horizontal scrollbar on a JTable even if the table is wider than the JScrollPane you placed it in. According to the bug report this is due to an error in the handling of …

Member Avatar for freesoft_2000
1
1K
Member Avatar for Amor

Don't shout. Don't claim your problem is more urgent than that of anyone else. Show some effort, don't ask us to do your work for you. And take a long hard look at the Date and Calendar classes, and DateFormat to format the output. Information you can find in the …

Member Avatar for freesoft_2000
0
172
Member Avatar for Narue

Another rather annoying issue: When you go to the tutorials section it's impossible to post. You need to first enter an existing tutorial, click on the "click here to comment" link, then click back to the beginning of the tutorials section using the link on top (which is a different …

Member Avatar for Dani
0
464
Member Avatar for freesoft_2000
Re: Uri

Take a look at URLEncoder. It will encode the URL String into a String you can pass to a URL object.

Member Avatar for jwenting
0
716
Member Avatar for rajasekhar

I think mods should have the option to move topics to a place they're more appropriate :)

Member Avatar for McReagant
0
186
Member Avatar for ripdeath987
Member Avatar for jwenting
0
97
Member Avatar for jwenting

I try to use getClass().getPackage().getName() to get the package name of an object to insert into a log message. Sometimes it works, at other times it throws a NullPointerException. Does anyone have any insight into the conditions under which getPackage() returns null ('cause that's what's happening)? The classes in question …

0
86
Member Avatar for victoryn

Don't expect people to open attachments. Rather post the relevant sections of your code and the errors you get using the code and quote tags and explain why you can't make sense of those errors (in my experience they're usually a great help to figure out what you did wrong).

Member Avatar for freesoft_2000
0
354
Member Avatar for md16185

If you think Java is complicated, try some entry level tutorials first before diving into creating multithreaded networked applications. Sun has some great tutorials, and O'Reilly has their excellent "Head First Java" book to get you up and running.

Member Avatar for freesoft_2000
0
490

The End.