HexTableModel model = new HexTableModel(data); table = new HexTable(model); setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); setLayout(new GridLayout()); add(new JScrollPane(table)); setPreferredSize(new Dimension( table.getPreferredSize().width + 8, 400));
this(new HexFile(file));
  public JHexEdit(HexData data)  {    HexTableModel model = new HexTableModel(data);    table = new HexTable(model);    setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));    setLayout(new GridLayout());    add(new JScrollPane(table));    setPreferredSize(new Dimension(      table.getPreferredSize().width + 8, 400));  }