PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2895 *** shadow/2895 Mon Jul 30 08:21:22 2001 --- shadow/2895.tmp.25447 Mon Jul 30 08:21:22 2001 *************** *** 0 **** --- 1,69 ---- + +============================================================================+ + | Hard to see buttons in the frame | + +----------------------------------------------------------------------------+ + | Bug #: 2895 Product: JMeter | + | Status: NEW Version: 1.5 | + | Resolution: Platform: PC | + | Severity: Enhancement OS/Version: Windows 9x | + | Priority: Other Component: Main | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + When I start the application it is a little bigger than my screen is. + And when I reduse its size I can�t see the buttons on the controller Web Testing + that says "add" and "delete". + I have tried to solve it the code by change the panel to a scrollpane and then + I can scroll so I can see them, see my example below. + I don�t know if that is a solotion or if you could make the panel smaller in + some other way. + Anyway use it if you want to. + I have add <new code> were I have inserted code. + + in the file: + org.apache.jmeter.gui.MainFrame.java + + public void setMainPanel(Component comp) + { + mainPanel.removeAll(); + mainPanel.add(comp); + mainPanel.setVisible(true); + mainPanel.validate(); + mainPanel.repaint(); + //<new code> + this.validate(); + this.repaint(); + //</new code> + } + + private void addThemAll() + { + this.setJMenuBar(menuBar); + all = new JPanel(new GridBagLayout()); + GridBagConstraints gbc = new GridBagConstraints(); + + gbc.gridx = 0; + gbc.gridy = 0; + gbc.gridheight = 1; + gbc.gridwidth = 1; + gbc.fill = gbc.BOTH; + gbc.weightx = 1; + gbc.weighty = 0; + all.add(toolPanel,gbc.clone()); + + JSplitPane treeAndMain = new JSplitPane + (JSplitPane.HORIZONTAL_SPLIT); + treeAndMain.setLeftComponent(new JScrollPane(treePanel)); + //<new code> + treeAndMain.setRightComponent(new JScrollPane(mainPanel)); + //</new code> + gbc.gridy++; + gbc.weighty = 1; + all.add(treeAndMain,gbc.clone()); + + this.getContentPane().add(all); + } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
