Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
PlayerPanel.java
Package: SIP-applet-phone.zip [view]
Upload User: liulanlin
Upload Date: 2017-12-08
Package Size: 1274k
Code Size: 1k
Category:
VOIP program
Development Platform:
Java
- package gov.nist.applet.phone.media.receiver;
- import java.awt.*;
- import javax.media.*;
- /**
- * GUI classes for the Player.
- */
- public class PlayerPanel extends Panel {
- Component vc, cc;
- public PlayerPanel(Player p) {
- setLayout(new BorderLayout());
- if ((vc = p.getVisualComponent()) != null)
- add("Center", vc);
- if ((cc = p.getControlPanelComponent()) != null)
- add("South", cc);
- }
- public Dimension getPreferredSize() {
- int w = 0, h = 0;
- if (vc != null) {
- Dimension size = vc.getPreferredSize();
- w = size.width;
- h = size.height;
- }
- if (cc != null) {
- Dimension size = cc.getPreferredSize();
- if (w == 0)
- w = size.width;
- h += size.height;
- }
- if (w < 160)
- w = 160;
- return new Dimension(w, h);
- }
- }