- 1
- 0
- 约2.03万字
- 约 19页
- 2020-08-01 发布于上海
- 举报
/*主界面
* MainFrame.java
*
* Created on __DATE__, __TIME__
*/
package com.insigma.frame;
import java.io.BufferedReader;
import java.io.;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URLDecoder;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.UIManager;
import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.painter.StandardGradientPainter;
import org.jvnet.substance.theme.SubstanceTerracottaTheme;
import com.insigma.commutil.CardThread;
.insigma.commutil.CommUtil;
import com.insigma.commutil.ImageThread;
/**
*
* @author __USER__
*/
public class MainFrame extends javax.swing.JDialog
{
?/** Creates new form MainFrame */
?public MainFrame(java.awt.Frame parent, boolean modal)
?{
??super(parent, modal);
?initComponents();
?this.setLocationRelativeTo(null);// 居中显示
??try
{
??UIManager.setLookAndFeel(new SubstanceLookAndFeel());
??JFrame.setDefaultLookAndFeelDecorated(true);
? JDialog.setDefaultLookAndFeelDecorated(true);
SubstanceLookAndFeel
?????.setCurrentTheme(new SubstanceTerracottaTheme());
? //SubstanceLookAndFeel.setSkin(new EmeraldDuskSkin());
? //SubstanceLookAndFeel.setCurrentButtonShaper(new
?? //ClassicButtonShaper());
?? //SubstanceLookAndFeel.setCurrentWatermark(new
? //SubstanceBubblesWatermark());
? //SubstanceLookAndFeel.setCurrentBorderPainter(new
? ?// StandardBorderPainter());
? // SubstanceLookAndFeel.setCurrentGradientPainter(new
? //StandardGradientPainter());//水晶蓝
//?? SubstanceLookAndFeel.setCurrentTitlePainter(new
//?? FlatTitlePainter());
??} catch (Exception e)
? {
???System.err.println(Something went wrong!);
?}
?
??try
?{
?? showPerson();
?} catch (IOException e)
? {
? // TODO Auto-generated catch block
??e.printStackTrace();
? }
?}
?
public void showPerson() throws IOException
{
String = URLDecoder.decode(Class.class.getResource(
? "/com/insigma/config/name.txt).getPath());
? = new ();
InputStreamReader inputStreamR
您可能关注的文档
最近下载
- Unit 6 Nurturing nature Developing ideas(天路The sky railway)课件-高二上学期英语外研版选择性必修第一册.pptx VIP
- 建筑 工程图集14J936变形缝建筑构造.pdf VIP
- 金属非金属地下矿山紧急避险系统建设规范.pdf VIP
- 蔬菜配送蔬菜安全保障措施.doc VIP
- 隧道车行、人行横洞施工方案.docx VIP
- 中职课件:心里健康与职业生涯全册课件).pptx VIP
- 人教版七年级下册数学平行线的判定及性质证明题专题训练.docx VIP
- 2026年入党第一季度思想汇报入党积极分子思想汇报(2篇).docx VIP
- Arduino嵌入式系统应用开发全套教学课件.pptx
- DB61_T 2002-2025 窄轨旅游轨道交通施工技术规范.pdf VIP
原创力文档

文档评论(0)