<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">

import javax.swing.*;
import java.awt.*;

public class ComponentExamples extends JFrame {

   public ComponentExamples() {
      setLayout(new FlowLayout(FlowLayout.LEFT));
      add(new JButton("Button"));
      add(new JLabel("Label"));
      add(new JComboBox(new String[] { "A", "B", "C" }));
      add(new JCheckBox("JCheckBox"));
      add(new JSlider(0, 100));
      add(new JColorChooser());

      setDefaultCloseOperation(EXIT_ON_CLOSE);
      pack();
      setVisible(true);
   }

   public static void main(String[] args) {
      try {
         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      } catch (Exception exc) {}
      new ComponentExamples();
   }
}
</pre></body></html>