nordmann 0 Newbie Poster

My solutions are mundane, yet effective. I use an email whitelist and I browse the web with Opera or at least Firefox. I avoid MSIE.

This makes the process of emailing a bit more formalized, since after meeting somebody, I have to add their email address to the whitelist before they can contact me. But this is the only effective way of completely shutting down spam, and so whitelists are eventually going to become the norm. Perhaps email clients will start to have built-in functionality to facilitate the management of server-based whitelists. At that point, maintaining a white-list will be something that non-technical users can do. Once this gets widespread acceptance, there will no longer be any point in attempting to spam.

As for the death penalty for spammers, that would be totally ineffective in stopping them. The death penalty has been demonstrated through decades of law enforcement studies to pose no deterrent effect on actual criminals. The only thing it accomplishes is to satisfy the blood-lust of survivalist end-timer types in Wyoming for somebody (anyone who looks vaguely suspicious will do) to pay a hefty price when a crime is committed.

nordmann 0 Newbie Poster

Why would you not use the facilities offered in the standard JCL? Are you doing this as an exercise for a programming class, or are you coding something for a real-world project?

If it's for a project and you want to get the job done with a minimum of effort and a maximum of quality, look into the java.util.Arrays class, which has various overloaded sort methods. If sorting Objects, you'll want to have them implement the java.util.Comparator interface in order to define the sorting order.

nordmann 0 Newbie Poster

Better yet, do youself a favor: stop wasting your time with Windows and put Ubuntu Linux on that laptop. You'll have to borrow a friend's machine to download the image and burn the CD. But it's only one CD, and it installs in about half an hour. And yes, it really is free, as in "beer". And that half-hour installation can include a wide variety of popular productivity apps from which you may choose during the install process, so once you're done, you're done, and you can go to work right away.

Compare that to a Windows XP install. Just getting the bare OS installed involves an entire long day of grinding away, rebooting over and over again, and then downloading and installing another 3GB of critical bug fixes and security updates. And then comes Office along with its patches. By the time you're done with all of that, you could have had Ubuntu installed and had most of your term paper written already.

But perhaps best of all, you'll be done once and for all with all the malware and the nonsense you need to buy to attempt (sometimes unsuccessfully) to prevent it from taking over your Windows machine. In fact, an entire Ubuntu OS typically runs in the memory space required by just the anti-virus utility you need to run under Windows.

nordmann 0 Newbie Poster

Thank you, Cheenu, for your interesting suggestion. Setting the divider bar does allow the visual effect I want, but unfortunately, it leaves nothing for the mouse to grab, which renders it unresizable through a mouse-drag. I also can find no JScrollPane.setDividerMouseActionWidth(int width) to make the mouse-active area of the divider larger than the divider's visual representation. Maybe I should start looking at subclassing JScrollPane, rather than JPanel. If I can find a way of suppressing the rendering of the divider bar, that would do the trick.

The more I work with Swing, the more it strikes me as detached from the real-world, common-sense issues that applications developers confront in their projects. Sure, you can create a UI that looks and behaves like nothing of this Earth, and drastically alter the entire Look and Feel by changing one line in a configuration file, or even in response to user input at run time. But how often and how much do people care about such exotic capabilities?

On the other hand, if you just want the usual things that everyone expects from a GUI, working the way they expect them to, you have to invent your own widgets. I don't see why it should require extensions to the windowing API to add such mundane features as a resizable navigation panel sitting on the left-hand side of the screen with no ugly divider bars chopping up your UI.

And no, I don't want an MDI app, either. That's way more …

nordmann 0 Newbie Poster

If one want to change from Static import to non-static import only in the problem modifiers as below, where and what do I need to change?do I need to remove static anywhere else?

I'm not sure what you mean by "import", but if you're asking how to get out of making static calls endlessly from one method to the next, just instantiate your class inside the main method and then make method calls on the instance you just created.

For example:

public class MyClass() {[INDENT]//this is a non-static method 
public void doSomething() {[INDENT]System.out.println("Gjøre noe interessant");[/INDENT]}
//main is the special method where all Java programs begin.  It must be declared static.
public static void main(String[] args) {
[INDENT]//Instantiate an instance of a MyClass:
MyClass myClass = new MyClass();
//Now you can make non-static method calls:
myClass.doSomething();[/INDENT]}[/INDENT]}

Håper dette gjelper litt.

nordmann 0 Newbie Poster

The others are correct. OCR (Optical Character Recognition) is a specialized field of development. It took many years of work in this field before machines could start to read handwriting with any degree of reliability.

You're not likely to write your own OCR library any time soon, so start looking for a vendor. Asprise is one I've heard of, and you can try it out at: http://asprise.com/product/ocr/download.php?lang=java

nordmann 0 Newbie Poster

I've been trying to find an alternate means of achieving essentially what JSplitPanes can do, except that the hideous-looking splitter bar would be invisible, and you can resize in both x and y dimensions at the same time.

My current thought is to subclass a JPanel with listeners that implement the behaviors for when the resizing border(s) is (are) mouseovered and dragged. Is this strategy pretty much the way it's usually done in Swing, or is there some sort of a ready-made JResizablePanel that I've somehow missed?

Thanks,
--Erik

nordmann 0 Newbie Poster

...I have tried a couple of linux versions mostly knoppex cd ,but find i have nothing to do because i don't have axcess to all my regular burning and photo programs .are there program for lenux to copy dvds' and a photo program equel to photoshop in linux .what would you suggest as the best linux to use as a relitive newbie!1thanks
I use a dvd burner ,and also use Photo shop program to alter'repair old photos ,

Hi Caperjack,

I have heard that if you keep on top of Windows and keep running various utilities to clean up after it, you can avoid the slowdown that most people experience after a few months. As for memory leaks, they come in two varieties--those in the programs you run (in user space) and those in the kernel itself. No matter how badly a user-space program has been written and how much memory it leaks, the OS is supposed to reclaim ALL of the memory it hogs up once you shut that program down. If opening and closing programs repeatedly leads to a gradual reduction in the amount of memory available, then this would be the kernel not managing memory correctly. MS seems to have cut way down on the amount of memory leaked by the kernel, and I'm glad for that.

But it still has one habit that I find incredibly annoying: If I'm running a big program (say, Photoshop or Dreamweaver), and switch to doing something else …

nordmann 0 Newbie Poster

I ran System Restore and it worked luckily. What can I do to protect myself from IE hijacking?

Simple: don't use IE. Like most other Microsoft technologies, it is willfully non-standards-compliant, badly-broken software that introduces endless opportunities for crackers to take over your computer. Once you get used to Firefox/Netscape 7.2, you'll never return to MSIE/Outlook Express unless your employer forces you to do so as a condition for keeping your job.

In fact, the same could be said of Windows itself. There just seems to be no computer that has sufficient power to run XP. Sure, it's blazing fast right out of the box before you actually install any software on it and start using it. But that's only because it is neglecting to do the background housekeeping that a real OS does to, for examples, keep the virtual memory system optimized for any given processing load and keep the hard drive defragmented. And let's not even talk about the hideous registry bloat you get after just six months of real-world use. So after paying out several hundred dollars for this convicted monopoly's OS, you have to shell out another couple hundred for all sorts of extra software to band-aid over all your computer's security holes and to force it to do all the self-maintenance that it would be doing in any case if it were a good OS.

My advice: try Linux. Don't be afraid. It won't bite. In fact, it won't even suck (like Windows). …