KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > debug > QUEUEView


1 // $Id: QUEUEView.java,v 1.1.1.1 2003/09/09 01:24:09 belaban Exp $
2

3 package org.jgroups.debug;
4
5 import javax.swing.*;
6
7 /**
8    Shows the internals of the QUEUE protocol. Imlements QUEUE.Observer, gets called before an event
9    is added to the (internal) up- or down-queue of QUEUE (<em>not</em>Protocol !). This allows
10    to see what's going on in QUEUE. QUEUEView can also query the attributes of QUEUE, e.g. up_vec,
11    dn_vec etc.<br>
12    QUEUEView is implemented as a JPanel, and not as a JFrame, so it can be displayed inside the
13    Debugger's own view.
14    @author Bela Ban, July 23 2000
15 */

16
17
18 public class QUEUEView extends ProtocolSpecificView {
19     
20
21     public QUEUEView() { // must have a public constructor, will be created by means of reflection
22
add(new JButton("QUEUEView: hello world"));
23     }
24
25     
26 }
27
Popular Tags