Showing 172 of 2,280 total issues
SizeAndPositionPanel
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
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
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
Open
package org.pdf.forms.gui.toolbars;
import static java.util.stream.Collectors.toUnmodifiableList;
import java.awt.*;
Method initComponents
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
private void initComponents() {
final JLabel paperTypeLabel = new JLabel("Paper Type:");
paperTypeBox = new JComboBox<>();
paperTypeBox.setModel(new DefaultComboBoxModel<>(PAPER_TYPES));
WidgetPropertiesToolBar
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class WidgetPropertiesToolBar extends VLToolBar {
private static final String[] FONT_SIZES = {
"6",
"8",
Method initComponents
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
private void initComponents() {
final JLabel nameLabel = new JLabel();
nameLabel.setText("Your Name:");
final JLabel emailLabel = new JLabel();
SizeAndPosition
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
@XmlType(name = "sizeandposition")
public class SizeAndPosition {
private static final String X = "X";
private static final String Y = "Y";
Method initComponents
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
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");
Method initComponents
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
TriStateDecorator
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
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
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
Open
package org.pdf.forms.widgets.utils;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.List;
Method initComponents
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
public class BorderPropertiesPanel extends JPanel {
private static final String[] BORDER_STYLES = {
"None",
"Solid",
WidgetSelection
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
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;
Method initComponents
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
public class WidgetFactory {
private static final JFrame FRAME = new JFrame();
public static JLabel createResizedComponent(