⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tvinfo.java

📁 JavaTV Program source code Need to play Windows Media files and streams, mpeg4 video or DVDs in j
💻 JAVA
字号:
/* * Copyright (C) 2005 by Enrico Chiaretti - enrico.chiaretti@gmail.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//* * TvControl.java * * Created on 2 giugno 2005, 12.41 * *//** this is the mainframe user form for the application. * @author enrico chiaretti */import javax.swing.*;import java.awt.*;public class TvInfo extends javax.swing.JFrame{        /*     *	Show infos from selected channel     */    public TvInfo()    {/*    initComponents();        }     private static initComponents() {*/        JFrame infoframe = new JFrame();        JTextArea textbox = new JTextArea();        infoframe.getContentPane().setLayout(new java.awt.FlowLayout());//	    System.out.println(this.getX()+" "+ this.getY());//            System.out.println(textbox.getX()+" "+textbox.getY());//	    System.out.println(getMousePosition().x+"  "+getMousePosition().y);//	    System.out.println(getContentPane().getX()+jLstCanali.getX()+getMousePosition().x +" "+ getContentPane().getY()+jLstCanali.getY()+getMousePosition().y);//	    System.out.println(getMousePosition().x);// +" "+ getContentPane().getY()+jLstCanali.getY()+getMousePosition().y);        textbox.setEditable(false);        textbox.setPreferredSize(new java.awt.Dimension(200, 80));//	    setEditable(false);//	    setAlwaysOnTop(true);//	    setUndecorated(true);                textbox.addMouseListener(new java.awt.event.MouseAdapter()        {            public void mouseClicked(java.awt.event.MouseEvent evt)            {                jtextboxMouseClicked(evt);            }        });        textbox.setText("duma");        System.out.println("X Y "+TvControl.xx+" "+ TvControl.yy);//	    setLocation(TvControl.xy.getX()+TvControl.xx,TvControl.xy.getY()+TvControl.yy);//	    setLocation().setY();//            setBounds(TvControl.xx, TvControl.yy, 150, 100);//            setEnabled(false);        setFocusable(false);        textbox.setEditable(false);        infoframe.getContentPane().add(textbox);        infoframe.pack();    }        private void jtextboxMouseClicked(java.awt.event.MouseEvent evt)    {        //    setEnabled(false);        //    setFocusable(false);        dispose();    }    // private JTextArea textbox;    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -