Package javax.swing

Examples of javax.swing.JLabel.repaint()


      Icon icon = Util.getBundleIcon(b);

      c.setIcon(icon);

      c.invalidate();
      c.repaint();
      invalidate();
      repaint();
    }
  }
View Full Code Here


    }

    public void propertyChange(final PropertyChangeEvent e) {
        JLabel label = (JLabel)e.getSource();
        label.revalidate();
        label.repaint();
    }


    protected String layoutCL(final JLabel label, final FontMetrics fontMetrics, final String text, final Icon icon, final Rectangle viewR, final Rectangle iconR, final Rectangle textR) {
        return SwingUtilities.layoutCompoundLabel(label, fontMetrics, text, icon, label.getVerticalAlignment(), label.getHorizontalAlignment(), label.getVerticalTextPosition(), label.getHorizontalTextPosition(), viewR, iconR, textR, label.getIconTextGap());
View Full Code Here

            public void actionPerformed(ActionEvent ae){
              Font f = JFontChooser.showDialog(test, "Chooser a font",
        "Fishing for Bobby Searcher", JFontChooser.getAvailableFont());
      if(f!=null){
    l.setFont(f);
    l.repaint();
      }else{
    System.out.println("f was " + f);
      }
       }
        });
View Full Code Here

                }
              };
              crossedLabel.setBounds(label1.getBounds());
              crossedLabel.setFont(label1.getFont());
              crossedLabel.setName(label1.getName());
              crossedLabel.repaint();
              label1 = crossedLabel;

            }
          }
          if (label1.getName().equals("pesinSatisFiyati")
View Full Code Here

      statusPanel.add(label, statusPanel.getComponentCount() - 1);
    }
    else {
      label.setText(info);
      label.revalidate();
      label.repaint();
    }
    label.setIcon(icon);
    label.setToolTipText(tooltip);
    label.setVisible(info != null || icon != null);
  }
View Full Code Here

            installFinished.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseExited(MouseEvent e) {
                    super.mouseExited(e);
                    installFinished.setText(installFinishedTxt[0] + myPaths + installFinishedTxt[1]);
                    installFinished.repaint();
                }

                @Override
                public void mouseEntered(MouseEvent e) {
                    super.mouseEntered(e);
View Full Code Here

                @Override
                public void mouseEntered(MouseEvent e) {
                    super.mouseEntered(e);
                    installFinished.setText(installFinishedTxt[0] + "<u>" + myPaths + "</u>" + installFinishedTxt[1]);
                    installFinished.repaint();
                }

                @Override
                public void mouseClicked(MouseEvent e) {
                    super.mouseClicked(e);
View Full Code Here

            testButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                    Font f = JFontChooser.showDialog(test, "Chooser a font", "Fishing for Bobby Searcher", JFontChooser.getAvailableFont());
                    if (f != null) {
                        l.setFont(f);
                        l.repaint();
                    } else {
                        System.out.println("f was " + f);
                    }
                }
            });
View Full Code Here

    }

    public void propertyChange(final PropertyChangeEvent e) {
        JLabel label = (JLabel)e.getSource();
        label.revalidate();
        label.repaint();
    }


    protected String layoutCL(final JLabel label, final FontMetrics fontMetrics, final String text, final Icon icon, final Rectangle viewR, final Rectangle iconR, final Rectangle textR) {
        return SwingUtilities.layoutCompoundLabel(label, fontMetrics, text, icon, label.getVerticalAlignment(), label.getHorizontalAlignment(), label.getVerticalTextPosition(), label.getHorizontalTextPosition(), viewR, iconR, textR, label.getIconTextGap());
View Full Code Here

              }
            }
          };
          sw.execute();
          icono.setIcon(LogicConstants.getIcon("anim_conectando"));
          icono.repaint();
          siguiente.setEnabled(false);
        }
      }
    };
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.