class HexView
{
    private final JComponent mainPane;
    
    static final int FONT_SIZE = ((Font)UIManager.get("Label.font")).getSize();
    static final Font FONT = new Font("monospaced", Font.PLAIN, FONT_SIZE);
    static final int CHAR_HEIGHT = 20;
    static final int CHAR_WIDTH = 35;
    static final int LINE_INSET = 20;
    static final Color SELECTED_COLOR = UIManager.getColor("textHighlight");
    static final Font BOLD_FONT = new Font("monospaced", Font.BOLD, FONT_SIZE);
    static final int HEX_PANE_WIDTH = 600;
    static final int ADDRESS_PANE_WIDTH = 120;
    static final int ASCII_PANE_WIDTH = 270;
    static final int TOTAL_WIDTH = HEX_PANE_WIDTH + ADDRESS_PANE_WIDTH +ASCII_PANE_WIDTH;
    static final Map<RenderingHints.Key, Object> RENDERING_HINTS = new HashMap<>();
    static
    {
        RENDERING_HINTS.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
        RENDERING_HINTS.put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);
    }

    public HexView()
    {
        mainPane = new JPanel(new BorderLayout());
    }

    /**
     * Constructor.
     * @param bytes takes a byte array.
     */
    public HexView(byte[] bytes)
    {
        mainPane = new JPanel(new BorderLayout());
        mainPane.add(new HexEditor(new HexModel(bytes)));
    }

    public void changeData(byte[] bytes)
    {<FILL_FUNCTION_BODY>}

    public JComponent getPane()
    {
        return mainPane;
    }
}

        if (mainPane.getComponentCount() > 0)
        {
            mainPane.removeAll();
        }
        HexModel model = new HexModel(bytes);
        mainPane.add(new HexEditor(model));
        mainPane.validate();
    
<no_super_class>