1 31 package org.pdfbox.pdfviewer; 32 33 import java.awt.Dimension ; 34 35 import javax.swing.JPanel ; 36 37 import javax.swing.JLabel ; 38 import java.awt.FlowLayout ; 39 45 public class ReaderBottomPanel extends JPanel 46 { 47 48 private JLabel statusLabel = null; 49 50 53 public ReaderBottomPanel() 54 { 55 super(); 56 initialize(); 57 } 58 59 62 private void initialize() 63 { 64 FlowLayout flowLayout1 = new FlowLayout (); 65 this.setLayout(flowLayout1); 66 this.setComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT); 67 this.setPreferredSize( new Dimension ( 1000, 20 ) ); 68 flowLayout1.setAlignment(java.awt.FlowLayout.LEFT); 69 this.add(getStatusLabel(), null); 70 } 71 72 77 public JLabel getStatusLabel() 78 { 79 if (statusLabel == null) 80 { 81 statusLabel = new JLabel (); 82 statusLabel.setText("Ready"); 83 } 84 return statusLabel; 85 } 86 } 87 | Popular Tags |