@ -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); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,42 @@ |
|||||||
|
package com.fr.design.write.submit; |
||||||
|
|
||||||
|
import com.fine.theme.utils.FineUIScale; |
||||||
|
import com.fr.design.editor.editor.Editor; |
||||||
|
|
||||||
|
import java.awt.BorderLayout; |
||||||
|
import java.awt.Dimension; |
||||||
|
|
||||||
|
import static com.fine.theme.utils.FineUIScale.scale; |
||||||
|
|
||||||
|
/** |
||||||
|
* 控件面板添加的控件绑定的提交入库事件面板 |
||||||
|
* |
||||||
|
* @author Renekton |
||||||
|
* @since 11.0 |
||||||
|
* Created on 2024/09/13 |
||||||
|
*/ |
||||||
|
public class DBManipulationInWdigetEventNoCellPane extends DBManipulationPane { |
||||||
|
|
||||||
|
public DBManipulationInWdigetEventNoCellPane() { |
||||||
|
super(); |
||||||
|
} |
||||||
|
|
||||||
|
public DBManipulationInWdigetEventNoCellPane(Editor<?>[] vTypes) { |
||||||
|
super(vTypes); |
||||||
|
} |
||||||
|
|
||||||
|
protected Dimension createEditTablePreferredSize() { |
||||||
|
return scale(new Dimension(280, 150)); |
||||||
|
} |
||||||
|
|
||||||
|
protected Dimension getPreferredScrollableViewportSize() { |
||||||
|
return scale(new Dimension(280, 120)); |
||||||
|
} |
||||||
|
protected Dimension createControlBtnPanePreferredSize(){ |
||||||
|
return FineUIScale.scale(new Dimension(110, 20)); |
||||||
|
} |
||||||
|
|
||||||
|
protected String setControlBtnPanePosition(){ |
||||||
|
return BorderLayout.EAST; |
||||||
|
} |
||||||
|
} |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 538 B |
After Width: | Height: | Size: 690 B |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 901 B |
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 650 B |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 515 B |
After Width: | Height: | Size: 587 B |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 1.3 KiB |