javafx.scene.control.Label
javafx.scene.text.Text
setFont
- но рабочего примера у меня пока нет и Text не умеет setTextOverrun
String labelText = label.getText();
System.err.println("Rendering(2): " + labelText);
double currentWidth = label.getWidth();
double currentHeight = label.getHeight();
label.prefHeight(currentHeight * 1.5);
label.prefWidth(currentWidth * 1.5);
label.setMaxHeight(currentHeight * 1.5);
label.setMaxWidth(currentWidth * 1.5);
label.setScaleX(0.75);
label.setScaleY(0.75);
Font font = label.getFont();
System.err.println("Setting font size to " + font.getSize() * 1.5);
Font font2 = Font.font(font.getName(), FontWeight.NORMAL, font.getSize() * 1.5);
label.setFont(font2);
label.setFont(font2);
label.setText(labelText);
label.setOnMouseEntered(new EventHandler<MouseEvent>()
для уменьшения .vdi
a .box
wmic_asciii_hack.cmd
wmic.exe /LOCALE:MS_409 /OUTPUT:stdout os get Caption > a.txt
wmic.exe /LOCALE:MS_409 /OUTPUT:stdout os get Caption | more > b.txt
06/11/2019 09:45 AM 102 a.txt
06/11/2019 09:45 AM 57 b.txt
findstr.exe -mi windows a.txt b.txt
b.txt
PATH
непричемHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
C:\Users\Serguei>help start
Starts a separate window to run a specified program or command.
c:\Program Files (x86)\StarDict\stardict.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\stardict.exe\default
@Test(enabled = true)
public void getDir() {
JFileChooser chooser = new JFileChooser();
// chooser.setAcceptAllFileFilterUsed(false);
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.showSaveDialog(null);
String fileLocation = String.valueOf(chooser.getSelectedFile());
File dir = new File(fileLocation);
// readFiles(dir);
}
System.Windows.Forms.TextBox
Click
event