Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You must add the KeyListener to a component with the addKeyListener() method. It's similar to what you did with the ActionListener for the buttons.

Implementing the interface just defines what the listener does. Then you attach it to the component you want to listen to.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

All you read was the title? Being vaguely related to the title does not equate relevance to the story itself. Your question is logically irrelevant as well.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>Good story but on a deeper level...

Deeper level? Perhaps you meant "entirely irrelevant stream-of-consciousness tangent"? What does karma have to do with geotagging features in phones?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sadly, in this forum, we are not provided with a means of opting-out of future communication. All the 812,117 members are already locked to the mercy of a few mean guys.

You can unsubscribe from a thread in your subscribed threads listing in the Control Panel. You may also chose not to receive email notification of replies in threads.

You do have the option to manage your communications from this site.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No, it is not a hex value. The 'f' indicates a float value. So '1f' is 1 float, as opposed to a double. Hex values would be prefixed with '0x'.

Now you just need to put the while (!stop){ loop back in place.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That is zero float, 0f , not the word 'of'.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Initialize wage to some value when you declare it i.e.

float wage = 0f;

The compiler doesn't variables that may not have been assigned a value by the time they are used.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You could try Java Service Wrapper to run it as a service.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Re-read NormR1's second question and check your code again.

are they connected to any components?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Look in your text book. It is the mechanism to handle an exception.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just like you wrote it above (x1+x2, y1+y2).

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

See if the browse() method of the Desktop class works for you.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Create a method in your Dimensions class to add a Dimension to the instance and return a new Dimension with the result

public Dimension add(Dimension d){
  ... add dimensions and return the result ...
}
Xufyan commented: thnX :) +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Use a try-catch around the parseFloat() call and only set the object value if a valid float has been entered.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Use executeUpdate() instead.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I ran into this before with the jdbc-odbc bridge and Access. You can only read from each field of the current row one time. If you try to read it again it throws an exception. I have no idea why and it's irritating. So if you need to capture that value, do that on the first read.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can add references to the jar files in the Libraries section of your Project Properties. You can get to them by right-clicking the project in the browswer or through the File menu.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sorry, I'm used to working in Java, not Javascript. Try

Math.floor( d/.25)*.25

where 'd' is just the variable.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you want to always round down to the quarter

((int)(d/.25))*.25

If you want to round to the nearest quarter

Math.round(d/.25)*.25
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to install the "Java Web and EE" components in Netbeans, or the Java EE SDK

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please be specific about the problems you are having.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If the cell renderer is making the check to determine which icon(s) to show, you can probably just call repaint() on the panel that contains the JTree.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

What language are you using? You hijacked someone else's question about a database and I don't even know where to move this because you haven't given any context.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You could throw an IllegalArgumentException in the constructor if the suit is not valid.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That about covers it.

For future reference, you can click the "Flag Bad Post" button and request the post be moved to the correct forum :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You haven't asked a question.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, it is a flaw in the button graphic text that has been noted to be corrected.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There is no delete button.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Why resurrect a thread from 2004 just to tell us you're having problems with a web-based email service that has it's own dedicated technical support team?

They use hotmail. Mull that over and see if your question resolves itself.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Nah, how about you ask a specific question about the part you don't understand? What do you think it does?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The code is very much a part of the content of the thread and as such cannot be deleted.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No one is going to hold your hand through this project. You have been given some suggestions, but you're going to need to show some effort on this and ask specific question if you expect to receive any further assistance.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You cannot plagiarize your own code. Any sentient human being looking at that thread would see six pages of you working through issues with the original code you posted. Unless you copied the original post code from another source on the net, I don't see where you would have any problems defending that thread.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yeah, strange, isn't it?
;)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you tried searching the forums yet? I think you will find enough threads on the subject.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps you should make a bit of effort on this yourself? So far all I have seen is "gimme code" posts and no code of your own.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

/boggle

/facepalm

Lusiphur commented: My sentiments exactly! +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Re-read my post. He cannot mark solved a thread that he hijacked - only the original author can mark it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I think you should program a network filter that sends all "need a project" traffic to a null device.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Only the original poster can mark it solved, and since this was tacked on to the end of a two year old thread, I doubt that person is going to mark it solved for someone else.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please mark this thread as solved :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Flag Bad Post is preferred, as all moderators will be able to see it instead of just a single individual.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The "Edit/Delete" button continues to cause confusion amongst users, since it doesn't actually allow them to delete the post. I believe this was on the list of things to address with the new design months ago and may have fallen off the radar.

~s.o.s~ commented: Confusing indeed +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>perhaps I could fish out a project I did and sent it your way...

Handing students completed projects is not helpful. The entire point is to learn by completing the assignment. These are our future co-workers. Do you want to take up their slack when they can't complete the most basic of tasks?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There is certainly no reason you couldn't set up a group and start a new project on one of the open source hosting sites like SourceForge and see how it goes.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Maybe.

You're welcome.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It seems to work fine if you make the combo box uneditable and add the key listener directly to the JComboBox component instead of the editor

fromComboBox.addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent event) {
            fromComboBoxKeyKeyPressed(event);
    }
});
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It depends on the situation. Posts are only deleted when they specifically violate one of the rules of the forum. In cases of sensitive or private data posted, it's usually no trouble to edit the post to make it more generic in nature. Just use the Flag Bad Post button to alert the moderators to the post in question and explain what needs to be altered and why.

I've sent you a PM regarding this particular instance. Please check your messages.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Another amazing finding!!11eleventyOne!
http://www.hoax-slayer.com/wingdings-911.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

From my understanding the combobox must be editable to have a KeyListener on it. I need the keylistener because the app only uses scan guns to capture keystrokes (no keyboard or mouse is accesssible).

Have you tried it? My personal experience from many years of Swing programming is that the only way to negotiate the nuances is to keep trying until it works :)

I am unfamiliar w/ the DocumentListener but will look into it. Any more info you can provide?

Thanks.

The DocumentListener interface gives you control over how changes to the content of a text component are processed. The default combo box editor is basically a JTextField which uses a Document interface to encapsulate its content.