108 Posted Topics
Re: Ouf.. a lot of useless variables a lot of useless temporary variables use a Scanner a lot easier then a InputReader that you re-initialize for nothing Random object is better for integer value And please indent your code correctly, it is a pain After a few cleanup.... I guess it … | |
Re: Please use code tags when posting code [code] my code here [/code] | |
Re: Nobody eve told you that posting in CAPITAL letters is considered shouting and in your case kind of impolite ? And where did you pickup the rule that OS takes 20% of memory ? | |
Re: [QUOTE=quuba;1404296]Experimental look - not tested use getPreferredSize, then setPreferredSize [CODE]private JTextField[] txtAttrTextFields = new JTextField[NrOfTextFields]; { for (int i = 0; i < NrOfTextFields; i++) { // int i can't be final txtAttrTextFields[i] = new JTextField(){ @Override public Dimension getPreferredSize() { // return new Dimension((10+10*Integer.valueOf(getName())),40); return new Dimension(table.getColumn(attrTitle.elementAt(Integer.valueOf(getName())).toString()).getPreferredWidth(), 40); //no … | |
Re: [code] double runningTotal = 0.0; ... public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if(o == buttonIcheck) { ... runningTotal += 0.01; ... } } [/code] | |
Re: please use code tags whn posting your code [ code] code here [ /code] whithout the space in [] [code] code [/code] | |
Re: It is i that you should cout << not num at least inside the loop you can cout << " = " << num after the loop | |
Re: In the ActionListener of the second JComboBox you can [code] fatherCombo.requestFocus(); [/code] |
The End.