r4fterman/pdf.forms

View on GitHub

Showing 172 of 2,280 total issues

SizeAndPositionPanel has 34 methods (exceeds 20 allowed). Consider refactoring.
Open

public class SizeAndPositionPanel extends JPanel {

    private static final String[] ANCHORS = {
            "Top Left",
            "Top Middle",

    Method initComponents has 106 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private void initComponents() {
            final JLabel appearanceLabel = new JLabel("Appearance:");
            appearanceLabel.setEnabled(false);
    
            final JComboBox<String> appearanceBox = new JComboBox<>(APPEARANCES);

      File WidgetPropertiesToolBar.java has 340 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      package org.pdf.forms.gui.toolbars;
      
      import static java.util.stream.Collectors.toUnmodifiableList;
      
      import java.awt.*;
      Severity: Minor
      Found in src/main/java/org/pdf/forms/gui/toolbars/WidgetPropertiesToolBar.java - About 4 hrs to fix

        Method initComponents has 103 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private void initComponents() {
                final JLabel currentlyEditingLabel = new JLabel("Currently Editing:");
        
                currentlyEditingBox = new JComboBox<>(EDITING_VALUES);
                currentlyEditingBox.addActionListener(this::updateCurrentlyEditingBox);

          Method initComponents has 100 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private void initComponents() {
                  final JLabel paperTypeLabel = new JLabel("Paper Type:");
          
                  paperTypeBox = new JComboBox<>();
                  paperTypeBox.setModel(new DefaultComboBoxModel<>(PAPER_TYPES));
          Severity: Major
          Found in src/main/java/org/pdf/forms/gui/properties/object/page/PagePanel.java - About 4 hrs to fix

            WidgetPropertiesToolBar has 29 methods (exceeds 20 allowed). Consider refactoring.
            Open

            public class WidgetPropertiesToolBar extends VLToolBar {
            
                private static final String[] FONT_SIZES = {
                        "6",
                        "8",
            Severity: Minor
            Found in src/main/java/org/pdf/forms/gui/toolbars/WidgetPropertiesToolBar.java - About 3 hrs to fix

              Method initComponents has 82 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private void initComponents() {
                      allowMultipleLinesBox = new TriStateCheckBox(
                              "Allow Multiple Line",
                              TriStateCheckBox.State.NOT_SELECTED,
                              this::saveAllowedMultipleLines);

                Method initComponents has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private void initComponents() {
                        final JLabel nameLabel = new JLabel();
                        nameLabel.setText("Your Name:");
                
                        final JLabel emailLabel = new JLabel();
                Severity: Major
                Found in src/main/java/org/pdf/forms/gui/windows/BugReportPanel.java - About 3 hrs to fix

                  SizeAndPosition has 26 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  @XmlType(name = "sizeandposition")
                  public class SizeAndPosition {
                  
                      private static final String X = "X";
                      private static final String Y = "Y";
                  Severity: Minor
                  Found in src/main/java/org/pdf/forms/model/des/SizeAndPosition.java - About 3 hrs to fix

                    Method initComponents has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        private void initComponents() {
                            final JLabel projectPageLabel = createUrlLabel(this, VisitWebsiteCommand.GITHUB_PROJECT_PAGE);
                            projectPageLabel.setHorizontalAlignment(SwingConstants.CENTER);
                    
                            final JLabel pdfFormDesignerLabel = new JLabel("PDF Forms Designer");
                    Severity: Major
                    Found in src/main/java/org/pdf/forms/gui/windows/AboutPanel.java - About 2 hrs to fix

                      Method initComponents has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private void initComponents() {
                              final JLabel questionLabel = new JLabel();
                              questionLabel.setText("How would you like to import the PDF document?");
                      
                              final JPanel importTypePanel = new JPanel();
                      Severity: Major
                      Found in src/main/java/org/pdf/forms/gui/windows/PDFImportChooser.java - About 2 hrs to fix

                        TriStateDecorator has 25 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                            private final class TriStateDecorator implements ButtonModel {
                                private final ButtonModel other;
                        
                                private TriStateDecorator(final ButtonModel other) {
                                    this.other = other;

                          Method initComponents has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private void initComponents() {
                                  typeLabel = new JLabel("Type:");
                                  typeLabel.setEnabled(false);
                          
                                  typeBox = new JComboBox<>(TYPES);

                            File WidgetFactory.java has 283 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            package org.pdf.forms.widgets.utils;
                            
                            import java.awt.*;
                            import java.awt.image.BufferedImage;
                            import java.util.List;
                            Severity: Minor
                            Found in src/main/java/org/pdf/forms/widgets/utils/WidgetFactory.java - About 2 hrs to fix

                              Method initComponents has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private void initComponents() {
                                      final JLabel currentlyEditingLabel = new JLabel("Currently Editing:");
                              
                                      currentlyEditingBox = createEditingBox();
                                      horizontalAlignLeft = createAlignHorizontalLeftButton();

                                BorderPropertiesPanel has 24 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                public class BorderPropertiesPanel extends JPanel {
                                
                                    private static final String[] BORDER_STYLES = {
                                            "None",
                                            "Solid",

                                  WidgetSelection has 24 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  public class WidgetSelection {
                                  
                                      public static final int BOX_MARGIN = 3;
                                      private static final int RESIZE_NODE_SIZE = 4;
                                      private static final int WIDTH = 22;
                                  Severity: Minor
                                  Found in src/main/java/org/pdf/forms/widgets/utils/WidgetSelection.java - About 2 hrs to fix

                                    Method initComponents has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        private void initComponents() {
                                            final JLabel locationLabel = new JLabel("Location:");
                                    
                                            imageLocationBox = new JTextField();
                                            imageLocationBox.addFocusListener(new FocusAdapter() {

                                      Method createBordersPanel has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private JPanel createBordersPanel() {
                                              final JPanel panel = new JPanel();
                                              panel.setBorder(BorderFactory.createTitledBorder("Borders"));
                                      
                                              final JLabel leftEdgesIcon = new JLabel(new ImageIcon(getClass()

                                        WidgetFactory has 22 methods (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        public class WidgetFactory {
                                        
                                            private static final JFrame FRAME = new JFrame();
                                        
                                            public static JLabel createResizedComponent(
                                        Severity: Minor
                                        Found in src/main/java/org/pdf/forms/widgets/utils/WidgetFactory.java - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language