With this latest government fleece, the Transportation Safety Administration(TSA) has enhanced its body search procedures. They now have body scanning machines that take a nude picture of every person who goes through an airport security checkpoint. If a traveler doesn't want to have random TSA employees looking at their naked bodies, there's another option...the enhanced body search. TSA employees will feel breasts, butts and crotches. It brings new meaning to "Oh what a feeling!"
Why don't we hear any serious talk about boycotting the airlines? That's an option too. The airlines are allowing this to happen as well as the flying public. Too often the conversation in the media is about what rights the government is taking away and how people are going to cope with being fleeced. Very rarely is there any conversation about American citizens taking action.
I have been listening to the talking heads on this topic, but it only goes as far as how the government is going to use its power against us and how we're going to deal with it. We have the power to coerce the TSA to scale back its enhanced security screening by not flying. The airlines have to respond to their market. The government will push as far as its citizens allow.
Tuesday, November 23, 2010
Sunday, November 21, 2010
Java NumericTextField Issues
Problem: JButton requires two clicks to execute.
Apparent Cause: Adding a DocumentListener to a JFormattedTextField
Background:
I created form inside of a JDialog. The form contained a JFormattedTextField, OK and Cancel buttons and a JComboBox. The JFormattedTextField filters text, not format it. Everything worked as expected until I added a DocumentListener to the JFormattedTextField. When that happened, I noticed that it takes two clicks on the OK button for it to execute its actionPerformed() method. Visually the JButton appeared to be clicked by displaying the "mouse over", "mouse pressed" and "mouse released" events, but nothing happened as a result of clicking the button.
I replaced the JFormattedTextField with a JTextField. To ensure that the JTextField only allows numeric text, I attached a DocumentListener to it. Since my text field needed to filter user input and not format it, this is what I should have used anyway.
Apparent Cause: Adding a DocumentListener to a JFormattedTextField
Background:
I created form inside of a JDialog. The form contained a JFormattedTextField, OK and Cancel buttons and a JComboBox. The JFormattedTextField filters text, not format it. Everything worked as expected until I added a DocumentListener to the JFormattedTextField. When that happened, I noticed that it takes two clicks on the OK button for it to execute its actionPerformed() method. Visually the JButton appeared to be clicked by displaying the "mouse over", "mouse pressed" and "mouse released" events, but nothing happened as a result of clicking the button.
I replaced the JFormattedTextField with a JTextField. To ensure that the JTextField only allows numeric text, I attached a DocumentListener to it. Since my text field needed to filter user input and not format it, this is what I should have used anyway.
Subscribe to:
Posts (Atom)