1-) Java - PANEL UZERİNDEKİ LABELLERİ DEGİSTİR
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
Component[] c = jPanel1.getComponents();
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"); } } }