@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panel_fontFamily = new javax.swing.JPanel();
        btn_TimesNewRoman = new javax.swing.JButton();
        btn_CenturyGothic = new javax.swing.JButton();
        btn_CourierNew = new javax.swing.JButton();
        btn_Impact = new javax.swing.JButton();
        btn_OldEnglish = new javax.swing.JButton();
        panel_FontSize = new javax.swing.JPanel();
        btn_smaller = new javax.swing.JButton();
        btn_larger = new javax.swing.JButton();
        lbl_fontSize = new javax.swing.JLabel();
        lbl_display = new javax.swing.JLabel();
        btn_reset = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        panel_fontFamily.setBorder(javax.swing.BorderFactory.createTitledBorder("Choose font style"));

        btn_TimesNewRoman.setText("Times New Roman");
        btn_TimesNewRoman.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_TimesNewRomanActionPerformed(evt);
            }
        });

        btn_CenturyGothic.setText("Century Gothic");
        btn_CenturyGothic.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_CenturyGothicActionPerformed(evt);
            }
        });

        btn_CourierNew.setText("Courier New");
        btn_CourierNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_CourierNewActionPerformed(evt);
            }
        });

        btn_Impact.setText("Impact");
        btn_Impact.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_ImpactActionPerformed(evt);
            }
        });

        btn_OldEnglish.setText("Old English Text");
        btn_OldEnglish.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_OldEnglishActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panel_fontFamilyLayout = new javax.swing.GroupLayout(panel_fontFamily);
        panel_fontFamily.setLayout(panel_fontFamilyLayout);
        panel_fontFamilyLayout.setHorizontalGroup(
            panel_fontFamilyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_fontFamilyLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panel_fontFamilyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btn_CenturyGothic, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_CourierNew, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_Impact, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_OldEnglish, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btn_TimesNewRoman, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panel_fontFamilyLayout.setVerticalGroup(
            panel_fontFamilyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_fontFamilyLayout.createSequentialGroup()
                .addComponent(btn_TimesNewRoman)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btn_CenturyGothic)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btn_CourierNew)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btn_Impact)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btn_OldEnglish))
        );

        panel_FontSize.setBorder(javax.swing.BorderFactory.createTitledBorder("Choose font size"));

        btn_smaller.setText("Smaller --");
        btn_smaller.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_smallerActionPerformed(evt);
            }
        });

        btn_larger.setText("Larger ++");
        btn_larger.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_largerActionPerformed(evt);
            }
        });

        lbl_fontSize.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lbl_fontSize.setText("Current font size: " + lbl_display.getFont().getSize() + "pt");

        javax.swing.GroupLayout panel_FontSizeLayout = new javax.swing.GroupLayout(panel_FontSize);
        panel_FontSize.setLayout(panel_FontSizeLayout);
        panel_FontSizeLayout.setHorizontalGroup(
            panel_FontSizeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_FontSizeLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panel_FontSizeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btn_smaller, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btn_larger, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lbl_fontSize, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        panel_FontSizeLayout.setVerticalGroup(
            panel_FontSizeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_FontSizeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btn_smaller)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btn_larger)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lbl_fontSize)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lbl_display.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lbl_display.setText("The quick brown fox jumps over the lazy dog.");
        lbl_display.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        lbl_display.setBorder(javax.swing.BorderFactory.createTitledBorder("Display"));

        btn_reset.setText("Reset display");
        btn_reset.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btn_resetActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(panel_fontFamily, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panel_FontSize, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btn_reset, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lbl_display, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(lbl_display, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(panel_fontFamily, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(panel_FontSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btn_reset)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents