private Component getResizableToolbarPanel() {
        JPanel panel;
        Box boxButtons = Box.createHorizontalBox();
        Box boxButtons2 = Box.createHorizontalBox();

        if (frame.getWidth() >= WINDOW_SINGLE_BUTTONS_PANEL_MAX_WIDTH) {
            boxButtons.setBorder(BorderFactory.createEmptyBorder(1, 8, 1, 8));
            boxButtons.add(jcbWordWrap);
            boxButtons.add(Box.createRigidArea(new Dimension(10, 10)));
            boxButtons.add(jcbSortOutput);
            boxButtons.add(Box.createRigidArea(new Dimension(10, 10)));
            boxButtons.add(jcbHighlightDuplicates);
            boxButtons.add(Box.createRigidArea(new Dimension(10, 10)));
            boxButtons.add(jbRemoveDuplicates);

            panel = new JPanel(new GridLayout(1, 1));
            panel.add(boxButtons);
        } else {
            boxButtons.setBorder(BorderFactory.createEmptyBorder(1, 8, 1, 8));
            boxButtons.add(jcbWordWrap);
            boxButtons.add(Box.createRigidArea(new Dimension(10, 10)));
            boxButtons.add(jcbSortOutput);
            boxButtons2.add(Box.createRigidArea(new Dimension(10, 10)));
            boxButtons2.add(jcbHighlightDuplicates);
            boxButtons2.add(Box.createRigidArea(new Dimension(10, 10)));
            boxButtons2.add(jbRemoveDuplicates);

            panel = new JPanel(new GridLayout(2, 1));
            panel.add(boxButtons);
            panel.add(boxButtons2);
        }
        return panel;
    }