📄 controlpanel.java
字号:
b54.setBackground( Color.lightGray );
add ( b54 );
b55.reshape(140, (23+2)*15+25, 70, 15);
b55.setForeground( Color.magenta );
b55.setBackground( Color.lightGray );
add ( b55 );
b56.reshape(140, (24+2)*15+25, 70, 15);
b56.setForeground( Color.magenta );
b56.setBackground( Color.lightGray );
add ( b56 );
b57.reshape(140, (25+2)*15+25, 70, 15);
b57.setForeground( Color.magenta );
b57.setBackground( Color.lightGray );
add ( b57 );
b58.reshape(140, (26+2)*15+25, 70, 15);
b58.setForeground( Color.magenta );
b58.setBackground( Color.lightGray );
add ( b58 );
b59.reshape(140, (27+2)*15+25, 70, 15);
b59.setForeground( Color.magenta );
b59.setBackground( Color.lightGray );
add ( b59 );
b60.reshape(140, (28+2)*15+25, 70, 15);
b60.setForeground( Color.magenta );
b60.setBackground( Color.lightGray );
add ( b60 );
b61.reshape(140, (29+2)*15+25, 70, 15);
b61.setForeground( Color.magenta );
b61.setBackground( Color.lightGray );
add ( b61 );
b62.reshape(140, (30+2)*15+25, 70, 15);
b62.setForeground( Color.magenta );
b62.setBackground( Color.lightGray );
add ( b62 );
b63.reshape(140, (31+2)*15+25, 70, 15);
b63.setForeground( Color.magenta );
b63.setBackground( Color.lightGray );
add ( b63 );
statusValueLabel.reshape( 345,0+25,100,15 );
add( statusValueLabel );
timeValueLabel.reshape( 345,15+25,100,15 );
add( timeValueLabel );
instructionValueLabel.reshape( 385,45+25,100,15 );
add( instructionValueLabel );
addressValueLabel.reshape(385,60+25,230,15);
add( addressValueLabel );
pageFaultValueLabel.reshape( 385,90+25,100,15 );
add( pageFaultValueLabel );
virtualPageValueLabel.reshape( 395,120+25,200,15 );
add( virtualPageValueLabel );
physicalPageValueLabel.reshape( 395,135+25,200,15 );
add( physicalPageValueLabel );
RValueLabel.reshape( 395,150+25,200,15 );
add( RValueLabel );
MValueLabel.reshape( 395,165+25,200,15 );
add( MValueLabel );
inMemTimeValueLabel.reshape(395,180+25,200,15 );
add( inMemTimeValueLabel );
lastTouchTimeValueLabel.reshape( 395,195+25,200,15 );
add( lastTouchTimeValueLabel );
lowValueLabel.reshape( 395,210+25,230,15 );
add( lowValueLabel );
highValueLabel.reshape( 395,225+25,230,15 );
add( highValueLabel );
Label virtualOneLabel = new Label( "virtual" , Label.CENTER) ;
virtualOneLabel.reshape(0,15+25,70,15);
add(virtualOneLabel);
Label virtualTwoLabel = new Label( "virtual" , Label.CENTER) ;
virtualTwoLabel.reshape(140,15+25,70,15);
add(virtualTwoLabel);
Label physicalOneLabel = new Label( "physical" , Label.CENTER) ;
physicalOneLabel.reshape(70,15+25,70,15);
add(physicalOneLabel);
Label physicalTwoLabel = new Label( "physical" , Label.CENTER) ;
physicalTwoLabel.reshape(210,15+25,70,15);
add(physicalTwoLabel);
Label statusLabel = new Label("status: " , Label.LEFT) ;
statusLabel.reshape(285,0+25,65,15);
add(statusLabel);
Label timeLabel = new Label("time: " , Label.LEFT) ;
timeLabel.reshape(285,15+25,50,15);
add(timeLabel);
Label instructionLabel = new Label("instruction: " , Label.LEFT) ;
instructionLabel.reshape(285,45+25,100,15);
add(instructionLabel);
Label addressLabel = new Label("address: " , Label.LEFT) ;
addressLabel.reshape(285,60+25,85,15);
add(addressLabel);
Label pageFaultLabel = new Label("page fault: " , Label.LEFT) ;
pageFaultLabel.reshape(285,90+25,100,15);
add(pageFaultLabel);
Label virtualPageLabel = new Label("virtual page: " , Label.LEFT) ;
virtualPageLabel.reshape(285,120+25,110,15);
add(virtualPageLabel);
Label physicalPageLabel = new Label("physical page: " , Label.LEFT) ;
physicalPageLabel.reshape(285,135+25,110,15);
add(physicalPageLabel);
Label RLabel = new Label("R: ", Label.LEFT) ;
RLabel.reshape(285,150+25,110,15);
add(RLabel);
Label MLabel = new Label("M: " , Label.LEFT) ;
MLabel.reshape(285,165+25,110,15);
add(MLabel);
Label inMemTimeLabel = new Label("inMemTime: " , Label.LEFT) ;
inMemTimeLabel.reshape(285,180+25,110,15);
add(inMemTimeLabel);
Label lastTouchTimeLabel = new Label("lastTouchTime: " , Label.LEFT) ;
lastTouchTimeLabel.reshape(285,195+25,110,15);
add(lastTouchTimeLabel);
Label lowLabel = new Label("low: " , Label.LEFT) ;
lowLabel.reshape(285,210+25,110,15);
add(lowLabel);
Label highLabel = new Label("high: " , Label.LEFT) ;
highLabel.reshape(285,225+25,110,15);
add(highLabel);
l0.reshape( 70, (2)*15+25, 60, 15 );
l0.setForeground( Color.red );
l0.setFont( new Font( "Courier", 0, 10 ) );
add( l0 );
l1.reshape( 70, (3)*15+25, 60, 15 );
l1.setForeground( Color.red );
l1.setFont( new Font( "Courier", 0, 10 ) );
add( l1 );
l2.reshape( 70, (4)*15+25, 60, 15 );
l2.setForeground( Color.red );
l2.setFont( new Font( "Courier", 0, 10 ) );
add( l2 );
l3.reshape( 70, (5)*15+25, 60, 15 );
l3.setForeground( Color.red );
l3.setFont( new Font( "Courier", 0, 10 ) );
add( l3 );
l4.reshape( 70, (6)*15+25, 60, 15 );
l4.setForeground( Color.red );
l4.setFont( new Font( "Courier", 0, 10 ) );
add( l4 );
l5.reshape( 70, (7)*15+25, 60, 15 );
l5.setForeground( Color.red );
l5.setFont( new Font( "Courier", 0, 10 ) );
add( l5 );
l6.reshape( 70, (8)*15+25, 60, 15 );
l6.setForeground( Color.red );
l6.setFont( new Font( "Courier", 0, 10 ) );
add( l6 );
l7.reshape( 70, (9)*15+25, 60, 15 );
l7.setForeground( Color.red );
l7.setFont( new Font( "Courier", 0, 10 ) );
add( l7 );
l8.reshape( 70, (10)*15+25, 60, 15 );
l8.setForeground( Color.red );
l8.setFont( new Font( "Courier", 0, 10 ) );
add( l8 );
l9.reshape( 70, (11)*15+25, 60, 15 );
l9.setForeground( Color.red );
l9.setFont( new Font( "Courier", 0, 10 ) );
add( l9 );
l10.reshape( 70, (12)*15+25, 60, 15 );
l10.setForeground( Color.red );
l10.setFont( new Font( "Courier", 0, 10 ) );
add( l10 );
l11.reshape( 70, (13)*15+25, 60, 15 );
l11.setForeground( Color.red );
l11.setFont( new Font( "Courier", 0, 10 ) );
add( l11 );
l12.reshape( 70, (14)*15+25, 60, 15 );
l12.setForeground( Color.red );
l12.setFont( new Font( "Courier", 0, 10 ) );
add( l12 );
l13.reshape( 70, (15)*15+25, 60, 15 );
l13.setForeground( Color.red );
l13.setFont( new Font( "Courier", 0, 10 ) );
add( l13 );
l14.reshape( 70, (16)*15+25, 60, 15 );
l14.setForeground( Color.red );
l14.setFont( new Font( "Courier", 0, 10 ) );
add( l14 );
l15.reshape( 70, (17)*15+25, 60, 15 );
l15.setForeground( Color.red );
l15.setFont( new Font( "Courier", 0, 10 ) );
add( l15 );
l16.reshape( 70, (18)*15+25, 60, 15 );
l16.setForeground( Color.red );
l16.setFont( new Font( "Courier", 0, 10 ) );
add( l16 );
l17.reshape( 70, (19)*15+25, 60, 15 );
l17.setForeground( Color.red );
l17.setFont( new Font( "Courier", 0, 10 ) );
add( l17 );
l18.reshape( 70, (20)*15+25, 60, 15 );
l18.setForeground( Color.red );
l18.setFont( new Font( "Courier", 0, 10 ) );
add( l18 );
l19.reshape( 70, (21)*15+25, 60, 15 );
l19.setForeground( Color.red );
l19.setFont( new Font( "Courier", 0, 10 ) );
add( l19 );
l20.reshape( 70, (22)*15+25, 60, 15 );
l20.setForeground( Color.red );
l20.setFont( new Font( "Courier", 0, 10 ) );
add( l20 );
l21.reshape( 70, (23)*15+25, 60, 15 );
l21.setForeground( Color.red );
l21.setFont( new Font( "Courier", 0, 10 ) );
add( l21 );
l22.reshape( 70, (24)*15+25, 60, 15 );
l22.setForeground( Color.red );
l22.setFont( new Font( "Courier", 0, 10 ) );
add( l22 );
l23.reshape( 70, (25)*15+25, 60, 15 );
l23.setForeground( Color.red );
l23.setFont( new Font( "Courier", 0, 10 ) );
add( l23 );
l24.reshape( 70, (26)*15+25, 60, 15 );
l24.setForeground( Color.red );
l24.setFont( new Font( "Courier", 0, 10 ) );
add( l24 );
l25.reshape( 70, (27)*15+25, 60, 15 );
l25.setForeground( Color.red );
l25.setFont( new Font( "Courier", 0, 10 ) );
add( l25 );
l26.reshape( 70, (28)*15+25, 60, 15 );
l26.setForeground( Color.red );
l26.setFont( new Font( "Courier", 0, 10 ) );
add( l26 );
l27.reshape( 70, (29)*15+25, 60, 15 );
l27.setForeground( Color.red );
l27.setFont( new Font( "Courier", 0, 10 ) );
add( l27 );
l28.reshape( 70, (30)*15+25, 60, 15 );
l28.setForeground( Color.red );
l28.setFont( new Font( "Courier", 0, 10 ) );
add( l28 );
l29.reshape( 70, (31)*15+25, 60, 15 );
l29.setForeground( Color.red );
l29.setFont( new Font( "Courier", 0, 10 ) );
add( l29 );
l30.reshape( 70, (32)*15+25, 60, 15 );
l30.setForeground( Color.red );
l30.setFont( new Font( "Courier", 0, 10 ) );
add( l30 );
l31.reshape( 70, (33)*15+25, 60, 15 );
l31.setForeground( Color.red );
l31.setFont( new Font( "Courier", 0, 10 ) );
add( l31 );
l32.reshape( 210, (2)*15+25, 60, 15 );
l32.setForeground( Color.red );
l32.setFont( new Font( "Courier", 0, 10 ) );
add( l32 );
l33.reshape( 210, (3)*15+25, 60, 15 );
l33.setForeground( Color.red );
l33.setFont( new Font( "Courier", 0, 10 ) );
add( l33 );
l34.reshape( 210, (4)*15+25, 60, 15 );
l34.setForeground( Color.red );
l34.setFont( new Font( "Courier", 0, 10 ) );
add( l34 );
l35.reshape( 210, (5)*15+25, 60, 15 );
l35.setForeground( Color.red );
l35.setFont( new Font( "Courier", 0, 10 ) );
add( l35 );
l36.reshape( 210, (6)*15+25, 60, 15 );
l36.setForeground( Color.red );
l36.setFont( new Font( "Courier", 0, 10 ) );
add( l36 );
l37.reshape( 210, (7)*15+25, 60, 15 );
l37.setForeground( Color.red );
l37.setFont( new Font( "Courier", 0, 10 ) );
add( l37 );
l38.reshape( 210, (8)*15+25, 60, 15 );
l38.setForeground( Color.red );
l38.setFont( new Font( "Courier", 0, 10 ) );
add( l38 );
l39.reshape( 210, (9)*15+25, 60, 15 );
l39.setForeground( Color.red );
l39.setFont( new Font( "Courier", 0, 10 ) );
add( l39 );
l40.reshape( 210, (10)*15+25, 60, 15 );
l40.setForeground( Color.red );
l40.setFont( new Font( "Courier", 0, 10 ) );
add( l40 );
l41.reshape( 210, (11)*15+25, 60, 15 );
l41.setForeground( Color.red );
l41.setFont( new Font( "Courier", 0, 10 ) );
add( l41 );
l42.reshape( 210, (12)*15+25, 60, 15 );
l42.setForeground( Color.red );
l42.setFont( new Font( "Courier", 0, 10 ) );
add( l42 );
l43.reshape( 210, (13)*15+25, 60, 15 );
l43.setForeground( Color.red );
l43.setFont( new Font( "Courier", 0, 10 ) );
add( l43 );
l44.reshape( 210, (14)*15+25, 60, 15 );
l44.setForeground( Color.red );
l44.setFont( new Font( "Courier", 0, 10 ) );
add( l44 );
l45.reshape( 210, (15)*15+25, 60, 15 );
l45.setForeground( Color.red );
l45.setFont( new Font( "Courier", 0, 10 ) );
add( l45 );
l46.reshape( 210, (16)*15+25, 60, 15 );
l46.setForeground( Color.red );
l46.setFont( new Font( "Courier", 0, 10 ) );
add( l46 );
l47.reshape( 210, (17)*15+25, 60, 15 );
l47.setForeground( Color.red );
l47.setFont( new Font( "Courier", 0, 10 ) );
add( l47 );
l48.reshape( 210, (18)*15+25, 60, 15 );
l48.setForeground( Color.red );
l48.setFont( new Font( "Courier", 0, 10 ) );
add( l48 );
l49.reshape( 210, (19)*15+25, 60, 15 );
l49.setForeground( Color.red );
l49.setFont( new Font( "Courier", 0, 10 ) );
add( l49 );
l50.reshape( 210, (20)*15+25, 60, 15 );
l50.setForeground( Color.red );
l50.setFont( new Font( "Courier", 0, 10 ) );
add( l50 );
l51.reshape( 210, (21)*15+25, 60, 15 );
l51.setForeground( Color.red );
l51.setFont( new Font( "Courier", 0, 10 ) );
add( l51 );
l52.reshape( 210, (22)*15+25, 60, 15 );
l52.setForeground( Color.red );
l52.setFont( new Font( "Courier", 0, 10 ) );
add( l52 );
l53.reshape( 210, (23)*15+25, 60, 15 );
l53.setForeground( Color.red );
l53.setFont( new Font( "Courier", 0, 10 ) );
add( l53 );
l54.reshape( 210, (24)*15+25, 60, 15 );
l54.setForeground( Color.red );
l54.setFont( new Font( "Courier", 0, 10 ) );
add( l54 );
l55.reshape( 210, (25)*15+25, 60, 15 );
l55.setForeground( Color.red );
l55.setFont( new Font( "Courier", 0, 10 ) );
add( l55 );
l56.reshape( 210, (26)*15+25, 60, 15 );
l56.setForeground( Color.red );
l56.setFont( new Font( "Courier", 0, 10 ) );
add( l56 );
l57.reshape( 210, (27)*15+25, 60, 15 );
l57.setForeground( Color.red );
l57.setFont( new Font( "Courier", 0, 10 ) );
add( l57 );
l58.reshape( 210, (28)*15+25, 60, 15 );
l58.setForeground( Color.red );
l58.setFont( new Font( "Courier", 0, 10 ) );
add( l58 );
l59.reshape( 210, (29)*15+25, 60, 15 );
l59.setForeground( Color.red );
l59.setFont( new Font( "Courier", 0, 10 ) );
add( l59 );
l60.reshape( 210, (30)*15+25, 60, 15 );
l60.setForeground( Color.red );
l60.setFont( new Font( "Courier", 0, 10 ) );
add( l60 );
l61.reshape( 210, (31)*15+25, 60, 15 );
l61.setForeground( Color.red );
l61.setFont( new Font( "Courier", 0, 10 ) );
add( l61 );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -