資源簡介
javacc-5.0.rar

代碼片段和文件信息
/*?Copyright?(c)?2006?Sun?Microsystems?Inc.
?*?All?rights?reserved.
?*
?*?Redistribution?and?use?in?source?and?binary?forms?with?or?without
?*?modification?are?permitted?provided?that?the?following?conditions?are?met:
?*
?*?????*?Redistributions?of?source?code?must?retain?the?above?copyright?notice
?*???????this?list?of?conditions?and?the?following?disclaimer.
?*?????*?Redistributions?in?binary?form?must?reproduce?the?above?copyright
?*???????notice?this?list?of?conditions?and?the?following?disclaimer?in?the
?*???????documentation?and/or?other?materials?provided?with?the?distribution.
?*?????*?Neither?the?name?of?the?Sun?Microsystems?Inc.?nor?the?names?of?its
?*???????contributors?may?be?used?to?endorse?or?promote?products?derived?from
?*???????this?software?without?specific?prior?written?permission.
?*
?*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“
?*?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
?*?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE
?*?ARE?DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT?OWNER?OR?CONTRIBUTORS?BE
?*?LIABLE?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR
?*?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF
?*?SUBSTITUTE?GOODS?OR?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS
?*?INTERRUPTION)?HOWEVER?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN
?*?CONTRACT?STRICT?LIABILITY?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)
?*?ARISING?IN?ANY?WAY?OUT?OF?THE?USE?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF
?*?THE?POSSIBILITY?OF?SUCH?DAMAGE.
?*/
import?java.awt.*;
public?class?CalcGUI?extends?frame?implements?CalcInputParserConstants?{
??/**
???*?A?button?object?is?created?for?each?calculator?button.??Since
???*?there?is?going?to?be?only?one?calculator?GUI?these?objects?can
???*?be?static.
???*/
??static?Button?one?=?new?Button(“1“);
??static?Button?two?=?new?Button(“2“);
??static?Button?three?=?new?Button(“3“);
??static?Button?four?=?new?Button(“4“);
??static?Button?five?=?new?Button(“5“);
??static?Button?six?=?new?Button(“6“);
??static?Button?seven?=?new?Button(“7“);
??static?Button?eight?=?new?Button(“8“);
??static?Button?nine?=?new?Button(“9“);
??static?Button?zero?=?new?Button(“0“);
??static?Button?dot?=?new?Button(“.“);
??static?Button?equal?=?new?Button(“=“);
??static?Button?add?=?new?Button(“+“);
??static?Button?sub?=?new?Button(“-“);
??static?Button?mul?=?new?Button(“*“);
??static?Button?div?=?new?Button(“/“);
??static?Button?quit?=?new?Button(“QUIT“);
??/**
???*?The?display?window?with?its?initial?setting.
???*/
??static?Label?display?=?new?Label(“0?“);
??/**
???*?Constructor?that?creates?the?full?GUI.??This?is?called?by?the
???*?main?program?to?create?one?calculator?GUI.
???*/
??public?CalcGUI()?{
????super(“Calculator“);
????GridBagLayout?gb?=?new?GridBagLayout();
????setLayout(gb);
????GridBagConstraints?gbc?=?new?GridBagConstraints();
????display.setFont(new?Font(“TimesRoman“?Font.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????158??2009-09-01?06:27??javacc-5.0\bin\javacc
?????文件????????127??2009-10-21?06:31??javacc-5.0\bin\javacc.bat
?????文件????????157??2009-09-01?06:27??javacc-5.0\bin\jjdoc
?????文件????????106??2009-09-01?06:27??javacc-5.0\bin\jjdoc.bat
?????文件???????4466??2009-09-01?06:27??javacc-5.0\bin\jjrun
?????文件????????158??2009-09-01?06:27??javacc-5.0\bin\jjtree
?????文件????????107??2009-09-01?06:27??javacc-5.0\bin\jjtree.bat
?????文件?????298569??2009-09-01?06:27??javacc-5.0\bin\lib\javacc.jar
?????文件??????20728??2009-09-01?06:27??javacc-5.0\doc\apiroutines.html
?????文件??????10459??2009-09-01?06:27??javacc-5.0\doc\CharStream.html
?????文件???????4669??2009-09-01?06:27??javacc-5.0\doc\commandline.html
?????文件???????4704??2009-09-01?06:27??javacc-5.0\doc\docindex.html
?????文件??????10583??2009-09-01?06:27??javacc-5.0\doc\errorrecovery.html
?????文件???????7017??2009-09-01?06:27??javacc-5.0\doc\features.html
?????文件???????4809??2009-09-01?06:27??javacc-5.0\doc\index.html
?????文件???????3247??2009-09-01?06:27??javacc-5.0\doc\installhelp.html
?????文件??????69493??2009-09-01?06:27??javacc-5.0\doc\JavaCC.html
?????文件??????27973??2009-09-01?06:27??javacc-5.0\doc\JavaCC.txt
?????文件??????57327??2009-09-01?06:27??javacc-5.0\doc\javaccgrm.html
?????文件??????28738??2009-09-01?06:27??javacc-5.0\doc\javaccreleasenotes.html
?????文件???????3759??2009-09-01?06:27??javacc-5.0\doc\JJDoc.html
?????文件???????5142??2009-09-01?06:27??javacc-5.0\doc\jjdocreleasenotes.html
?????文件??????24117??2009-09-01?06:27??javacc-5.0\doc\JJTree.html
?????文件??????20165??2009-09-01?06:27??javacc-5.0\doc\jjtreeintro.html
?????文件???????6834??2009-09-01?06:27??javacc-5.0\doc\jjtreeREADME.html
?????文件??????17844??2009-09-01?06:27??javacc-5.0\doc\jjtreereleasenotes.html
?????文件???????5367??2009-09-01?06:27??javacc-5.0\doc\lexertips.html
?????文件??????28556??2009-09-01?06:27??javacc-5.0\doc\lookahead.html
?????文件???????2549??2009-09-01?06:27??javacc-5.0\doc\mailinglist.html
?????文件??????16941??2009-09-01?06:27??javacc-5.0\doc\simpleREADME.html
............此處省略609個文件信息
評論
共有 條評論