5,727 Posted Topics

Member Avatar for chound

that all depends on the environment you're working in... In javamail you could do something like message.setContent(content, "text/html");

Member Avatar for kc0arf
0
62
Member Avatar for eastgate

all compilers should recognise a core set of operations. If you're using a very old compiler you're in trouble as those preceed that standard and won't implement it. If you elect to use custom libraries for a specific compiler you deliberately abandon compatibility. You're doing both. - Learn STANDARD C++, …

Member Avatar for eastgate
0
621
Member Avatar for jwenting

This also posted in the spyware forum but as there's people not going there and this is serious enough to take notice: A serious security leak has been discovered in various version of Norton Antivirus. [url]http://xforce.iss.net/xforce/alerts/id/187[/url] This allows anyone with the right skills to take total control over your computer. …

Member Avatar for Catweazle
0
112
Member Avatar for mastap
Member Avatar for server_crash

Unless myMethod() is static it can only be called on an instance of the class it is defined in.

Member Avatar for server_crash
0
96
Member Avatar for George2

yes you do. Your lock doesn't get released until after you leave the synchronised code (and sometimes not even then, but those are abnormal situations). As you are calling your method from within synchronised code your lock gets retained.

Member Avatar for George2
0
170
Member Avatar for freesoft_2000

KEY_LOCATION_LEFT (and RIGHT) are only applicable if there's more than one key for the normal key event (VK_ ). For example the Ctrl keys. If you press the left Ctrl key, you will get VK_CONTROL and KEY_LOCATION_LEFT both to indicate you pressed the left Ctrl key. If you press the …

Member Avatar for jwenting
0
70
Member Avatar for dvr

Win2K does not itself support CD burning as does XP. You need to install the CD burning software that came with your drive (or purchase another package elsewhere).

Member Avatar for dvr
0
73
Member Avatar for Gink

no, applets aren't normally allowed to access anything on the client machine. Signed applets can, IF the user allows them (which I personally wouldn't unless the signing authority was a well known one and even then only if the applet ran on a site I implicitly trust and the applet …

Member Avatar for jwenting
0
94
Member Avatar for Lord Felix

[quote]For some reason becuase reason it doesnt seem to be working[/quote] huh? What are you trying to say here? What isn't working and why isn't it working. What is it doing and what is it supposed to be doing?

Member Avatar for Lord Felix
0
198
Member Avatar for eXistenZ

Virusses don't cause hardware to fail. My best informed guess would be you have either a bad cable (maybe it's become partially disconnected?), your powersupply isn't up to the load (you say it can handle it for a while until your machine starts to get hot, this might be because …

Member Avatar for eXistenZ
0
92
Member Avatar for freesoft_2000

If you get the exception when trying to write the font, it seems like the getFont() method in JTable somehow causes an attempt to repaint the user interface with incorrect settings. It may be good to check out the official bug database and/or dive deep into the sourcecode for Swing …

Member Avatar for freesoft_2000
0
119
Member Avatar for Mathsniper
Member Avatar for server_crash

Are you getting any errors? Unless you have a DSN named exactly the same as the table you're trying to update that may be your problem. Also remember that (unlike SQL standard...) MSAccess I think uses case sensitive table and field names. The most correct form of the insert statement …

Member Avatar for server_crash
0
142
Member Avatar for freesoft_2000

You can pass a Runnable to a Thread. Something like this will work [code] // rest of your code ... public static void main(String[] args) { test t = new test(); class R1 implements Runnable { test tt; public R1(test t) {tt=t;} public void run() {tt.test1();} } class R2 implements …

Member Avatar for jwenting
0
106
Member Avatar for LoS_RoOcKoO

Well, what's stopping you? You want to write it, so I guess you're not asking us to do it for you?

Member Avatar for steveh
0
176
Member Avatar for Crash&Burn

