Skip to content

Instantly share code, notes, and snippets.

Executing $\NetBeansProjects\FXErycton\dist\run301274842\FXErycton.jar using platform C:\Program Files\Java\jdk1.7.0_45/bin/java
No controller specified.
file:$/NetBeansProjects/FXErycton/dist/run301274842/FXErycton.jar!/fxerycton/FXErycton.fxml:13
at javafx.fxml.FXMLLoader$Element.processEventHandlerAttributes(FXMLLoader.java:486)
at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:589)
at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2464)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2169)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2061)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2778)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2757)
@KingC100
KingC100 / gist:7989416
Last active December 31, 2015 12:58
画像更新されずにエラーでおちるやつ
/*
*
*
*
* private void OnAction(ActionEvent event) {
* Image img = new Image("C:\\Users\\kiichi\\Documents\\NetBeansProjects\\FXErycton\\src\\fxerycton\\img\\133.png");
* img_Own_1.setImage(img);
* }
*/
@KingC100
KingC100 / gist:7995395
Created December 16, 2013 22:13
@FXML private void OnAction(ActionEvent event) { // OKボタンがクリックされた時の動作 String result = txb_Own_1.getText() + "さん、こんにちは。"; txb_Own_2.setText(result); }
Executing C:\Users\kiichi\Documents\NetBeansProjects\FXErycton\dist\run831460563\FXErycton.jar using platform C:\Program Files\Java\jdk1.7.0_45/bin/java
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package fxerycton;
import fxerycton.AppUtil.LovelyMyAngelAyase;
@KingC100
KingC100 / gist:8023439
Created December 18, 2013 14:43
Ayasetan
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package fxerycton.AppUtil;
import java.awt.Desktop;
import java.io.IOException;
@KingC100
KingC100 / gist:8040866
Created December 19, 2013 15:23
対戦種別切り替え
@FXML
public void SelectedToSingleBattle(ActionEvent event){
txb_Elect_Own_4.setDisable(true);
txb_Elect_Rival_4.setDisable(true);
rb.setBattleType(1);
}
@KingC100
KingC100 / gist:8040876
Created December 19, 2013 15:24
アプリケーション終了
@FXML
public void FormExit(ActionEvent event){
Platform.exit();
}
@KingC100
KingC100 / gist:8040948
Last active March 26, 2021 09:41
JavaFX  background-color
public class FXErycton extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("FXErycton.fxml"));
root.setStyle("-fx-background-color: #F0591E;");
Scene scene = new Scene(root);
stage.setTitle("FXErcycton v1.0.0");
@KingC100
KingC100 / gist:8168927
Created December 29, 2013 09:43
アイコン、タイトル、ウィンドウサイズ固定
public class FXErycton extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("FXErycton.fxml"));
// 背景色
root.setStyle("-fx-background-color: #E9967A;");
Scene scene = new Scene(root);
@Override
public void initialize(URL url, ResourceBundle rb) {
/***
* アイコンの自動更新
*/
txb_Own_1.textProperty().addListener(new ChangeListener<String>() {
@Override
public void changed(ObservableValue<? extends String> observableValue, String s, String s2) {
Image img = new Image((getClass().getResource(rc.GetPath(txb_Own_1.getText()))).toString());
img_Own_1.setImage(img);