/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.pdfbox.tools.gui;

import java.awt.Dimension;

import javax.swing.JPanel;

import javax.swing.JLabel;
import java.awt.FlowLayout;
/**
 * A panel to display at the bottom of the window for status and other stuff.
 *
 * @author Ben Litchfield
 */
public class ReaderBottomPanel extends JPanel
{

    private JLabel statusLabel = null;

    /**
     * This is the default constructor.
     */
    public ReaderBottomPanel()
    {
        super();
        initialize();
    }

    /**
     * This method initializes this.
     */
    private void initialize()
    {
        FlowLayout flowLayout1 = new FlowLayout();
        this.setLayout(flowLayout1);
        this.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT);
        this.setPreferredSize( new Dimension( 1000, 20 ) );
        flowLayout1.setAlignment(java.awt.FlowLayout.LEFT);
        this.add(getStatusLabel(), null);
    }

    /**
     * This method initializes status label.
     *
     * @return javax.swing.JLabel
     */
    public JLabel getStatusLabel()
    {
        if (statusLabel == null)
        {
            statusLabel = new JLabel();
            statusLabel.setText("Ready");
        }
        return statusLabel;
    }
 }

@@ -1246,143 +1246,8 @@
   %7B%0A
-        super();%0A        initialize();%0A    %7D%0A%0A    /**%0A     * This method initializes this.%0A     */%0A    private void initialize()%0A    %7B%0A
     
@@ -1271,17 +1271,16 @@
 owLayout
-1
  = new F
@@ -1325,17 +1325,16 @@
 owLayout
-1
 );%0A     
@@ -1441,17 +1441,16 @@
 redSize(
- 
 new Dime
@@ -1459,17 +1459,16 @@
 ion(
- 
 1000, 20
  ) )
@@ -1467,11 +1467,9 @@
 , 20
- ) 
+)
 );%0A 
@@ -1485,17 +1485,16 @@
 owLayout
-1
 .setAlig
@@ -1499,25 +1499,16 @@
 ignment(
-java.awt.
 FlowLayo
@@ -1513,24 +1513,98 @@
 yout.LEFT);%0A
+        statusLabel = new JLabel();%0A        statusLabel.setText(%22Ready%22);%0A
         this
@@ -1608,20 +1608,17 @@
 his.add(
-getS
+s
 tatusLab
@@ -1619,18 +1619,16 @@
 tusLabel
-()
 , null);
@@ -1654,31 +1654,18 @@
   * 
-This method initializes
+Return the
  sta
@@ -1701,210 +1701,81 @@
 urn 
-javax.swing.JLabel%0A     */%0A    public JLabel getStatusLabel()%0A    %7B%0A        if (statusLabel == null)%0A        %7B%0A            statusLabel = new JLabel();%0A            statusLabel.setText(%22Ready%22);%0A        %7D
+JLabel The status label.%0A     */%0A    public JLabel getStatusLabel()%0A    %7B
 %0A   
@@ -1805,11 +1805,10 @@
 ;%0A    %7D%0A
- 
 %7D%0A

simplify weird code that breaks D1T rule (gets and maybe initializes),