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
ButtonPanel.java
Package: AdventNetSNMPAPI_4.zip [view]
Upload User: aonuowh
Upload Date: 2021-05-23
Package Size: 35390k
Code Size: 1k
Category:
SNMP
Development Platform:
C/C++
- /* $Id: ButtonPanel.java,v 1.3 2002/09/09 05:46:50 parasuraman Exp $ */
- /*
- * @(#)ButtonPanel.java
- * Copyright (c) 1996-2002 AdventNet, Inc. All Rights Reserved.
- * Please read the associated COPYRIGHTS file for more details.
- */
- import java.awt.*;
- import java.util.*;
- public class ButtonPanel extends Panel {
- Button buttons[] = null;
- public ButtonPanel(String labels[]) {
- if (labels == null) return;
- buttons = new Button[labels.length];
- for (int i =0;i<labels.length;i++) buttons[i] = new Button(labels[i]);
- thisLayout();
- }
- void thisLayout() {
- // setLayout(new GridLayout(1,buttons.length));
- for (int i=0;i<buttons.length;i++) add(buttons[i]);
- }
- public void setFont(Font font) {
- for (int i=0;i<buttons.length;i++) buttons[i].setFont(font);
- }
- }