javax.swing.JTextField.setScrollOffset()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(197)

本文整理了Java中javax.swing.JTextField.setScrollOffset()方法的一些代码示例,展示了JTextField.setScrollOffset()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.setScrollOffset()方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:setScrollOffset

JTextField.setScrollOffset介绍

暂无

代码示例

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

/**
 * getTableCellEditorComponent, this returns the editor that is used for editing the cell. This
 * is required by the TableCellEditor interface.
 *
 * For additional details, see the Javadocs for the function:
 * TableCellEditor.getTableCellEditorComponent().
 */
@Override
public Component getTableCellEditorComponent(JTable table, Object value,
    boolean isSelected, int row, int column) {
  // Save the supplied value to the DateTimePicker.
  setCellEditorValue(value);
  // If needed, adjust the minimum row height for the table.
  zAdjustTableRowHeightIfNeeded(table);
  // This fixes a bug where the picker text could "move around" during a table resize event.
  dateTimePicker.datePicker.getComponentDateTextField().setScrollOffset(0);
  dateTimePicker.timePicker.getComponentTimeTextField().setScrollOffset(0);
  // Return the DateTimepicker component.
  return dateTimePicker;
}

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

/**
 * getTableCellEditorComponent, this returns the editor that is used for editing the cell. This
 * is required by the TableCellEditor interface.
 *
 * For additional details, see the Javadocs for the function:
 * TableCellEditor.getTableCellEditorComponent().
 */
@Override
public Component getTableCellEditorComponent(JTable table, Object value,
    boolean isSelected, int row, int column) {
  // Save the supplied value to the time picker.
  setCellEditorValue(value);
  // If needed, adjust the minimum row height for the table.
  zAdjustTableRowHeightIfNeeded(table);
  // This fixes a bug where the time text could "move around" during a table resize event.
  timePicker.getComponentTimeTextField().setScrollOffset(0);
  // Return the time picker component.
  return timePicker;
}

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

/**
 * getTableCellEditorComponent, this returns the editor that is used for editing the cell. This
 * is required by the TableCellEditor interface.
 *
 * For additional details, see the Javadocs for the function:
 * TableCellEditor.getTableCellEditorComponent().
 */
@Override
public Component getTableCellEditorComponent(JTable table, Object value,
    boolean isSelected, int row, int column) {
  // Save the supplied value to the date picker.
  setCellEditorValue(value);
  // If needed, adjust the minimum row height for the table.
  zAdjustTableRowHeightIfNeeded(table);
  // This fixes a bug where the date text could "move around" during a table resize event.
  datePicker.getComponentDateTextField().setScrollOffset(0);
  // Return the date picker component.
  return datePicker;
}

代码示例来源:origin: org.xworker/xworker_core

comp.setScrollOffset(scrollOffset);

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

dateTimePicker.datePicker.getComponentDateTextField().setScrollOffset(0);
dateTimePicker.timePicker.getComponentTimeTextField().setScrollOffset(0);

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

timePicker.getComponentTimeTextField().setScrollOffset(0);

代码示例来源:origin: com.github.lgooddatepicker/LGoodDatePicker

datePicker.getComponentDateTextField().setScrollOffset(0);

相关文章

JTextField类方法