Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dddutcher

    Moving out east and sec. clerance

    I don't think you can get a security clearance on your own. As far as I know, you have to have a need for it (ie, working on a contract that requires it, or working for a company that requires clearance) before you can get a security clearance. I do not believe that people can just decide to...
  2. dddutcher

    choice boxs remove all

    Assuming you are using a JComboBox, you can use the following lines of code (without the first line, IE and NS may throw an exception). if (comboBox.getItemCount() > 0) comboBox.removeAllItems();
  3. dddutcher

    Real Brainer question, looking for a simpler answer.

    This is based on some mathematical information regarding your problem, but it is still in the form of an if-else, but it is fairly short. x is your current position, and y is the move in question if (x%2 == y%2) System.out.println("illegal move " + x + " to " + y)...
  4. dddutcher

    EASY QUESTION: Rounding Integers to 2 decimal places?

    DecimalFormat actually uses a rounding method called "half-even" rounding. It is an IEEE standard method of rounding. You can always do something similar to what was already posted, but add .005 to the number first. double d = 123.45678; d+=.005; d *= 100; long temp =...
  5. dddutcher

    propertyChangeEvent problem with JTable in 1.3 and higher

    Using the Java plug-in 1.3 or higher, this code does not work. 1.2 works fine. The propertyChangeEvent is never fired by the JTable. Any suggestions on what I could be doing wrong? Any help is greatly appreciated. import javax.swing.*; import java.awt.*; import java.awt.event.*; import...

Part and Inventory Search

Back
Top