diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-09-02 13:05:54 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-09-02 13:05:54 +0200 |
commit | 3fd7de85e18a5aee938de47823fcd96a830b95f7 (patch) | |
tree | b53c6c2dbd356d69e3ff8fb7f904c9b339f6fb04 /java | |
parent | e8d27c8f5a01d3a77ff73cade12008d6411ab52b (diff) | |
download | rsyslog-3fd7de85e18a5aee938de47823fcd96a830b95f7.tar.gz rsyslog-3fd7de85e18a5aee938de47823fcd96a830b95f7.tar.xz rsyslog-3fd7de85e18a5aee938de47823fcd96a830b95f7.zip |
improved syslog traffic generator GUI a (little) bit
Diffstat (limited to 'java')
-rw-r--r-- | java/com/rsyslog/gui/msggen/MsgGen.java | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/java/com/rsyslog/gui/msggen/MsgGen.java b/java/com/rsyslog/gui/msggen/MsgGen.java index 0df22c8d..c57027ff 100644 --- a/java/com/rsyslog/gui/msggen/MsgGen.java +++ b/java/com/rsyslog/gui/msggen/MsgGen.java @@ -76,26 +76,42 @@ public class MsgGen extends Frame { nummsgs = new TextField("1000", 8); numthrds = new TextField("10", 5); Panel pCenter = new Panel(); - pCenter.setLayout(new FlowLayout()); - pCenter.add(new Label("Target Host:")); - pCenter.add(target); - pCenter.add(new Label("Number of Msgs:")); - pCenter.add(nummsgs); - pCenter.add(new Label("Msg:")); - pCenter.add(message); - pCenter.add(new Label("Number of Threads:")); - pCenter.add(numthrds); - + + Panel pnl = new Panel(); + pnl.setLayout(new FlowLayout()); + pnl.add(new Label("Target Host:")); + pnl.add(target); + pCenter.add(pnl); + + pnl = new Panel(); + pnl.setLayout(new FlowLayout()); + pnl.add(new Label("Number of Msgs:")); + pnl.add(nummsgs); + pCenter.add(pnl); + + pnl = new Panel(); + pnl.setLayout(new FlowLayout()); + pnl.add(new Label("Msg:")); + pnl.add(message); + pCenter.add(pnl); + + Panel pSouth = new Panel(); + pSouth.setLayout(new FlowLayout()); + + pnl = new Panel(); + pnl.setLayout(new FlowLayout()); + pnl.add(new Label("Number of Threads:")); + pnl.add(numthrds); + pSouth.add(pnl); + Button b = new Button("Start Test"); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { performTest(); } }); - Panel pSouth = new Panel(); - pSouth.setLayout(new FlowLayout()); pSouth.add(b); - + pack(); setTitle("Syslog Message Generator"); setLayout(new BorderLayout()); |