////////////////////////////////////////////////////////////////////////////// // DX SOURCEFILE // ////////////////////////////////////////////////////////////////////////////// /* * $Header: /home/gda/dxcvs/dx/src/ui++/java/dx/applets/CaptionLabels.java,v 1.1.1.1 1999/03/24 15:17:29 gda Exp $ */ // // import dx.net.*; import java.util.*; import java.awt.*; import java.applet.*; public class CaptionLabels extends Applet implements dx.net.DXLinkHandler { private Hashtable handlers; public CaptionLabels() { super(); this.handlers = null; } public synchronized void init() { Font default_font = new Font("Helvetica", Font.BOLD, 14); Font new_font = null; String prop = this.getParameter("FONT"); if ((prop == null) || ((new_font = Font.decode(prop)) == null)) new_font = default_font; this.setFont(new_font); Color bg = this.parseColor("BACKGROUND"); if (bg!=null) this.setBackground(bg); Color fg = this.parseColor("FOREGROUND"); if (fg!=null) this.setForeground(fg); int size = 0; while (true) { String param_name = "DXLOutput" + size; if (this.getParameter(param_name) == null) break; size++; } if (size == 0) return ; this.setLayout (new GridLayout(size, 1, 0, 0)); this.handlers = new Hashtable(size*2); int i = 0; Label l = null; while (i