我在我的代码中使用 BalloonTip,我需要这个构造函数:
public TablecellBalloonTip(JTable table, JComponent component, int row, int column, BalloonTipStyle style, Orientation alignment, AttachLocation attachLocation, int horizontalOffset, int verticalOffset, boolean useCloseButton) {
super(table, component, table.getCellRect(row, column, true), style, alignment, attachLocation, horizontalOffset, verticalOffset, useCloseButton);
setup(table, row, column);
}
在旧版本中,第二个参数是一个字符串,它可以工作,但现在不行了。然后我需要一个字符串到一个 JComponent 中,但我不知道该怎么做。