Skip to content

Commit

Permalink
Resizing horizontally now adjusts the Textfields for file directory i…
Browse files Browse the repository at this point in the history
…npuit
  • Loading branch information
Siedlerchr committed Mar 22, 2016
1 parent 43abad1 commit 62d68d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ private void init(JFrame parent) {
browseFile.addActionListener(BrowseAction.buildForDir(parent, fileDir));
browseFileIndv.addActionListener(BrowseAction.buildForDir(parent, fileDirIndv));


setupSortOrderConfiguration();
FormLayout form = new FormLayout("left:pref, 4dlu, left:pref, 4dlu, pref:grow",
FormLayout form = new FormLayout("left:pref, 4dlu, pref:grow, 4dlu, pref:grow, 4dlu, pref",
"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 160dlu, pref,");
FormBuilder builder = FormBuilder.create().layout(form);
builder.getPanel().setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
Expand All @@ -123,7 +122,6 @@ private void init(JFrame parent) {
builder.add(fileDirIndv).xy(3, 7);
builder.add(browseFileIndv).xy(5, 7);


builder.addSeparator(Localization.lang("Save sort order")).xyw(1, 13, 5);
builder.add(saveInOriginalOrder).xyw(1, 15, 5);
builder.add(saveInSpecifiedOrder).xyw(1, 17, 5);
Expand All @@ -146,7 +144,6 @@ private void init(JFrame parent) {
bb.addGlue();
bb.getPanel().setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));


getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
getContentPane().add(bb.getPanel(), BorderLayout.SOUTH);
pack();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void setValues(FieldFormatterCleanups formatterCleanups) {

private void buildLayout(List<FieldFormatterCleanup> actionsToDisplay) {
FormBuilder builder = FormBuilder.create()
.layout(new FormLayout("left:pref, 13dlu, left:pref, 4dlu, left:pref, 4dlu, pref:grow",
.layout(new FormLayout("left:pref, 13dlu, left:pref:grow, 4dlu, pref, 4dlu, pref",
"pref, 2dlu, pref, 2dlu, pref, 4dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref,"));
builder.add(enabled).xyw(1, 1, 7);
builder.add(getSelectorPanel()).xyw(3, 3, 5);
Expand Down Expand Up @@ -136,7 +136,7 @@ private void updateDescription() {

private JPanel getSelectorPanel() {
FormBuilder builder = FormBuilder.create().layout(new FormLayout(
"left:pref, 4dlu, left:pref, 4dlu, left:pref, 4dlu, pref:grow", "pref, 2dlu, pref, 2dlu"));
"left:pref, 4dlu, left:pref, 4dlu, left:pref, 4dlu, pref:grow", "pref, 2dlu, pref:grow, 2dlu"));

List<String> fieldNames = new ArrayList<>(InternalBibtexFields.getAllFieldNames());
fieldNames.add(BibEntry.KEY_FIELD);
Expand Down

0 comments on commit 62d68d1

Please sign in to comment.