91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

原來做了個Swing版本的聊天程序,這次用JavaFX替換了幾個主要界面,在這里共享給大家,也不要大家的積分。不過希望各位如果覺得資源不錯,給個好評鼓勵一下。

資源截圖

代碼片段和文件信息

package?com.demo;

/**
?*?@author:?XiaHui
?*?@date:?2016年10月12日?下午12:53:14
?*/
import?javafx.application.Application;
import?javafx.event.EventHandler;
import?javafx.scene.Group;
import?javafx.scene.Scene;
import?javafx.stage.Modality;
import?javafx.stage.Screen;
import?javafx.stage.Stage;
import?javafx.stage.Stagestyle;
import?javafx.stage.WindowEvent;

public?class?HideTaskBar?extends?Application?{

@Override
public?void?start(final?Stage?stage)?throws?Exception?{
stage.initstyle(Stagestyle.UTILITY);
stage.setScene(new?Scene(new?Group()?100?100));
stage.setX(0);
stage.setY(Screen.getPrimary().getBounds().getHeight()?+?100);
stage.show();

Stage?app?=?new?Stage();
app.setScene(new?Scene(new?Group()?300?200));
app.settitle(“JavaFX隱藏任務(wù)欄“);
app.initOwner(stage);
app.initModality(Modality.APPLICATION_MODAL);
app.setOnCloseRequest(new?EventHandler()?{
@Override
public?void?handle(WindowEvent?event)?{
event.consume();
stage.close();
}
});

app.show();
}

public?static?void?main(String[]?args)?{
launch(args);
}
}

評論

共有 條評論