javafx-8

Creating 3D-looking 'sunken' label effect in css javafx

前提是你 提交于 2021-02-20 04:40:21
问题 So, I've been trying for a while now to create a really nice-looking 'copyable-label' where, essentially it's a text field, styled like a label, but more intuitive to copy from (if I strip all the border styling/etc/editable from a text field and make it exactly like a label, it simply isn't obvious you can copy from it). One solution I thought might look really nice, is to give the label a slight 'sunken' look in its respective container. something a bit like the input field (the one that

Creating 3D-looking 'sunken' label effect in css javafx

折月煮酒 提交于 2021-02-20 04:39:02
问题 So, I've been trying for a while now to create a really nice-looking 'copyable-label' where, essentially it's a text field, styled like a label, but more intuitive to copy from (if I strip all the border styling/etc/editable from a text field and make it exactly like a label, it simply isn't obvious you can copy from it). One solution I thought might look really nice, is to give the label a slight 'sunken' look in its respective container. something a bit like the input field (the one that

JavaFX mp3 playback became unsupported in Ubuntu 14.10

二次信任 提交于 2021-02-20 04:12:48
问题 When I try to play .mp3 file by using AudioClip with JavaFX 8u40 it says: com.sun.media.jfxmedia.MediaException: Could not create player! which means Java installation do not see my mp3 codec - but all other OS programs see it, even programs on Qt can play mp3. This error happened after upgrading to Ubuntu 14.10 (On 14.04 all was fine, the same programs play all the media formats) libav... all packages are all installed. 来源: https://stackoverflow.com/questions/27195853/javafx-mp3-playback

JavaFX mp3 playback became unsupported in Ubuntu 14.10

白昼怎懂夜的黑 提交于 2021-02-20 04:10:47
问题 When I try to play .mp3 file by using AudioClip with JavaFX 8u40 it says: com.sun.media.jfxmedia.MediaException: Could not create player! which means Java installation do not see my mp3 codec - but all other OS programs see it, even programs on Qt can play mp3. This error happened after upgrading to Ubuntu 14.10 (On 14.04 all was fine, the same programs play all the media formats) libav... all packages are all installed. 来源: https://stackoverflow.com/questions/27195853/javafx-mp3-playback

Keep stage maximised after scene change

血红的双手。 提交于 2021-02-19 03:42:31
问题 When I change scenes on my stage with the following code, my stage changes size. However the button in the top right to maximize/minimize the windows says that the stage is still maximized even though it is clearly not. How am I able to keep the stage maximized when a scene change happens? import javafx.application.Application; import javafx.concurrent.Task; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ScrollPane; import

Unable to control elements of another fxml file through another controller

99封情书 提交于 2021-02-11 12:29:05
问题 I am working on a project which deals with multiple fxml and corresponding controller files. I need to somehow get access to an fxml element defined in say A.fxml from the controller of B.fxml and use it. I am not allowed to show the actual code. However, for this purpose, I have built a simple application with two FXMLs and their corresponding controllers. This application has Button.fxml with ButtonController.java and ProgressIndicator.fxml with ProgressIndicatorController.java Upon

JavaFX 8 - How to set NearClip and FarClip on a Parallel Camera?

六月ゝ 毕业季﹏ 提交于 2021-02-10 22:51:50
问题 I am part of a team building an application that manipulates a visual model using JavaFX 8 3D. We use both a Perspective Camera and a Parallel Camera. The Perspective Camera is working as expected. It is currently working with isEyeAtCameraZero false. This was done for maximum compatibility with the Parallel Camera. The Perspective Camera behaves correctly when camera.setNearClip() and camera.setFarClip() are called. The Parallel Camera does not appear to respond to camera.setNearClip() and

Materialize Icons doesn't work in JavaFX Browser

我的未来我决定 提交于 2021-02-10 18:17:37
问题 I'm trying to show MaterialIcons on my JavaFx WebBrowser using webEngine, but it just shows the description of the icon. Icons doesn't work also on IE and Safari. Does anyone know how to make it readable? 回答1: I also struggle on that one, so for those who are intersted to know, JavaFX is only compatible with MaterialIcons written with numerical character references as James_D stated and not with ligatures format. So insted of writing : <i class="material-icons">add</i> You should write : <i

TableView cell word wrapping

别来无恙 提交于 2021-02-10 12:58:02
问题 I want to create a cell where i can wrap the text this is my solution what i've got so far: tableCol.setCellFactory(param -> { return new TableCell<Data, String>() { @Override protected void updateItem(String item, boolean empty) { super.updateItem(item, empty); if (item == null || empty) { setText(null); setStyle(""); } else { Text text = new Text(item); text.setStyle("-fx-padding: 5px 30px 5px 5px;" + "-fx-text-alignment:justify;"); text.setWrappingWidth(param.getPrefWidth() - 35); System

TableView cell word wrapping

非 Y 不嫁゛ 提交于 2021-02-10 12:57:34
问题 I want to create a cell where i can wrap the text this is my solution what i've got so far: tableCol.setCellFactory(param -> { return new TableCell<Data, String>() { @Override protected void updateItem(String item, boolean empty) { super.updateItem(item, empty); if (item == null || empty) { setText(null); setStyle(""); } else { Text text = new Text(item); text.setStyle("-fx-padding: 5px 30px 5px 5px;" + "-fx-text-alignment:justify;"); text.setWrappingWidth(param.getPrefWidth() - 35); System