MCPcopy Create free account
hub / github.com/XUANXUQAQ/File-Engine / initLabel

Method initLabel

src/main/java/file/engine/frames/SearchBar.java:565–573  ·  view source on GitHub ↗

初始化label @param font 字体 @param width 宽 @param height 高 @param positionY Y坐标值 @param label 需要初始化的label

(Font font, int width, int height, int positionY, JLabel label)

Source from the content-addressed store, hash-verified

563 * @param label 需要初始化的label
564 */
565 private void initLabel(Font font, int width, int height, int positionY, JLabel label) {
566 label.setSize(width, height);
567 label.setLocation(0, positionY);
568 label.setFont(font);
569 label.setForeground(labelFontColor);
570 label.setOpaque(true);
571 label.setBackground(null);
572 label.setFocusable(false);
573 }
574
575 /**
576 * 用于模式切换时实时修改label大小

Callers 1

initGUIMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected