当前位置: 首页>>代码示例>>Java>>正文


Java JScrollPane.setViewportBorder方法代码示例

本文整理汇总了Java中javax.swing.JScrollPane.setViewportBorder方法的典型用法代码示例。如果您正苦于以下问题:Java JScrollPane.setViewportBorder方法的具体用法?Java JScrollPane.setViewportBorder怎么用?Java JScrollPane.setViewportBorder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.JScrollPane的用法示例。


在下文中一共展示了JScrollPane.setViewportBorder方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildRightPanel

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private void buildRightPanel() {
	JPanel tableButtonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
	
	// Buttons
	tableButtonPanel.add(newRowButton);
	tableButtonPanel.add(removeRowButton);
	
	JPanel southButtonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
	southButtonPanel.add(insertButton);
	selectedTableViewer.add(tableButtonPanel, BorderLayout.NORTH);
	selectedTableViewer.add(southButtonPanel, BorderLayout.SOUTH);
	
	JScrollPane contentTablePanelSP = new JScrollPane(selectedTableViewer);
	contentTablePanelSP.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
	// Remove ugly borders
	contentTablePanelSP.setViewportBorder(null);
	
	JPanel bottomPanel = new JPanel(new BorderLayout());
	JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
	buttonsPanel.add(doneButton);
	bottomPanel.add(buttonsPanel, BorderLayout.SOUTH);
	getRightPanel().add(selectedTableViewer, BorderLayout.CENTER);
	getRightPanel().add(bottomPanel, BorderLayout.SOUTH);
}
 
开发者ID:tteguayco,项目名称:JITRAX,代码行数:25,代码来源:TablesManagerWindow.java

示例2: initComponents

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private void initComponents() {
    resultsArea = new HTMLTextArea() {
        protected void showURL(URL url) {
            resultsController.showURL(url);
        }
    };

    JScrollPane resultsAreaScroll = new JScrollPane(resultsArea,
                            JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                            JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    resultsAreaScroll.setBorder(BorderFactory.createMatteBorder(5, 5, 5, 5,
                                    UIUtils.getProfilerResultsBackground()));
    resultsAreaScroll.setViewportBorder(BorderFactory.createEmptyBorder());
    resultsAreaScroll.getVerticalScrollBar().setUnitIncrement(10);
    resultsAreaScroll.getHorizontalScrollBar().setUnitIncrement(10);

    JPanel contentsPanel = new JPanel();
    contentsPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, getTitleBorderColor()));
    contentsPanel.setLayout(new BorderLayout());
    contentsPanel.setOpaque(true);
    contentsPanel.setBackground(resultsArea.getBackground());
    contentsPanel.add(resultsAreaScroll, BorderLayout.CENTER);

    setLayout(new BorderLayout());
    add(contentsPanel, BorderLayout.CENTER);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:27,代码来源:OQLControllerUI.java

示例3: ThreadDumpWindow

