• 大小: 2.42MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-27
  • 语言: 其他
  • 标签: DJ  Native  Swing  实例  

资源简介

DJNativeSwing优化后的实例,超实用

资源截图

代码片段和文件信息

import java.awt.EventQueue;

import javax.swing.ImageIcon;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Color;


import java.awt.EventQueue;

import javax.swing.ImageIcon;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Color;


public class CancelframetitleBorder extends Jframe {
    
    /**
 * 
 */
private JPanel contentPane;
    private JTextArea textArea;
    
    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    CancelframetitleBorder frame = new CancelframetitleBorder();
                    frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }
    
    public CancelframetitleBorder() {
        // 设置背景色
       // getContentPane().setBackground(new Color(240 255 255));
        setUndecorated(true);// 取消窗体修饰效果************
        settitle(“关于进销存管理系统“);// 设置标题栏
        getContentPane().setLayout(null);
        setBounds(0 0 1024 768);
        setLocationRelativeTo(null);// 窗体居中
        setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
        final JLabel label = new JLabel();// 用标签显示logo
      //  label.setIcon(new ImageIcon(getClass().getResource(“logo.png“)));
        label.setBounds(10 27 112 98);
        getContentPane().add(label);
        textArea = new JTextArea();// 用文本域显示系统信息
        textArea.setOpaque(false);// 控件透明
        textArea.setText(“系统:\n  Microsoft Windows Server 2003\n“ +
                “  Standard Editon\n  Service Pack 2\n\n\n“ +
                “软件:进销存管理系统\n版权:力天教育“);
        textArea.setBounds(154 6 187 154);
        getContentPane().add(textArea);// 添加控件到窗体
        JButton button = new JButton(“\u5173\u95ED“);// 创建“关闭”按钮
        button.addActionListener(new ActionListener() {// 添加按钮的事件监听器
            public void actionPerformed(ActionEvent e) {
                do_button_actionPerformed(e);// 调用按钮事件处理方法
            }
        });
        button.setBounds(230 172 90 30);
        getContentPane().add(button);// 添加按钮到窗体
    }
        
    protected void do_button_actionPerformed(ActionEvent e) {
        dispose();// 销毁窗体
    }
    }


 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        607  2013-11-05 10:54  DJNativeSwing\.classpath

     文件        509  2013-11-04 14:56  DJNativeSwing\.project

     文件        728  2013-11-05 10:54  DJNativeSwing\bin\CancelframetitleBorder$1.class

     文件        716  2013-11-05 10:54  DJNativeSwing\bin\CancelframetitleBorder$2.class

     文件       2075  2013-11-05 10:54  DJNativeSwing\bin\CancelframetitleBorder.class

     文件       1354  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$1.class

     文件       3388  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$NWebBrowserListener.class

     文件       2879  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$WebBrowserDecoratorComponentType.class

     文件       1473  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$WebBrowserLocationBar$1.class

     文件       2165  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$WebBrowserLocationBar$2.class

     文件       3513  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$WebBrowserLocationBar.class

     文件       1261  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$WebBrowserStatusBar$1.class

     文件       3069  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator$WebBrowserStatusBar.class

     文件      11948  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\DefaultWebBrowserDecorator.class

     文件       1167  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\JWebBrowser$1.class

     文件       3538  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\JWebBrowser$NativeWebBrowserListener.class

     文件       2149  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\JWebBrowser$NCommandListener.class

     文件        470  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\JWebBrowser$WebBrowserDecoratorFactory.class

     文件      15519  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\components\JWebBrowser.class

     文件       2026  2013-11-05 10:54  DJNativeSwing\bin\chrriis\dj\nativeswing\swtimpl\NSPanelComponent.class

     文件       2477  2013-11-05 10:54  DJNativeSwing\bin\JNIRegistry\CheckDefaultBrowserImpl.class

     文件        307  2013-11-05 10:54  DJNativeSwing\bin\JNIRegistry\ICheckDefaultBrowser.class

     文件       1687  2013-11-05 10:56  DJNativeSwing\bin\JNIRegistry\SetDefaultBrowser.class

     文件        807  2013-11-05 10:54  DJNativeSwing\bin\NoBorderframe$1.class

     文件       2166  2013-11-05 10:54  DJNativeSwing\bin\NoBorderframe.class

     文件       2030  2013-11-04 15:43  DJNativeSwing\bin\NoBorderframe.form

     文件       1038  2013-11-05 14:46  DJNativeSwing\bin\SimpleWebBrowserExample$1.class

     文件       1429  2013-11-05 14:46  DJNativeSwing\bin\SimpleWebBrowserExample.class

     文件      11355  2013-11-04 15:52  DJNativeSwing\hs_err_pid10052.log

     文件      11944  2013-11-04 15:47  DJNativeSwing\hs_err_pid10132.log

............此处省略53个文件信息

评论

共有 条评论