AWT
Swing
一般功能表是由三種類別所建立:
MenuBar
Menu
MenuItem
java.lang.Object
java.awt.MenuComponent → java.awt.MenuBar
java.awt.MenuComponent → java.awt.MenuItem ─ java.awt.Menu
設計的參數及概念:
監聽事件 (event listener) 架構圖:

本站為個人筆記之用途,主要內容為電腦技術及生活分享。
pi@raspberrypi ~ $ sudo apt-get update & sudo apt-get upgrade
pi@raspberrypi ~ $ sudo apt-get install apache2 php5 libapache2-mod-php5 php5-mysql mariadb-server mariadb-client
pi@raspberrypi ~ $ sudo /etc/apache2/sites-enabled/000-default.conf
DocumentRoot /var/www/
pi@raspberrypi ~ $ sudo systemctl restart apache2.services
pi@raspberrypi ~ $ sudo vim /var/www/index.php
<?php phpinfo(); ?>
pi@raspberrypi ~ $ sudo apt-get update pi@raspberrypi ~ $ sudo apt-get upgrade pi@raspberrypi ~ $ sudo apt-get install git-core
git clone git://git.drogon.net/wiringPi
pi@raspberrypi ~ $ cd wiringPi pi@raspberrypi ~ / wiringPi $ git pull origin
pi@raspberrypi ~ $ cd wiringPi pi@raspberrypi ~ / wiringPi $ sudo ./build
pi@raspberrypi ~ / wiringPi $ gpio -v
gpio version: 2.29 Copyright (c) 2012-2015 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty Raspberry Pi Details: Type: Model B, Revision: 2, Memory: 512MB, Maker: Egoman Device tree is enabled. This Raspberry Pi supports user-level GPIO access. -> See the man-page for more details
pi@raspberrypi ~ / wiringPi $ sudo gpio readall
pi@raspberrypi ~ $ lsusb
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
pi@raspberrypi ~ $ iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry short limit:7 RTS thr:off Fragment thr:off Power Management:off
pi@raspberrypi ~ $ sudo iwlist wlan0 scan
Cell 03 - Address: B8:55:10:E4:30:9C Channel:5 Frequency:2.432 GHz (Channel 5) Quality=65/70 Signal level=-45 dBm Encryption key:on ESSID:"AAA " Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s9 Mb/s; 12 Mb/s; 18 Mb/s Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
pi@raspberrypi:~$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="AAA" psk="123456789"proto=RSNkey_mgmt=WPA-PSKpairwise=CCMP auth_alg=OPEN }
pi@raspberrypi ~ $ sudo ifdown wlan0
pi@raspberrypi ~ $ sudo ifup wlan0
pi@raspberrypi ~ $ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr c8:3a:35:c5:55:76 inet addr:192.168.1.14 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::7469:1703:e2e3:3afa/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:155 errors:0 dropped:0 overruns:0 frame:0 TX packets:105 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:34789 (33.9 KiB) TX bytes:13588 (13.2 KiB)