lemon
3 months ago
27 changed files with 236 additions and 71 deletions
@ -0,0 +1,22 @@
|
||||
package com.fr.design.gui.iscrollbar; |
||||
|
||||
/** |
||||
* 解决 Windows 下垂直滚动条不显示的临时方案:替换 UI |
||||
* |
||||
* @author lemon |
||||
* @since |
||||
* Created on |
||||
*/ |
||||
public class UIBasicVerticalScrollBar extends UIScrollBar { |
||||
private static final String UI_CLASS_ID = "BasicVerticalScrollBarUI"; |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public UIBasicVerticalScrollBar(int orientation) { |
||||
super(orientation); |
||||
} |
||||
|
||||
public String getUIClassID() { |
||||
return UI_CLASS_ID; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,33 @@
|
||||
package com.fr.design.gui.itable; |
||||
|
||||
import com.fine.theme.light.ui.FineTableHeaderUI; |
||||
|
||||
import javax.swing.AbstractCellEditor; |
||||
import javax.swing.JTable; |
||||
import javax.swing.table.TableCellEditor; |
||||
import javax.swing.table.TableCellRenderer; |
||||
import java.awt.Component; |
||||
|
||||
/** |
||||
* TableCellEditor 应用 {@link FineTableHeaderUI.TableRenderer} |
||||
* |
||||
* @author lemon |
||||
* @since |
||||
* Created on 2024/09/10 |
||||
*/ |
||||
public class FineUITableCellEditor extends AbstractCellEditor implements TableCellEditor, TableCellRenderer { |
||||
@Override |
||||
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public Object getCellEditorValue() { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { |
||||
return new FineTableHeaderUI.TableRenderer().getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); |
||||
} |
||||
} |
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in new issue