📄 aboutdialog.java
字号:
c2.gridwidth = 0;
c2.anchor = 17;
c2.gridheight = 1;
c2.insets = new Insets(0, 0, 0, 0);
GridBagLayout layout = new GridBagLayout();
Panel panel;
frame.add(panel = new Panel(layout), "Center");
Picture picture;
panel.add(picture = new Picture(father_son_gif, (byte)1));
picture.setBackground(m_grey);
layout.setConstraints(picture, c1);
c2.anchor = 11;
panel.add(picture = new Picture(slogan_gif, (byte)1));
layout.setConstraints(picture, c2);
c2.anchor = 17;
Label label;
panel.add(label = new Label(" ", 1));
label.setFont(header_font);
label.setBackground(m_orange);
layout.setConstraints(label, c1);
panel.add(label = new Label(m_product_name, 1));
label.setFont(title_font);
label.setForeground(m_grey);
label.setBackground(m_orange);
layout.setConstraints(label, c2);
panel.add(label = new Label(" ", 0));
label.setBackground(m_grey);
layout.setConstraints(label, c1);
panel.add(label = new Label(m_copyright, 1));
label.setFont(normal_font);
label.setForeground(m_grey);
layout.setConstraints(label, c2);
for(Enumeration e = m_sections.elements(); e.hasMoreElements();)
{
Section section = (Section)e.nextElement();
panel.add(label = new Label(" " + section.getTitle(), 0));
label.setFont(header_font);
label.setBackground(m_grey);
label.setForeground(m_white);
layout.setConstraints(label, c1);
panel.add(label = new Label(" ", 0));
layout.setConstraints(label, c2);
label.setBackground(m_white);
label.setForeground(m_grey);
for(int i = 0; i < section.getNumEntries(); i++)
{
String name = section.getEntryName(i);
String value = section.getEntryValue(i);
panel.add(label = new Label(" " + name + ":", 0));
label.setFont(normal_font);
label.setBackground(m_grey);
label.setForeground(m_white);
layout.setConstraints(label, c1);
panel.add(label = new Label(value, 0));
label.setFont(normal_font);
label.setBackground(m_white);
label.setForeground(m_grey);
layout.setConstraints(label, c2);
}
}
if(m_manifest != null && m_manifest.getNumEntries() > 0)
{
StringBuffer sb = new StringBuffer();
for(int i = 0; i < m_manifest.getNumEntries(); i++)
{
sb.append(m_manifest.getEntryName(i));
sb.append(": ");
sb.append(m_manifest.getEntryValue(i));
sb.append('\n');
}
panel.add(label = new Label(" " + m_manifest.getTitle(), 0));
label.setFont(header_font);
label.setBackground(m_grey);
label.setForeground(m_white);
layout.setConstraints(label, c1);
panel.add(label = new Label(" ", 0));
label.setBackground(m_white);
label.setForeground(m_grey);
layout.setConstraints(label, c2);
panel.add(label = new Label(" ", 0));
label.setFont(header_font);
label.setBackground(m_grey);
label.setForeground(m_white);
layout.setConstraints(label, c1);
TextArea text;
panel.add(text = new TextArea(sb.toString()));
layout.setConstraints(text, c2);
text.setFont(normal_font);
text.setBackground(m_lightgrey);
text.setForeground(m_grey);
text.setEditable(false);
}
panel = new Panel(new FlowLayout());
panel.setBackground(m_orange);
frame.add(panel, "South");
Button button = new Button(" Close ");
button.setBackground(m_grey);
button.setForeground(m_white);
panel.add(button);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
{
System.exit(0);
}
});
frame.setResizable(false);
frame.pack();
frame.setSize(frame.getPreferredSize());
frame.show();
}
catch(Throwable ex)
{
printToStdout();
}
}
private static final long father_son_gif[] = {
0xffd8ffe000104a46L, 0x4946000101010048L, 0x480000ffdb0043L, 0xd090a0b0a080dL, 0xb0a0b0e0e0d0f13L, 0x201513121213271cL, 0x1e17202e2931302eL, 0x292d2c333a4a3e33L, 0x3646372c2d405741L, 0x464c4e525352323eL,
0x5a615a50604a5152L, 0x4fffdb0043010e0eL, 0xe13111326151526L, 0x4f352d354f4f4f4fL, 0x4f4f4f4f4f4f4f4fL, 0x4f4f4f4f4f4f4f4fL, 0x4f4f4f4f4f4f4f4fL, 0x4f4f4f4f4f4f4f4fL, 0x4f4f4f4f4f4f4f4fL, 0x4f4f4f4f4f4fffc0L,
0x11080050007303L, 0x122000211010311L, 0x1ffc4001b000002L, 0x301010100000000L, 1029L, 0x306020107ffc4L, 0x3e100002010303L, 0x106030406090500L, 0x102030004L, 0x1105122131061322L,
0x4151611432712381L, 0xa1b11524529192c1L, 0x2533424353647273L, 0xb26283c2d1e1ffc4L, 0x14010100000000L, 0L, 0xffc40014L, 0x1101000000000000L, 0L, 0xffda000c0301L,
0x2110311003f00L, 0x7370f8b60be61462L, 0xbd721a571d318c7eL, 0xfaa5a6125b230e98L, 0x18aed8f8dce382c0L, 0x71f5a0c039fe93b9L, 0xff0075bf3ad1e952L, 0xa08240eef1ee5dbbL, 0x97a8e4565669826aL, 0xb72083fd73741ef4L,
0xfb4ab85757474c82L, 0xb91bce0641cd0686L, 0x36584861ba424f56L, 0x3903df34b3b512cbL, 0x69a7bde34b1b9999L, 0x2270a38f33bbf0a0L, 0x27d48c6e1114b87fL, 0xa80783ec3dabb31L, 0x7c4d8bdbdf287566L, 0x56505be502833d34L,
0xd15ced9a380236e2L, 0x19d7a37b628cd20fL, 0xea6ffe96ff0081a6L, 0x73f676ce6b643a79L, 0xee675fecbb781fffL, 0x46975ac32d8433L, 0xc3769ddc91a1dc1bL, 0xfd247f3a0ab49c15L, 0xff00b72ffc68ad6bL, 0x8bbb51fe563fca85L,
0xd2776ce013f672feL, 0x5c515ae71796d9f2L, 0xb68c1fdd405e967fL, 0x59b5ff006da99c07L, 0x1a4db9ff0039ff00L, 0x90a53a630177680fL, 0xf86d4c6ddc7e8ab5L, 0xc11cdef1fc540df5L, 0x839b0d771fb51fe6L, 0x6b396cd83060e3c3L,
0xe7f5ad1eae47c0ebL, 0xbe5e28ff009d66edL, 0x948f873c11b73f8dL, 0x153315948c0352aL, 0xb99c77a738fbea50L, 0x3d915523dab80a36L, 0x8c0a996ef9c6dce1L, 0xb3d3d0d5eddd395fL, 0xf03caad170bb998L, 0x4615b18cd061b51dL,
0x1a617b3bf711e19cL, 0x9ceef5aa34db69f4L, 0xfd4e0b996112c28dL, 0x968c31391e95b5beL, 0x88cc5a75385006e1L, 0xef4b0c233f31fe2aL, 0xe3b4bab69d36988L, 0x2cec2382e3bc0777L, 0x7786007bd25b69deL, 0x4b38e4c70ecc0f35L,
0x66b431750c47a052L, 0x7ad24b32c93b4464L, 0x65c92301b807c8d0L, 0x3fb0b991c480b1caL, 0x80c07e755769c8b8L, 0xd3edaf181327310dL, 0xb8f2f5a5a8a4c464L, 0x695d4ed20ed6c629L, 0x8e8cb06a5a4cfa74L, 0xcdf6b1b091595b96L,
0x3e7cfd2814584d74L, 0x846c51d7ce3aeefaL, 0x796e6e375c3a2320L, 0xdbb7e523eea6f369L, 0xb169d034c97d700aL, 0x6328ae09c9e9d690L, 0xceb3dcccd2321763L, 0xe6cd92680fb29b64L, 0x9138910ec5da3c7eL, 0x54e34f688c490b32L,
0x158a41220ef075ceL, 0x6b2f1d94c7a5a31fL, 0xa1a6b65a63b11bacL, 0x263f46a0d6ea5711L, 0x7e86bc7dca64b8dbL, 0x921c1c91ed482ddfL, 0xed6150478533f8d0L, 0xb7814ba436d118ccL, 0x6c44aac7927d2babL, 0x7b7701888dbc5c13L,
0x9a02a7911a5639cdL, 0x4a260b7090aafc3eL, 0x71e66a50532f6ae6L, 0xc80962fec4f142c9L, 0xafeb176c12deccaeL, 0x4f964d326374c477L, 0x5608a7dd97f90aafL, 0xb8d5a493c6f14287L, 0xd32e7f774a0ee04bL, 0xe5b513dec85999b6L,
0x950dd3eeab875041L, 0xe68bb5b58bb810c8L, 0xe642392efc63e9e9L, 0x59eed666daca4489L, 0xce370c30fad00773L, 0x33ddea520fd96da3L, 0xd80e6aab2821986fL, 0x939249c9cd2fd2f5L, 0x45b749639d412e85L, 0x55f1c838a63a6216L,
0x855802c08e40f422L, 0x80d1143dcc811464L, 0xaa5605d2afed2e6L, 0x23f6538c3027a1f3L, 0xaee19046b396f951L, 0x40cd766ca4ba8214L, 0x70f820631c919f4aL, 0x5dda678a1d4d932L, 0xce362e549e41c743L, 0x57e91a4daea96827L,
0x433c255b6b6d7e33L, 0x4e60ec249a95e3b4L, 0xd7e163185cba1ef0L, 0x81e78f2a767b31faL, 0x2c0fc06e9e0de19L, 0xc93e207dfda833e9L, 0xd97658d9e3d46752L, 0xf9807347d9f67efL, 0xced30eb327be621cL, 0x7e3574f7ad6b6ef3L,
0x4d0c823046e23c81L, 0xf3ae757d6ade1ecfL, 0x892c2fd0b48c1723L, 0xc2d8f3fbe8335da9L, 0xb7bdb5d5c5bbdc2cL, 0xd22206ef40dacd9fL, 0x2340c375a8a05025L, 0x240f519ae5acccb2L, 0xf79deee66392ccdcL, 0x9fbe888ac6ed4654L,
0xb367d083417a6a5aL, 0x86d19da4d4ab120bL, 0xbd8320ff0007ff00L, 0x6a506866d7f4a87fL, 0xbc4e3dfad05376aeL, 0x68ca595bbcafe5bL, 0x50d790697690aee5L, 0xb4849f52338a3617L, 0x8a3ca18e38fdc2f1L, 0x40996e755bb977ddL,
0x30b5833c81f31157L, 0xf69e0375a704b619L, 0x6eed1c2fa8e7a51bL, 0x72a8e54155607d07L, 0x5a2c471bc1170b94L, 0x4500fd0507ccac60L, 0xf88bc8e03c6e38adL, 0x5697101018f38784L, 0x9561e78cf06893a4L, 0x5a8d4c5e776d1c80L,
0xe76823693eb5c25dL, 0xda437335b5dbc71cL, 0x919fb290f0769e80L, 0xfad00f7ea628844bL, 0xf3dcb0007b568238L, 0xd4284e3818f4a4b1L, 0xac775a8a4d15c24eL, 0xb060b3a83b47a014L, 0xe0dc10772b7dd8a0L, 0x9e3b6bd8dd5af1f7L,
0x2f89a290e78e8381L, 0x4ff4bd48c8f34379L, 0x35cc60425bb8b851L, 0x97078c823ad64353L, 0x9f519ae2da2b1bd3L, 0x6e18377b87dbc71fL, 0x7d56d7178b7f005dL, 0x49a658d1d4459f94L, 0x75e3d4503fed2471L, 0x27676e5d06080be5L,
0xef581448ae216565L, 0x192b907d0d5dabddL, 0x6a322b4725cca622L, 0x7942dc52cb49f6b6L, 0xd63416c76d70a710L, 0x4dc9e8ac7ad1914fL, 0xabc039b776006381L, 0x54060c339f3ad4f6L, 0x6eeae25b7991cac8L, 0x2220297192050298L,
0xf5cbe540a6ce5c8fL, 0xfa4d4ada233ec1c2L, 0xfeea9401865d848cL, 0x7a570447b724fbd2L, 0xd33cc84e0a907d7cL, 0xaa09a420e1533eb9L, 0xa034157756036e09L, 0xc504750eea25420eL, 0x79fcebd8de6c83e1L, 0x24f4e694dd5bcb1bL,
0xb3097247ad01e756L, 0x1c9753ef59cd7e74L, 0xbbbd4963cfc8011fL, 0x4af2e0ce0e59c114L, 0x220dd76b18eac42eL, 0x4fbd0683b33e0b27L, 0xcc0077c814f1577L, 0xc8618a510d86230L, 0x55f18e38a93acf14L, 0x45849d2838d6a2c4L,
0xbf66cdf10cbb9594L, 0xe33e581f9d0ba34cL, 0x66baef8839860119L, 0xcf99a1241349299eL, 0x460db3a02c78344eL, 0x87038b59260c3c4dL, 0x8c50157bf6d9c2feL, 0x1486e21dae715a73L, 0x19e490b434ba5f7eL, 0xc70554d067e398fcL,
0xac79f5ad6764a701L, 0x6e771001233ef49eL, 0x5d01f00899467da9L, 0x868fa4de5bdc144bL, 0x88b0c33c8341ac4bL, 0xa555c02401e55297L, 0xfc15e79dc459f653L, 0x5283ffd900000000L
};
private static final long slogan_gif[] = {
0x4749463837617701L, 0x1900c60000ffffffL, 0x666666d9d9d98c8cL, 0x8cb2b2b2828282e2L, 0xe2e2cccccc797979L, 0xecececc5c5c5f5f5L, 0xf5999999a9a9a9bcL, 0xbcbcf7f7f7d6dbe8L, 0x9eaac57986b07d8bL, 0xb37a87b3727facb6L,
0xbdd5fcfcf74c5f96L, 0x21a6d0c21721129L, 0x750012693f538fd0L, 0xd6e4bec5db6373a3L, 0x1e337c2a3f842137L, 0x7e283c82162c7b4bL, 0x5b8d5d6ea1152c77L, 0x2e43862239801a31L, 0x7cb5b7bce3e1dd85L, 0x92b7c2c8d9c7ceddL,
0xb9c2d59ca6c45869L, 0x9d8f9cbd394c8c83L, 0x8fb695a1bf8c98bbL, 0x51639b4f5f8fc2c9L, 0xdce7ebefe3e7ef4cL, 0x5e97dfe5eca7b2cbL, 0x7b8ab1e7e5dff7fdL, 0xf76877a7a3accaf1L, 0xf4f5afb8ceefefefL, 0xdbe0e8afb3baeff0L,
0xf4061e6f939ebff7L, 0xf7ff546393bdbdbdL, 0xd4d9e56b7aa8a1acL, 0xc73549896d7da950L, 0x5e90c2c2c1e6e6e6L, 0x3c518e3b4c87ebe9L, 0xe53d52907584aeccL, 0xd1e0334783bdc5d6L, 0xcdd3e0adafb76666L, 0x99072074122a7972L,
0x7b9d6d779b78809fL, 0xf7efefdbdad7ffffL, -1L, -1L, -1L, -1L, -1L, -1L, -1L, 0xffffffffff2c0000L,
0x770119000007L, 0xfe80008283848586L, 0x8788898a8b8c8d8eL, 0x8f90919293949596L, 0x9798970f9b9c9d9eL, 0x9fa0a19f99a4a5a6L, 0xa7a8a9aaabacad00L, 0x10111213b3b4b5b6L, 0xb7b8b9b314151617L, 0xaec0c1c2c3c4c5c6L,
0x8e1618191a1a1bceL, 0xccd0d1d2d3d4d31cL, 0x1d1ec7dadbdcdddeL, 0xdf821f2021222223L, 0xe724e5eaebecedeeL, 0xeb252607bfe0f5f6L, 0xf7f8f9891f272121L, 0x282452a840814205L, 0x89832508a2187170L, 0xa0c287060f4a3cb8L,
0xc2048b160ff469dcL, 0xc8b1a32b711b52b8L, 0x780123868c192248L, 0x8c08518186cb1a21L, 0x54d4b07103874d1cL, 0x2e72f89b48424509L, 0x1d17337a1c4ab4a8L, 0xd1451f6690d82154L, 0x108f0a2336e4e831L, 0xe84689103e7e00b8L,
0xc0f5c2831f40cc4dL, 0x8c17f4a8d9b36837L, 0xc6f071c3500f1ffeL, 0x254a4420f423050aL, 0xc54e9110a822225L, 0x9b2429aa61d4cb8L, 0x30310b15b40e8101L, 0x824891090353641bL, 0x42d9c80c0d18b402L, 0x3822e10692210092L,
0xf45451510946c3a8L, 0x53ab3e6501c712aeL, 0x32986c8849422a0fL, 0x942937c9905950L, 0x85121a9a38e1da61L, 0xc58a27504eaf5eceL, 0xbc79230b365e7b05L, 0x92a3c68815289afcL, 0x8a22435014151d34L, 0x4bd1c0e446ee0e1bL,
0x4c2417ecbcbd7be6L, 0x16721c11041ac092L, 0x29236a241144814aL, 0xc6074150a1191055L, 0x4c6104683f8460c5L, 0x1558b097da020208L, 0x90c07b8c1810e12aL, 0x104a684886133ac2L, 0xe1371fa29294081fL, 0x20f1005782c87083L,
0x115b65b1c20e82bcL, 0x804114b819628316L, 0xa6ca1172601f4e8L, 0x638f02f838000003L, 0xf828c88f421afe42L, 0x92011440c0914cL, 0xe6940913f2a4024L, 0x93013c6908960c4cL, 0xb8249041f6f8e497L, 0x3d3600c097431612L,
0x26925a1a42e58f03L, 0x1c00c09a4f267926L, 0x92032c70279057faL, 0x2827954fbef92300L, 0x53226925a1820670L, 0x289652267a682164L, 0xfa588003500630e4L, 0x9b95f6a8a78f0218L, 0x526895833880e420L, 0x895adae92120ad50L,
0x8304306c020027a1L, 0xe5c0c57c00fcd005L, 0xcb87575c112113cL, 0x71858ea66019c09aL, 0x971a0900a34a0a2bL, 0x27b20848eae3a76cL, 0x1e22ec906446e8e3L, 0x983f22b0679a84acL, 0xf9639b8594aa299dL, 0xc7f638a402cef6c8L,
0xc09ec3f6a96e9f81L, 0x620940b33d16f0ecL, 0xbce9066040b978e2L, 0x5befbd900adb6992L, 0x98f2dba3959c1a42L, 0x6f93003380e4a9e2L, 0x6a0a721fcfe30b4L, 0x1132abc805b6e1cL, 0xe7c6ab175bbd2083L, 0xc4de4f0050b42ecL,
0x980901042ccc7202L, 0x41beb23022c13f0L, 0xe820d5a22b26bf34L, 0xb3ac8001d71239c0L, 0xa2840c09b0c10L, 0x706a2149dadb23bbL, 0xd6ee1ce9b0681a42L, 0x6ccd4b876ba4c360L, 0x69d24d70100a0c0L, 0xd0d4269ce80280baL,
0x5b330140ef4cf6cfL, 0x41bfcd73cd70bb3dL, 0xf4cd82547b80d7e6L, 0xba9ba9a5fc664d68L, 0xdc77579ab6dfa21eL, 0x7c88053e4c70440eL, 0x22d400c6c69419c2L, 0xd50fb7014004131aL, 0x64a0851281a952b0L, 0xc182565a4084024cL,
0x4c48ce094b8afa02L, 0x6d8bb9efea0923d2L, 0xb491d5923b75d27dL, 0xabe92303a8278229L, 0xd810f20d38d871aaL, 0x5eadbb07a7fd26eaL, 0x9c49ee5ec835f4bL, 0x3dbfa74708fbb7d7L, 0x70ce4defe3d521aL, 0xf3d306f708339f84L,
0x48cf76b7d7d62b08L, 0xa6e41a12830d2cf2L, 0x4618f4551e4504L, 0xfccb30b9ae17e8c2L, 0xa4aa00528a46c15L, 0xa31356d8ca873edaL, 0x2189667fe393d366L, 0xf6a8e5d98e4908e8L, 0x54ee82f6a50956cdL, 0x774c121e930a2027L,
0x7225097c3fea12d4L, 0xfae43406388f494fL, 0x9a608f1070281906L, 0x8086116c970d7198L, 0x2c26ad8b5fc5225fL, 0xba12d7ae42ecf050L, 0x6842a19e9e0736bcL, 0x9c20b605059212aL, 0x609ceb74803d12d0L, 0x8009c4a01cd1198bL,
0x81326392e0d895c2L, 0x4d8911000b70800dL, 0x9158bb5181318350L, 0xd39db9b8e6346e0dL, 0xc25bc61254a74a05L, 0x4113f64e00609be1L, 0xa0195ae78452b8dL, 0x6b44a31a0d05c64eL, 0x219291de43d20fc7L, 0xb7401f256e82637cL,
0x24a8a8fe043c3f31L, 0xef47aa23c40e2a50L, 0x12f2cc10846e0c1L, 0xb62e08128bcc045L, 0xe7380710a2e0815aL, 0x7ac0645c94e22912L, 0x582f014cd0708aa8L, 0xd6028c6747422c80L, 0x4c69b2a01b93b4b0L, 0x3872d05c3ab313fbL,
0x7646083dfa0d8551L, 0xcb1210d584c9e501L, 0x2a90da1c5d218e29L, 0x4d3422739b872067L, 0xef1c38ac688aaf6fL, 0x5e3d4c21ab82164L, 0xed35c6432d39bc8L, 0xc680ee0d22291ba8L, 0x410e4e70020ca420L, 0x535c80215781290L,
0x2cd4e0a129188369L, 0x1c840a5e022e9e33L, 0xa45b0f8715bb21cdL, 0x8c6e7e0cc00f2d88L, 0xba0b6d1353283c40L, 0x4ab755be62ce4948L, 0x5823544997682422L, 0x12e09e0168004ef5L, 0x89bb67795376d17aL, 0xd3da42dac99dfd6eL,
0x6e3e23ea46b31943L, 0xf739ad0095120011L, 0xe9f9fe52a3aa0b85L, 0x4882aa38f7310e7fL, 0x78f5ab2160e84afcL, 0x41062da04c9715fdL, 0x222573e8d2a9190fL, 0x4e3865588fe4b4c2L, 0xb5ed4487105254bL, 0x3e9523c52d34d02L,
0xfb249fc83441a8feL, 0x549bf3342492e23aL, 0xc10330d6938c7aecL, 0x5c972a471846f57cL, 0xb51b846403708006L, 0xfc8e001344db1715L, 0x910c26c4e5b4a84dL, 0x2d6acb508227808eL, 0xa2a9b068102b19a5L, 0x8dfe48a760945222L,
0xf396d92df50d6c13L, 0x32c03c1130bbaa61L, 0xb5af580257353148L, 0x29343a6a109e85ebL, 0x2077165db7c9cb00L, 0xbbc52e2491a55d50L, 0x2d35763fac6e9906L, 0x9130198eb1bb3eb2L, 0xd22fd97580ad22e2L, 0x747088219e64bdfL,
0xfada97be67404359L, 0x2834ce08f9931419L, 0xa653722d4a14258L, 0x2875aac8903f15fcL, 0x81d065bc242ff8dL, 0x84835391063558f8L, 0xc218ce7086bbc8dfL, 0xe7bf8c3c6080400L, 0x3b00000000000000L
};
static final Color m_white;
static final Color m_orange = new Color(0xffac1e);
static final Color m_grey = new Color(0x4c4c4c);
static final Color m_lightgrey;
static final String HR = "--------------------------------------------------------------------------------------";
private Vector m_sections;
private String m_product_name;
private String m_copyright;
private Section m_manifest;
static
{
m_white = Color.white;
m_lightgrey = Color.lightGray;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -