Ticket #4948: 4948_2.patch

File 4948_2.patch, 1.1 KB (added by Hojoe, 14 years ago)

Changes the height of the member and selection table, but these tables are not editable. I don't know if we need this.

  • src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java

    ### Eclipse Workspace Patch 1.0
    #P JOSM
     
    347347                }
    348348        );
    349349        tfRole.setEnabled(memberTable.getSelectedRowCount() > 0);
     350        memberTable.setRowHeight(tfRole.getPreferredSize().height);
    350351        SideButton btnApply = new SideButton(setRoleAction);
    351352        btnApply.setPreferredSize(new Dimension(20,20));
    352353        btnApply.setText("");
     
    424425        pnl.setLayout(new BorderLayout());
    425426        selectionTable = new SelectionTable(selectionTableModel, new SelectionTableColumnModel(memberTableModel));
    426427        selectionTable.setMemberTableModel(memberTableModel);
     428        selectionTable.setRowHeight(tfRole.getPreferredSize().height);
    427429        JScrollPane pane = new JScrollPane(selectionTable);
    428430        pnl.add(pane, BorderLayout.CENTER);
    429431        return pnl;