コード例 #1
0
 // handle tooltip label
 private void detail0_cursor_out_handler(
     java.awt.event.FocusEvent evt) { // GEN-FIRST:event_detail0_cursor_out_handler
   if (EnterDetail0.getText().length() < 1) {
     EnterDetail0.setText("Enter Detail");
     EnterDetail0.setFont(new java.awt.Font("Tahoma", 2, 12));
     EnterDetail0.setForeground(new java.awt.Color(153, 153, 153));
   }
 } // GEN-LAST:event_detail0_cursor_out_handler
コード例 #2
0
 // handle tooltip label
 private void detail0_cursor_in_handler(
     java.awt.event.FocusEvent evt) { // GEN-FIRST:event_detail0_cursor_in_handler
   if (EnterDetail0.getText().equals("Enter Detail")) {
     EnterDetail0.setText(null);
     EnterDetail0.setFont(new java.awt.Font("Tahoma", 0, 12));
     EnterDetail0.setForeground(new java.awt.Color(0, 0, 0));
   }
 } // GEN-LAST:event_detail0_cursor_in_handler