import javax.swing.JScrollPane; //导入方法依赖的package包/类
public ThreadDumpWindow(ThreadDump td) {
    setLayout(new BorderLayout());
    setFocusable(true);
    setRequestFocusEnabled(true);
    setName(Bundle.ThreadDumpWindow_Caption(StringUtils.formatUserDate(td.getTime())));
    setIcon(Icons.getImage(ProfilerIcons.THREAD));

    StringBuilder text = new StringBuilder();
    printThreads(text, td);
    a = new HTMLTextArea() {
        protected void showURL(URL url) {
            if (url == null) {
                return;
            }
            String urls = url.toString();
            ThreadDumpWindow.this.showURL(urls);
        }
    };
    a.setEditorKit(new CustomHtmlEditorKit());
    a.setText(text.toString());
    a.setCaretPosition(0);
    JScrollPane sp = new JScrollPane(a);
    sp.setBorder(BorderFactory.createEmptyBorder());
    sp.setViewportBorder(BorderFactory.createEmptyBorder());
    add(sp, BorderLayout.CENTER);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:27,代码来源:ThreadDumpWindow.java

示例4: showDetails

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private static void showDetails(RunningVM vm) {
    HTMLTextArea area = new HTMLTextArea();
    JScrollPane areaScroll = new JScrollPane(area, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                                                   JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    areaScroll.setBorder(BorderFactory.createEmptyBorder());
    areaScroll.setViewportBorder(BorderFactory.createEmptyBorder());
    areaScroll.setPreferredSize(new Dimension(500, 260));
    configureScrollBar(areaScroll.getVerticalScrollBar());
    configureScrollBar(areaScroll.getHorizontalScrollBar());
    
    area.setText(getDetails(vm));
    area.setCaretPosition(0);
    
    HelpCtx helpCtx = new HelpCtx("ProcessDetails.HelpCtx"); //NOI18N
    JButton close = new JButton(Bundle.AttachDialog_BtnClose());
    close.setDefaultCapable(true);
    DialogDescriptor dd = new DialogDescriptor(areaScroll, Bundle.AttachDialog_DetailsCaption(getProcessName(vm.getMainClass())),
                          true, new Object[] { close }, close, DialogDescriptor.DEFAULT_ALIGN, helpCtx, null);
    Dialog d = DialogDisplayer.getDefault().createDialog(dd);
    d.pack();
    d.setVisible(true);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:AttachDialog.java

示例5: initConsole

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private static Component initConsole() {
  Logger root = Logger.getLogger("");
  JTextPane consoleTextArea = new JTextPane();
  JScrollPane consoleScrollPane = new JScrollPane();
  consoleScrollPane.setViewportBorder(null);
  consoleScrollPane.setViewportView(consoleTextArea);

  consoleTextArea.setEditable(false);
  consoleTextArea.setBackground(Color.DARK_GRAY);
  consoleTextArea.setAutoscrolls(true);
  root.addHandler(new ConsoleLogHandler(consoleTextArea));
  return consoleScrollPane;
}
 
开发者ID:gurkenlabs,项目名称:litiengine,代码行数:14,代码来源:Program.java

示例6: initComponents

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private void initComponents() {
    setLayout(new BorderLayout());

    JPanel contentsPanel = new JPanel(new BorderLayout());
    contentsPanel.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.setOpaque(true);
    contentsPanel.setBorder(BorderFactory.createMatteBorder(0, 15, 15, 15, UIUtils.getProfilerResultsBackground()));

    headerArea = new HTMLTextArea() {
            protected void showURL(URL url) {
                Utils.openLocation(ResetResultsProfilingPoint.this.getLocation());
            }
        };

    JScrollPane headerAreaScrollPane = new JScrollPane(headerArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                       JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    headerAreaScrollPane.setBorder(BorderFactory.createMatteBorder(0, 0, 15, 0, UIUtils.getProfilerResultsBackground()));
    headerAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    contentsPanel.add(headerAreaScrollPane, BorderLayout.NORTH);

    dataArea = new HTMLTextArea();

    JScrollPane dataAreaScrollPane = new JScrollPane(dataArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                     JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    TitledBorder tb = new TitledBorder(Bundle.ResetResultsProfilingPoint_DataString());
    tb.setTitleFont(Utils.getTitledBorderFont(tb).deriveFont(Font.BOLD));
    tb.setTitleColor(javax.swing.UIManager.getColor("Label.foreground")); // NOI18N
    dataAreaScrollPane.setBorder(tb);
    dataAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    dataAreaScrollPane.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.add(dataAreaScrollPane, BorderLayout.CENTER);

    add(contentsPanel, BorderLayout.CENTER);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:35,代码来源:ResetResultsProfilingPoint.java

示例7: createScrollPane

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private JScrollPane createScrollPane(Component inner) {
    JScrollPane result = new JScrollPane(inner);
    JViewport vp = result.getViewport();
    vp.addMouseListener(this);

    MarginViewportUI ui = (MarginViewportUI) MarginViewportUI.createUI(vp);
    vp.setUI(ui);
    ui.setMarginPainted(marginPainted);
    ui.setMarginColor(marginColor);
    ui.setEmptyString(emptyString);
    result.setBorder(BorderFactory.createEmptyBorder());
    result.setViewportBorder(result.getBorder());

    return result;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:PSheet.java

示例8: setupInstance

import javax.swing.JScrollPane; //导入方法依赖的package包/类
protected void setupInstance(JScrollPane instance) {
    super.setupInstance(instance);
    
    if (viewportBorder != null) {
        Border b = viewportBorder.createInstance();
        if (b != null) instance.setViewportBorder(b);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:PaneBuilders.java

示例9: createPanelScroll

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private JScrollPane createPanelScroll(ProfilerOptionsPanel panel) {
    enlargeBorder(panel, 0, 0, 0, 5);
    JScrollPane scroll = new JScrollPane(panel);
    scroll.setBorder(BorderFactory.createEmptyBorder());
    scroll.setViewportBorder(BorderFactory.createEmptyBorder());
    scroll.getVerticalScrollBar().setUnitIncrement(scrollIncrement);
    scroll.getVerticalScrollBar().setBlockIncrement((int)(content.getHeight() * 0.8d));
    scroll.getHorizontalScrollBar().setUnitIncrement(scrollIncrement);
    scroll.getHorizontalScrollBar().setBlockIncrement((int)(content.getWidth() * 0.8d));
    return scroll;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:ProfilerOptionsContainer.java

示例10: guiInit

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private void guiInit() {
    removeAll();
    JScrollPane scrollPane = new JScrollPane(formDesigner.getDesignCanvas());
    scrollPane.setBorder(null); // disable border, winsys will handle borders itself
    scrollPane.setViewportBorder(null); // disable also GTK L&F viewport border 
    scrollPane.getVerticalScrollBar().setUnitIncrement(5); // Issue 50054
    scrollPane.getHorizontalScrollBar().setUnitIncrement(5);
    add(scrollPane); // if not yet loaded, the canvas shows "Loading"
    setupAssistant(); // if not yet loaded, a blank placeholder panel is used
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:FormDesignerTC.java

示例11: ContextView

import javax.swing.JScrollPane; //导入方法依赖的package包/类
/**
 * 
 * @author  Tim Boudreau
 * @author  Marian Petras
 */
public ContextView(ResultModel resultModel,
        ExplorerManager explorerManager) {
    Border b = BorderFactory.createCompoundBorder(
            BorderFactory.createMatteBorder(        //outside border
                            0, 0, 1, 0, 
                            UIManager.getColor("controlShadow")),   //NOI18N
            BorderFactory.createEmptyBorder(        //inside border
                            5, 5, 1, 5));
    lblPath.setBorder(b);
    
    editorPane.setEditable(false);
    editorPane.getCaret().setBlinkRate(0);
    
    editorScroll = new JScrollPane(editorPane);
    editorScroll.setViewportBorder(BorderFactory.createEmptyBorder());
    editorScroll.setBorder(BorderFactory.createEmptyBorder());
    
    JPanel fileViewPanel = new JPanel();
    fileViewPanel.setLayout(new BorderLayout());
    fileViewPanel.add(lblPath, BorderLayout.NORTH);
    fileViewPanel.add(editorScroll, BorderLayout.CENTER);
    
    Box messagePanel = Box.createVerticalBox();
    messagePanel.add(Box.createVerticalGlue());
    messagePanel.add(lblMessage);
    messagePanel.add(Box.createVerticalGlue());
    lblMessage.setAlignmentX(0.5f);
    lblMessage.setHorizontalAlignment(SwingConstants.CENTER);
    lblMessage.setEnabled(false);
    
    setLayout(cardLayout = new CardLayout());
    add(fileViewPanel, FILE_VIEW);
    add(messagePanel, MESSAGE_VIEW);
    
    setResultModel(resultModel);

    this.explorerManager = explorerManager;
    explorerManager.addPropertyChangeListener(new PropertyChangeListener() {
        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            if (evt.getPropertyName().equals("selectedNodes")) {
                updateForSelection();
            }
        }
    });
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:52,代码来源:ContextView.java

示例12: initComponents

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private void initComponents() {
    setLayout(new BorderLayout());

    JPanel contentsPanel = new JPanel(new BorderLayout());
    contentsPanel.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.setOpaque(true);
    contentsPanel.setBorder(BorderFactory.createMatteBorder(0, 15, 15, 15, UIUtils.getProfilerResultsBackground()));

    headerArea = new HTMLTextArea();

    JScrollPane headerAreaScrollPane = new JScrollPane(headerArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                       JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    headerAreaScrollPane.setBorder(BorderFactory.createMatteBorder(0, 0, 15, 0, UIUtils.getProfilerResultsBackground()));
    headerAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    contentsPanel.add(headerAreaScrollPane, BorderLayout.NORTH);

    dataArea = new HTMLTextArea() {
            protected void showURL(URL url) {
                File resolvedFile = null;

                try {
                    resolvedFile = new File(url.toURI());
                } catch (URISyntaxException ex) {
                    ex.printStackTrace();
                }

                final File snapshotFile = resolvedFile;

                if ((snapshotFile != null) && snapshotFile.exists()) {
                    String type = TimedTakeSnapshotProfilingPoint.this.getSnapshotType();
                    if (type.equals(TYPE_PROFDATA_KEY) || type.equals(TYPE_HEAPDUMP_KEY)) {
                        ResultsManager.getDefault().openSnapshot(snapshotFile);
                    }
                } else {
                    ProfilerDialogs.displayWarning(
                            Bundle.TimedTakeSnapshotProfilingPoint_SnapshotNotAvailableMsg());
                }
            }
        };

    JScrollPane dataAreaScrollPane = new JScrollPane(dataArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                     JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    TitledBorder tb = new TitledBorder(Bundle.TimedTakeSnapshotProfilingPoint_DataString());
    tb.setTitleFont(Utils.getTitledBorderFont(tb).deriveFont(Font.BOLD));
    tb.setTitleColor(javax.swing.UIManager.getColor("Label.foreground")); // NOI18N
    dataAreaScrollPane.setBorder(tb);
    dataAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    dataAreaScrollPane.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.add(dataAreaScrollPane, BorderLayout.CENTER);

    add(contentsPanel, BorderLayout.CENTER);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:53,代码来源:TimedTakeSnapshotProfilingPoint.java

示例13: initComponents

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private void initComponents() {
    setLayout(new BorderLayout());

    JPanel contentsPanel = new JPanel(new BorderLayout());
    contentsPanel.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.setOpaque(true);
    contentsPanel.setBorder(BorderFactory.createMatteBorder(0, 15, 15, 15, UIUtils.getProfilerResultsBackground()));

    headerArea = new HTMLTextArea() {
            protected void showURL(URL url) {
                Utils.openLocation(TakeSnapshotProfilingPoint.this.getLocation());
            }
        };

    JScrollPane headerAreaScrollPane = new JScrollPane(headerArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                       JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    headerAreaScrollPane.setBorder(BorderFactory.createMatteBorder(0, 0, 15, 0, UIUtils.getProfilerResultsBackground()));
    headerAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    contentsPanel.add(headerAreaScrollPane, BorderLayout.NORTH);

    dataArea = new HTMLTextArea() {
            protected void showURL(URL url) {
                File resolvedFile = null;

                try {
                    resolvedFile = new File(url.toURI());
                } catch (URISyntaxException ex) {
                    ex.printStackTrace();
                }

                final File snapshotFile = resolvedFile;

                if ((snapshotFile != null) && snapshotFile.exists()) {
                    String type = TakeSnapshotProfilingPoint.this.getSnapshotType();
                    if (type.equals(TYPE_PROFDATA_KEY) || type.equals(TYPE_HEAPDUMP_KEY)) {
                        ResultsManager.getDefault().openSnapshot(snapshotFile);
                    }
                } else {
                    ProfilerDialogs.displayWarning(
                            Bundle.TakeSnapshotProfilingPoint_SnapshotNotAvailableMsg());
                }
            }
        };

    JScrollPane dataAreaScrollPane = new JScrollPane(dataArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                     JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    TitledBorder tb = new TitledBorder(Bundle.TakeSnapshotProfilingPoint_DataString());
    tb.setTitleFont(Utils.getTitledBorderFont(tb).deriveFont(Font.BOLD));
    tb.setTitleColor(javax.swing.UIManager.getColor("Label.foreground")); // NOI18N
    dataAreaScrollPane.setBorder(tb);
    dataAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    dataAreaScrollPane.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.add(dataAreaScrollPane, BorderLayout.CENTER);

    add(contentsPanel, BorderLayout.CENTER);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:57,代码来源:TakeSnapshotProfilingPoint.java

示例14: init

import javax.swing.JScrollPane; //导入方法依赖的package包/类
@Override
public final void init(Component parent)
{
	nameField = new I18nTextField(BundleCache.getLanguages());
	descriptionField = new I18nTextField(BundleCache.getLanguages());
	timeoutModel = new SpinnerNumberModel(TIMEOUT_DEFAULT, TIMEOUT_START, TIMEOUT_END, 1);

	owner = new SingleUserSelector(clientService.getService(RemoteUserService.class));

	collections = new JComboBox();
	transforms = new JComboBox();
	displayXslt = new JEntityFileUpload(adminService, s("browse"));
	displayXslt.setFileFilter(FileFilterAdapter.XSLT());
	disabled = new JCheckBox(s("disabled"));

	panel = new JPanel(new MigLayout("insets 5px 5px 0 0, wrap 2", "[fill][:640:800, fill]", "top"));

	panel.add(new JLabel(s("name")));
	panel.add(nameField);
	panel.add(new JLabel(s("description")));
	panel.add(descriptionField);
	panel.add(new JLabel(s("timeout")));
	panel.add(new JSpinner(timeoutModel));
	panel.add(new JLabel(s("owner")));
	panel.add(owner);
	panel.add(new JLabel(s("collection")));
	panel.add(collections);
	panel.add(new JLabel(s("transform")));
	panel.add(transforms);
	panel.add(new JLabel(s("displayxslt")));
	panel.add(displayXslt);
	panel.add(disabled, "skip");
	panel.add(new JSeparator(), "span 2, gapbottom 20");

	plugin.setClientService(clientService);
	plugin.setPanel(panel);
	plugin.initGUI();

	setLayout(new MigLayout("insets 0, fill"));

	JScrollPane sp = new JScrollPane(panel);
	sp.setViewportBorder(null);
	getComponent().add("grow", sp);
}
 
开发者ID:equella,项目名称:Equella,代码行数:45,代码来源:SearchTab.java

示例15: initComponents

import javax.swing.JScrollPane; //导入方法依赖的package包/类
private void initComponents() {
    setLayout(new BorderLayout());

    JPanel contentsPanel = new JPanel(new BorderLayout());
    contentsPanel.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.setOpaque(true);
    contentsPanel.setBorder(BorderFactory.createMatteBorder(0, 15, 15, 15, UIUtils.getProfilerResultsBackground()));

    headerArea = new HTMLTextArea();

    JScrollPane headerAreaScrollPane = new JScrollPane(headerArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                       JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    headerAreaScrollPane.setBorder(BorderFactory.createMatteBorder(0, 0, 15, 0, UIUtils.getProfilerResultsBackground()));
    headerAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    contentsPanel.add(headerAreaScrollPane, BorderLayout.NORTH);

    dataArea = new HTMLTextArea() {
            protected void showURL(URL url) {
                File resolvedFile = null;

                try {
                    resolvedFile = new File(url.toURI());
                } catch (URISyntaxException ex) {
                    ex.printStackTrace();
                }

                final File snapshotFile = resolvedFile;

                if ((snapshotFile != null) && snapshotFile.exists()) {
                    String type = TriggeredTakeSnapshotProfilingPoint.this.getSnapshotType();
                    if (type.equals(TYPE_PROFDATA_KEY) || type.equals(TYPE_HEAPDUMP_KEY)) {
                        ResultsManager.getDefault().openSnapshot(snapshotFile);
                    }
                } else {
                    ProfilerDialogs.displayWarning(
                            Bundle.TriggeredTakeSnapshotProfilingPoint_SnapshotNotAvailableMsg());
                }
            }
        };

    JScrollPane dataAreaScrollPane = new JScrollPane(dataArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                                                     JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    TitledBorder tb = new TitledBorder(Bundle.TriggeredTakeSnapshotProfilingPoint_DataString());
    tb.setTitleFont(Utils.getTitledBorderFont(tb).deriveFont(Font.BOLD));
    tb.setTitleColor(javax.swing.UIManager.getColor("Label.foreground")); // NOI18N
    dataAreaScrollPane.setBorder(tb);
    dataAreaScrollPane.setViewportBorder(BorderFactory.createEmptyBorder());
    dataAreaScrollPane.setBackground(UIUtils.getProfilerResultsBackground());
    contentsPanel.add(dataAreaScrollPane, BorderLayout.CENTER);

    add(contentsPanel, BorderLayout.CENTER);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:53,代码来源:TriggeredTakeSnapshotProfilingPoint.java


注:本文中的javax.swing.JScrollPane.setViewportBorder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。