See you soon in the virus and trojan forums when you come crying about having been compromised by something that SP2 fixes, looser (or luzer as you'll probably understand better).

Member Avatar for <<seS>>Saint
0
354
Member Avatar for paoloSCG

1) this is not the place to ask questions. 2) no we're not going to respond in Italian. You learn English when you want to use an international forum

Member Avatar for 1o0oBhP
0
207
Member Avatar for Cordillera

Disconnecting from the internet will mean they get hit even less frequently... The ONLY reason there's less nasties being distributed through FF is because it's too new and not widely used. FF gives a false sense of security. There's a spade of critical security holes which are going unplugged, a …

Member Avatar for Catweazle
0
265
Member Avatar for mus_203

Remember that arrays in Java don't grow so you need to take care of the buffering yourself. If you move say 5 places to the right, create a buffer of 5 elements. Move the last 5 elements out of the array into the buffer, then move every element in the …

Member Avatar for mus_203
0
216
Member Avatar for Dani

the "featured threads" section could be less prominent. I find myself mostly ignoring it, just scrolling past it or using the sidebar directly to get to the forum I want.

Member Avatar for jwenting
0
148
Member Avatar for George2

The object that first uses the object in synchronised code owns the lock. There's no easy way to find out what that is, you'll need to diagnose your code to figure out in what places objects are used in a concurrent way and then figure out a means to deconflict …

Member Avatar for George2
0
85
Member Avatar for freesoft_2000

You'd have to replace the TableModel with a different one I think. Or maybe just changing the underlying datastructures holding the header and row information on the fly and notifying the table would do the trick.

Member Avatar for jwenting
0
106
Member Avatar for Ryan L.

no. It's an html file containing an insane number of applet instances. It doesn't contain any of the Java code relating to those applets though.

Member Avatar for freesoft_2000
0
179
Member Avatar for helmica

well, there's probably a function in there that you can use. But as noone here except maybe you (and I doubt you took the trouble...) has ever seen it we're not going to be able to help you further. Do your own homework and do your own THINKING. Way too …

Member Avatar for vegaseat
0
188
Member Avatar for Gink
Member Avatar for jenman77

You should never expect to learn anything from just reading a textbook. You HAVE to apply what you read immediately and frequently thereafter in real programs. If your book has exercises, DO THEM. If it doesn't, think up some of your own.

Member Avatar for jwenting
0
188
Member Avatar for anaillvn2002

exactly what are you trying to install and from where? Best you go to [url]http://java.sun.com/j2se/1.5.0/download.jsp[/url] and download the installation you want. If you want the compiler, get the JDK, else get the JRE. Download the offline installer just to make sure it's not something on your network. Also read the …

Member Avatar for jwenting
0
155
Member Avatar for server_crash

I'm starting to. But as our customers are mainly running systems for which no 1.5 JVM is as yet available we cannot start using the new features yet for commercial purposes. I do plan to probably start for the 1.5 SCJD once that's available after taking the 1.4 SCJP hopefully …

Member Avatar for nanosani
0
172
Member Avatar for cdt1983

far simpler: set largest and smallest to the first number. if largest<second number set largest to second number else if smallest>second number set smallest to second number if largest<third number set largest to third number else if smallest>third number set smallest to third number It seems you're trying to create …

Member Avatar for Gink
0
105
Member Avatar for hopeolicious

you could start by being friendly and not hijacking other peoples' threads. You could also try to be smarter than the average looser who posts their homework assignments without even trying to think about them and do your own work.

Member Avatar for Dave Sinkula
0
110
Member Avatar for seeplusplus

no, UDFs are defined outside methods in C and C++. In Java you could have created an inner class similar to this, in C++ that's not allowed. Something like [code] #include <iostream> #include <string> struct student { std::string name; //name of student int SSN; // social security number std::string cardtype; …

Member Avatar for Dave Sinkula
0
153
Member Avatar for ellas747

You're working in C++. C++ has operator overloading. You're working on a mathematical addition operation. It makes in this context perfect sense to define an operator in (or as a friend of) your complex class. As a start I'll give you the headerfile for a complex number class I implemented …

