JPanel panel = new VertialScrollablePanel();
String version = System.getProperty("java.vm.version");
boolean is15 = version != null && version.startsWith("1.5");
BBFormBuilder builder = new BBFormBuilder("7dlu, p, 2dlu, 40dlu, 70dlu:grow", panel);
builder.setDefaultDialogBorder();
builder.appendSeparator(Strings.message("userprefs.tab.advanced.separator.on.startup"));
builder.setLeadingColumnOffset(1);
builder.append(chShowTipsBox, 4);
builder.append(chDoUpdatesCheck, 4);
builder.append(chAlwaysUseEnglish, 4);
builder.setLeadingColumnOffset(1);
builder.appendSeparator(Strings.message("userprefs.tab.advanced.separator.network"));
builder.nextColumn();
builder.append(Strings.message("userprefs.tab.advanced.browser"), tfInternetBrowser, 2);
builder.append(chProxyEnabled);
builder.append(buildProxyPanel(), 2);
builder.append(lbProxyExclusions);
builder.append(tfProxyExclusions, 2);
tfProxyExclusions.setToolTipText(Strings.message("userprefs.tab.advanced.no.proxy.for.notes"));
builder.appendSeparator(Strings.message("userprefs.tab.advanced.separator.interface"));
builder.nextLine();
builder.append(Strings.message("userprefs.tab.advanced.feed.import.limit"), spinFeedImportLimit);
builder.nextLine();
builder.append(chShowUnreadButtonMenu, 4);
if (is15) builder.append(chAAText, 4);
if (NotificationArea.isSupported())
{
if (!SystemUtils.IS_OS_MAC) builder.append(chShowAppIconInSystray, 4);
if (OSSettings.isMinimizeToSystraySupported()) builder.append(chMinimizeToSystray, 4);
}
// Mac-specific Dock icon settings
if (SystemUtils.IS_OS_MAC) builder.append(Strings.message("userprefs.tab.advanced.dock.icon"), cbBIDMode, 2);
builder.appendSeparator(Strings.message("userprefs.tab.guides.on.selection"));
builder.append(rbGSMFirst, 4);
builder.append(rbGSMLastSeen, 4);
builder.append(rbGSMNoFeed, 4);
builder.appendSeparator(Strings.message("userprefs.tab.guides.on.publication"));
builder.append(chPing);
builder.append(tfPingURL, 2);
builder.appendSeparator(Strings.message("userprefs.tab.advanced.articles"));
builder.append(chSortingAscending, 4);
builder.append(chHideOldArticles, tfSuppressOlderThan);
builder.nextLine();
builder.append(chDisplayFullTitles, 4);
builder.append(chCopyLinksInHREFFormat, 4);
builder.append(chBrowseOnTitleDblClick, 4);
// Finish
setLayout(new BorderLayout());
JScrollPane sp = new JScrollPane(panel);
sp.setBorder(BorderFactory.createEmptyBorder());