本文整理了Java中javax.swing.JScrollPane.setRowHeaderView()
方法的一些代码示例,展示了JScrollPane.setRowHeaderView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.setRowHeaderView()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:setRowHeaderView
暂无
代码示例来源:origin: alibaba/druid
scrollPane.setRowHeaderView(header);
scrollPane.setViewportView(table);
JLabel jb = new JLabel("N", SwingConstants.CENTER);
代码示例来源:origin: SonarSource/sonarqube
sourceTab.setRowHeaderView(textLineNumber);
代码示例来源:origin: apache/geode
new TimeAxis(TimeAxis.VERTICAL, sequenceDiagram.getMinTime(), sequenceDiagram.getMaxTime());
timeAxis.setPreferredHeight(drawingPane.getHeight());
scroller.setRowHeaderView(timeAxis);
scroller.setColumnHeaderView(sequenceDiagram.createMemberAxis());
int preferredWidth = (int) (Toolkit.getDefaultToolkit().getScreenSize().getWidth() - 100);
代码示例来源:origin: com.alibaba/druid
scrollPane.setRowHeaderView(header);
scrollPane.setViewportView(table);
JLabel jb = new JLabel("N", SwingConstants.CENTER);
代码示例来源:origin: ron190/jsql-injection
scrollPane.setRowHeaderView(this.fixedTable);
scrollPane.setCorner(ScrollPaneConstants.UPPER_LEFT_CORNER, this.fixedTable.getTableHeader());
代码示例来源:origin: stackoverflow.com
scrollPane.setRowHeaderView(headerTable);
table.setPreferredScrollableViewportSize(table.getPreferredSize());
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
代码示例来源:origin: stackoverflow.com
public static final void main(String[] args){
JFrame f = new JFrame();
f.setSize(new Dimension(400,400));
JList list = new JList(new Object[]{"1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","1.10","1.11"});
JTable table = new JTable(11,10);
JScrollPane sp = new JScrollPane(table);
sp.setRowHeaderView(list);
f.getContentPane().add(sp);
f.setVisible(true);
}
代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing
@Override
public void configureRowHeader(JScrollPane scrollPane) {
scrollPane.setRowHeaderView(rowHeaderTable);
scrollPane.setCorner(JScrollPane.UPPER_LEADING_CORNER,
rowHeaderTable.getTableHeader());
}
代码示例来源:origin: com.synaptix/SynaptixSwing
/**
* Set whether the row header should be displayed
*/
public void setShowRowHeader(boolean showHeader) {
showRowHeader = showHeader;
if (showHeader) {
setRowHeader(rowHeader);
} else {
scrollGrid.setRowHeaderView(null);
}
}
代码示例来源:origin: org.softsmithy.lib/lib-core
@Override
public void configureRowHeader(JScrollPane scrollPane) {
scrollPane.setRowHeaderView(rowHeaderTable);
scrollPane.setCorner(JScrollPane.UPPER_LEADING_CORNER,
rowHeaderTable.getTableHeader());
}
代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing
@Override
public void unconfigureRowHeader(JScrollPane scrollPane) {
scrollPane.setRowHeaderView(null);
scrollPane.setCorner(JScrollPane.UPPER_LEADING_CORNER, null);
}
}
代码示例来源:origin: org.softsmithy.lib/lib-core
@Override
public void unconfigureRowHeader(JScrollPane scrollPane) {
scrollPane.setRowHeaderView(null);
scrollPane.setCorner(JScrollPane.UPPER_LEADING_CORNER, null);
}
}
代码示例来源:origin: com.synaptix/SynaptixSwing
protected void unconfigureEnclosingScrollPane() {
Container p = getParent();
if (p instanceof JViewport) {
Container gp = p.getParent();
if (gp instanceof JScrollPane) {
JScrollPane scrollPane = (JScrollPane) gp;
scrollPane.setColumnHeaderView(null);
scrollPane.setRowHeaderView(null);
}
}
}
代码示例来源:origin: apache/ctakes
private JComponent createEastPanel() {
_piperDocument = new DefaultStyledDocument();
_piperTextFilter = new PiperTextFilter( _piperDocument );
_textPane = new JTextPane( _piperDocument );
_textPane.putClientProperty( "caretWidth", 2 );
_textPane.setCaretColor( Color.MAGENTA );
final JScrollPane scroll = new JScrollPane( _textPane );
final TextLineNumber lineNumber = new TextLineNumber( _textPane, 2 );
scroll.setRowHeaderView( lineNumber );
scroll.setMinimumSize( new Dimension( 100, 10 ) );
return scroll;
}
代码示例来源:origin: stackoverflow.com
JTable table1 = new JTable();
JTable table2 = new JTable();
JScrollPane scrollPane = JScrollPane(table2);
JViewport viewport = new JViewport();
viewport.setView(table1);
viewport.setPreferredSize(table1.getPreferredSize());
scrollPane.setRowHeaderView(viewport);
scrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER,table1.getTableHeader());
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra
public SDocEditor() {
syntaxSupport = SyntaxSupport.getInstance();
// fix background to white (fix bug in nimbus)
editor.setBackground(Color.WHITE);
// if you want line numbering
scrollPane.setRowHeaderView(new Gutter(editor, scrollPane));
}
代码示例来源:origin: org.apache.poi/poi-examples
public void setupScroll(JScrollPane scroll) {
if (scroll == this.scroll)
return;
this.scroll = scroll;
if (scroll == null)
return;
SVRowHeader rowHeader = new SVRowHeader(sheet, this, 0);
scroll.setRowHeaderView(rowHeader);
scroll.setCorner(JScrollPane.UPPER_LEADING_CORNER, headerCell("?"));
}
代码示例来源:origin: com.synaptix/SynaptixSwing
private void configureEnclosingScrollPane() {
Container p = getParent();
if (p instanceof JViewport) {
Container gp = p.getParent();
if (gp instanceof JScrollPane) {
JScrollPane scrollPane = (JScrollPane) gp;
scrollPane.setColumnHeaderView(getGroupWeekColumnHeader());
scrollPane.setRowHeaderView(getGroupWeekRowHeader());
}
}
}
代码示例来源:origin: org.xworker/xworker_core
public static void createRowHeaderView(ActionContext actionContext){
Thing self = (Thing) actionContext.get("self");
JScrollPane parent = (JScrollPane) actionContext.get("parent");
for(Thing child : self.getChilds()){
Component obj = (Component) child.doAction("create", actionContext);
if(obj != null){
parent.setRowHeaderView(obj);
break;
}
}
}
代码示例来源:origin: de.sciss/syntaxpane
@Override
public void deinstall(JEditorPane editor) {
removeMouseListener(mouseListener);
status = Status.DEINSTALLING;
editor.getDocument().removeDocumentListener(this);
editor.removeCaretListener(this);
editor.removePropertyChangeListener(this);
JScrollPane sp = getScrollPane(editor);
if (sp != null) {
sp.setRowHeaderView(null);
}
}
内容来源于网络,如有侵权,请联系作者删除!