示例#1
0
 protected void paintBackground(Graphics g) {
   super.paintBackground(g);
   //        Color c = BlueLookAndFeel.getControlShadow().darker();
   //        g.setColor(new Color(c.getRed(), c.getGreen(), c.getBlue(), 64));
   //        g.drawLine(0, 1, myComponent.getWidth() - 1, 1);
   //
   //        g.setColor(new Color(c.getRed(), c.getGreen(), c.getBlue(), 32));
   //        g.drawLine(0, 2, myComponent.getWidth() - 1, 2);
   // Rectangle editorRect = getVisibleEditorRect();
   // Graphics2D g2D = (Graphics2D) g;
   // // paint one gradient in the upper half of the text field
   // GradientPaint gradient = new GradientPaint(0.0f, 0.0f, col1, 0.0f,
   // (float) myComponent.getHeight() * 2 / 3, col2);
   // g2D.setPaint(gradient);
   // g2D.fill(editorRect);
 }