Member Avatar for 1o0oBhP
0
156
Member Avatar for saloo

edlin is a line editor. That means you can edit only a single line of text at a time. To find out how it works, go to a commandprompt and type edlin followed by a filename (for a nonexistent file...). You'll get a prompt. Type a question mark (?) and …

Member Avatar for jwenting
0
143
Member Avatar for Drumstik

Use one partition only. It makes no sense creating multiple partitions. Your friend was probably thinking about performance when he advised you to create a separate partition for your pagefile but this is useless (in fact it may well be counterproductive). Had he told you to use a separate harddrive …

Member Avatar for dlh6213
0
112
Member Avatar for kharri5

There is a wrapper class Character which can be used to store chars as Objects. This is equivalent to classes like Integer, Boolean, and Double (among others). If you're using 1.5 (Tiger, 5.0) that wrapping will be taken care of for you. If you use the correct Tree from the …

Member Avatar for jwenting
0
93
Member Avatar for mikeandike22

Sure you can. You might not be able to run the very latest version (but check the specs and try) but a 1.3 and likely a 1.4 should be able to work just fine (I've run those on Windos NT4 which is as old).

Member Avatar for jwenting
0
54
Member Avatar for pooja sachdev

this is hardly a tutorial... There is no way to send SMS from any language without special hardware. Usually what you do is you contract a company that has the hardware to send the messages for you, and they provide you with an API which you can use to send …

Member Avatar for jwenting
0
126
Member Avatar for vegaseat

the trite answer is indeed the one true answer. Anything that's not in the standard docs is non-standard. A slightly more concise answer would be that as long as you keep to what Stroustrup describes you should be fine.

Member Avatar for vegaseat
0
146
Member Avatar for bcheath_1

install the API docs. Look up DateFormat, SimpleDateFormat, java.util.Date, and Calendar. Using those you can do what you want quite easily.

Member Avatar for jwenting
0
181
Member Avatar for bcheath_1

The best way would be to search the net for existing components and purchase one of those. Writing all that stuff from scratch is very likely to be more expensive than picking something that suits your need off the shelf in some online store.

Member Avatar for jwenting
0
79
Member Avatar for George2

You can't, and you don't want to. Once your application ships you want to be able to get some logs when there's a problem at a customer's site. To get that build your application to log those messages to some file. If you create a logger with different logging levels …

Member Avatar for George2
0
160
Member Avatar for Gink

Sure. You can create a program that mimmicks the actions a human would take. You'll need to do quite a lot of stuff with HttpURLConnection, URL, and classes like that though. Beware though that site admins won't like it and may well ban you permanently if you do it. It's …

Member Avatar for paradox814
0
121
Member Avatar for Real-tiner

Well, seems a bad design decision is coming to haunt you... you would best look into special built hardware, think of PLCs for example. Or get some new data acquisition cards with their own logic controllers which you can use parallel to the computer they're in. Believe it or not …

Member Avatar for Real-tiner
0
218
Member Avatar for nanosani

[QUOTE=pajac]Apple or *NIX? :mrgreen:[/QUOTE] No, a computer without a powersupply :cheesy:

Member Avatar for Real-tiner
0
303
Member Avatar for Cherrio

and actually write some code... Just putting a few {s and }s and a void or two into your assignment doesn't constitute an effort...

Member Avatar for jwenting
0
137
Member Avatar for mikeandike22
Member Avatar for rishiraj_bayerd

What exactly do you want to achieve? Do you want to continue processing a request received in one servlet in another one or do you want to include the result from one servlet call into the result of another? If the first, you need only 2 lines of code: [code] …

Member Avatar for jwenting
1
79
Member Avatar for Foxtildawn
Member Avatar for server_crash

For one that will only work on Windows machines, not anywhere else. Try to write Java code to be platform independent... Look at the class System for a method getProperties(). This will retrieve the system properties which, among other things, contains a reference to the current working directory as well …

Member Avatar for jwenting
0
86

The End.