pacage B
mport v .at.Clor;impor jav aw .nt;import va awt. ven .ActionEentimport ja .awt.ee . ionList r;ipor ava in .Imag I on;import avx.swng But on;impot javax swng.Jrame;im rt javx win .L limport avx.swin .JP sswrdie d;impot j vax swi Jetield;pb ic lass exends JFrame{stat d;
uton jb1, jb , 3;
C( )
th s.s e t T i t e("登陆")
h s.setS z ( 00,4 0) ;
hi .setLocation 600 40 ) ;
JLabel jl= w Labl(ew mageIcon("g: /6. jpg ) ) ; /添加背景
Fn f=e on ("Ser f ,nt BLD 4) ;
//设置字体
JetField t=new JTextil ( )
JPasswrdField pnw JPas wrFiel ( ) ;
this. e out nl )
b1=n Buttn("登陆 ) ;
b1 addAc oListene ew Myistene ( ) ) ; //添加监听jb1.setBackrud Color.ray
//设置背景颜色j bew utn("注册") jb2.setBackgrou (olor.ga) ;jt eBoud (9 , 50, , 20) ;
p.s tBound (90, 190 90, 20)
.setBond ( 0 50, 60, ) ;jb2. eBunds (1 0, 25 , 6 20) ;this add(j ) ;
tis. dd(jp) ;t s.ad( b1) ;
his a (jb2) th s. etLay t(ul ;
l etBouds (0, , 60 ,4 0) ;
/ 设置背景大小
thi .add j l) ;
}
lassyLis eer implments Ac inListener{pulic oid actioPe ome (t onvent arg )
.dispos ( ) ;
nw jieian )
public static void ma (String[ ] ag ) {
=ne ;
d setD altCloseOera o (Jre DIPOE_ONCLSE) d.setV sile tre) ;
}
pc kag B;import jaa.awt.Fowayoutimort jav.awt.evnt.ActionE t;import java aw .event At onLi ener
mpor vax.sw in ImageI ;ipo vax. wng.JBu tn;impot ja x ing.JFaeimpr j a x.sn.J Lab e pbl clas jiemian ex eds Fame{
JBtton b 1,jb2,j3 4, 5, b
s at c imian o;
iem an(){this. etis le(true)th is s tit e "图书馆管理系统");t s etS iz(600,400);t s. etoation(3 0,200);
Jaeljl=new Lae new ImaeIco("g:/2. pg"));
/添加背景
b 1=new But on "图书采购" ;
jb 2=ew Button 图书入库" ;jb=new JButto("图书流通");
jb=ew JBut on( 读者管理 );
jbnw JBttn( 统计查询");
b6=e JButton("系统设置");tis ad(b )this.add jb 2 ;
hi .add(jb)
th s.add(jb)
h is. d d(j5 ;
is. d(b ;this.s etLayot(nu l
jl s et Buns 600,400);
//设置背景大小
hi .ad(jl
t s.s tLyout(new FlowL ot );j1. ddc tionLi ener(ew MyListne 1());
jb2.addc t onL s tener(newis tener2() ;jb3. dActinList e new MyLis ener3( );j .adActioni tener(ew MyL tener4( ); jb 5.addc ion s tne(ew yLis te r()); jb 6. ddAc ioL s ener(new yLi tner( );
his.s tVis i e(tru);
c las syLi tne 1 imp lent c tioi e r ublic vid actionerfore(ActionEvet e) {
f(e.getS rce()j1){
new jiem n 1();
o is p o s (
}
}c as yListenr mlemen s AtionL s ene { public void ac inef med(Ac i Even e) f( .eSurc ()=j2){
new jiem an2()
o.dis ps ();
}
c ss MyL stener iplmn s Act onistene { publi vo i acti P frme(tinv ) {
if(e geSouc e()jb3 {
e imia3();
o.d pos );
}
}
}
c ass Myisten mplements t nistene
pub ic void actioPerformd(Ac onEe e) {
if(e.geSourc e )==jb4){
w emian4
o.is p o e()
}
}c las s MyListener5 implem ents Act onLi ener
pub c void actionPerfoed(cti Eve ) {
if( .getSore )==jb5 {
ew j mia );
o dis p o s e()
class Myistenr6 implements A on stene {
pul c vid tioPerormed Ac ionEvnt e)
if(e getSorce()==jb6){
new jimin6 );
.dis p o s e()
}
}
}
pulic stat c void mi(Str n ]ag ) {o=new jiemia();
.setDefau tCloseOperation(JF me IT_ON_COSE)o.s etis ile( u);
ckage B;
mport java.awt.FloLyout;import jaa. wt.event Ac ionvnt;
por java.awt.event.Ac t onis enr;imort java swig.Imag co;ipot avax sng JBut o;
m rt j a sw .Frame
port avax sng.JLabel;
ublic c ass jiemian1 extens JFrme{
Jtton jb3;
stati j mi o
jiem ian 1(){ hi .s eVis ib e true)
this.s eT it ( 图书采购");
t s. eti (600,400)
tis s etLc ation 300 20 );
Lbeljl=ew Jabel( mage con("g /2 jpg" ); //添加背景
JBu on jb 1=n Button("订单查询");
Jutton new JBut o("新书通报");
jb3=e JBtton("返回");
this. (jb 1);
h ad(jb2);
thi .add(j3);this.s etLaout(nul )
l. tBunds(0,0 600,400);
//设置背景大小
thi . d(j );
this. etL ou (ew F loLayout());
th etVis b le true);jb3 ddAc t onLis eer(ne yistene3( );
}
c ass MyListener3 mplemen s At onistenr{
publ c voi at onPerformed(ActionEven e {
i(e.ge ouc e )==jb){
ew j e a();
.is p o s ();
}
pub ic sta c vid main(Stri ] args {
o=new imin ();
o.se sile(t e);
}
SpinServers服务商也不算是老牌的服务商,商家看介绍是是2018年成立的主机品牌,隶属于Majestic Hosting Solutions LLC旗下。商家主要经营独立服务器租用和Hybrid Dedicated服务器等,目前包含的数据中心在美国达拉斯、圣何塞机房,自有硬件和IP资源等,商家还自定义支持用户IP广播到机房。看到SpinServers推出了美国独服的夏季优惠促销活动,最低月...
CloudCone商家我们很多喜欢低价便宜VPS主机的肯定是熟悉的,个人不是特别喜欢他。因为我之前测试过几次,开通的机器IP都是不通的,需要删除且开通好几次才能得到一个可用的IP地址。当然他们家的优势也是有的,就是价格确实便宜,而且还支持删除重新开通,而且机房只有一个洛杉矶MC。实话,如果他们家能多几个机房,保持现在的特点,还是有很多市场的。CloudCone是来自美国的主机销售商,成立于2017...
LOCVPS在农历新年之后新上架了日本大阪机房软银线路VPS主机,基于KVM架构,配备原生IP,适用全场8折优惠码,最低2GB内存套餐优惠后每月仅76元起。LOCVPS是一家成立于2012年的国人VPS服务商,提供中国香港、韩国、美国、日本、新加坡、德国、荷兰、俄罗斯等地区VPS服务器,基于KVM或XEN架构(推荐选择KVM),线路方面均选择国内直连或优化方案,访问延迟低,适合建站或远程办公使用。...