PIXNET Logo登入

彥霖 實驗筆記

跳到主文

個人筆記...

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 11月 05 週四 201522:49
  • JavaCV : WebCam Demo

PrtScr%20capture_2.jpg 
 
直接顯示:
import org.bytedeco.javacv.CanvasFrame;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(1,354)

  • 個人分類:[程式語言] Java
▲top
  • 10月 27 週二 201502:03
  • Java 小範例:Java Client 實作 Web 登入, ( Client 與 Server ) 寫入 & 讀取 Cookie

Java 客戶端
import java.io.BufferedReader;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(3,134)

  • 個人分類:[程式語言] Java
▲top
  • 10月 09 週五 201520:26
  • JavaFX : 小小瀏覽器

PrtScr capture  
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(701)

  • 個人分類:[程式語言] Java
▲top
  • 10月 04 週日 201522:46
  • JavaFX 時間操作:每一秒輸出文字

package test;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.stage.Stage;
import javafx.util.Duration;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(1,040)

  • 個人分類:[程式語言] Java
▲top
  • 10月 03 週六 201519:43
  • Java 使用 Webdav 範例 (使用 Sardine)


Sardine 下載 : https://github.com/lookfirst/sardine
Sardine Wiki : https://github.com/lookfirst/sardine/wiki/UsageGuide
Commons IO 的 FileUtils 下載 : http://commons.apache.org/proper/commons-io/download_io.cgi
FileUtils 教學:http://snkcxy.iteye.com/blog/1845862
import com.github.sardine.DavResource;
import com.github.sardine.Sardine;
import com.github.sardine.SardineFactory;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import org.apache.commons.io.FileUtils;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(767)

  • 個人分類:[程式語言] Java
▲top
  • 9月 23 週三 201516:40
  • JavaFX Button Image


http://www.softicons.com/game-icons/super-mario-icons-by-sandro-pereira
https://colorlib.com/wp/free-flat-social-media-icons-sets/
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class Test extends Application {
    public static void main(String[] args) {
        Application.launch(args);
    }
    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("Load Image");
        StackPane sp = new StackPane();
//        Image img = new Image("file:///home/loli/B.jpg");
        Image img = new Image(Test.class.getResourceAsStream("A.png"));
        ImageView imgView = new ImageView(img);
        
        imgView.setFitHeight(32);
        imgView.setFitWidth(32);
        
        Scene scene = new Scene(sp);
        primaryStage.setScene(scene);
        primaryStage.show();
        Button button3 = new Button("Accept", imgView);
        sp.getChildren().add(button3);
        button3.setOnAction((ActionEvent event) -> {
            System.out.println("ok");
        });
    }
}
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(589)

  • 個人分類:[程式語言] Java
▲top
  • 9月 20 週日 201520:24
  • Java FX 入門教學:開新視窗

PrtScr capture說明:按下 [ ~ 開新視窗 ~ ] 按鈕,就會跳出一個新視窗
預覽:
 
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(1) 人氣(2,182)

  • 個人分類:[程式語言] Java
▲top
  • 9月 19 週六 201516:07
  • Java 各種路徑取得 (相對路徑、絕對路徑、URI路徑、ASCII路徑)


import java.io.File;
import java.io.IOException;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(8,378)

  • 個人分類:[程式語言] Java
▲top
  • 9月 18 週五 201502:10
  • Java FX : 播放 mp4 檔案

My Player預覽:
 
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaView;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(2,700)

  • 個人分類:[程式語言] Java
▲top
  • 9月 10 週四 201513:37
  • Tomcat 跨域請求 (CORS)

官方文檔:https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html
<專案路徑>/WEB-INF/web.xml
以下供參考:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1"
    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
    http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<!-- session-config ==================================================== -->
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<!-- error-page ======================================================== -->
<error-page>
<error-code>404</error-code>
<location>/index.html</location>
</error-page>
<!-- filter ============================================================ -->
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>http://localhost:8080</param-value>
<param-value>http://127.0.0.1:8080</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.methods</param-name>
<param-value>GET,POST</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(1,671)

  • 個人分類:[程式語言] Java
▲top
12...10»

實驗人員

黃彥霖
暱稱:
黃彥霖
分類:
數位生活
好友:
累積中
地區:

文章分類

  • [遊戲設計] Unity (100)
  • [程式語言] Java (91)
  • [程式語言] Go (31)
  • [程式語言] C # (15)
  • [程式語言] Python 3 (11)
  • [程式語言] Erlang (2)
  • [程式語言] Python 2 (2)
  • [程式語言] C++ (10)
  • [程式語言] C (8)
  • [程式語言] Node.js (5)
  • [程式語言] JavaScript (8)
  • [程式語言] Java-Android (2)
  • [資料庫] PostgreSQL (28)
  • [資料庫] Hadoop (2)
  • [作業系統] Linux (23)
  • [作業系統] Windows (3)
  • [作業系統] FreeRTOS (1)
  • [單晶片] Arduino (19)
  • [單晶片] ARM-STM32-F4 (15)
  • [單晶片] ARM-STM32-F1 (13)
  • [單晶片] ARM-LPC1114 (1)
  • [單晶片] PIC33FJ128MC804 (4)
  • [硬體設計] 常用IC (1)
  • [硬體設計] 3D 印表機 (3)
  • [硬體設計] 其他 (4)
  • [數學+程式語言] Matlab (4)
  • [數學] 應用數學 (2)
  • [論壇架設] Discuz! (1)
  • [科技新聞] 機器人 (3)
  • [轉碼工具] FFMPEG (1)
  • [檔案格式] 3D 檔案 (1)
  • [程式語言] 程式設計經驗談 (2)
  • [伺服器] GlassFish 筆記 (1)
  • [網頁] HTML 教學 (5)
  • [網頁] CSS 語法 (1)
  • [網頁] JSP / Servlet (7)
  • [網路監控] SmartSniff (1)
  • [虛擬機器] VirtualBox (1)
  • [電腦安全] 開發者 (1)
  • [美術設計] 繪畫 (0)
  • [3D設計] Blender 教學 (2)
  • [3D設計] Blender 外掛設計 (1)
  • [2D設計] GIMP Python (2)
  • [3D設計] Shroud Studio (3)
  • [展示] 作品、比賽、專題 (4)
  • [人類語言] 希伯來語 (1)
  • [金融] 外匯 (1)
  • 未分類文章 (1)

FB 粉絲頁

參觀人氣

  • 本日人氣:
  • 累積人氣: