1-) Java - FRAME UZERİNDEKİ LABELLERİ DEGİSTİR
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
Component[] c = this.getContentPane().getComponents();//panele ulaşır fakat içindekine ulaşmaz
for (int i = 0; i < c.length; i++) {
if (c[i] instanceof JLabel) {
JLabel tmp = (JLabel) c[i];
tmp.setForeground(Color.red);
tmp.setText("frame label"); } } }