cloning #2828 (1/16/2012 6:27:27 PM) comp.lang.java.programmer I want to clone the following class so is the following code ok? public class TestImpl implements Serializable { private int id = 0; private java.sql.Timestamp createDateTime; private java.sql.Date... albert
Support Map<String, String> & Map<String, MyString>1219 (10/6/2011 7:05:45 PM) comp.lang.java.programmer The following programs work but I like to combine MyComboBox & MyComboBox2 into one class so that both Map & Map data types are supported in the single combined class. How to do that? public class MyComboBox e... albert
align Swing JLabels and JTextFields vertically with620 (4/21/2011 4:49:01 PM) comp.lang.java.programmer I like to have 3 TitledBorders for 3 different areas of my frame. Each area has its own components - JLabels, JTextField, etc. How to align Swing JLabels and JTextFields vertically in different areas? e.g. for ... albert
Swing: align JLabel, JTextField inside TitledBorder1532 (3/10/2011 5:58:46 PM) comp.lang.java.programmer How to align JLabel & JTextField which are outside a TitledBorder with the JLabel & JTextField which are inside a TitledBorder? My simplified Swing test program is as follows. I use GridBagLayout for more power... albert
clone/copy JLabel & JComboBox objects1020 (3/3/2011 10:04:33 PM) comp.lang.java.programmer Is there a way to clone/copy JLabel & JComboBox objects? Is this the only way to clone/copy JLabel? String s = "test"; JLabel label = new JLabel(s); pane.add(label, c); JLabel label3 = new JLabel(s); pane.add(l... albert
Optimize integer program in speed11109 (6/5/2010 2:50:24 PM) comp.lang.c++.moderated I want to optimize the following small integer program in speed.
My g++ compiler version is 4.3.4 on 32 bit linux.
Please suggest or comment the following ideas.
Some ideas are:
1. use compile flag such as ... albert
use only files but ignore directories on Windows2102 (5/13/2010 8:12:40 PM) comp.lang.python My program plan to use only files but ignore directories on Windows.
I google but do not find some functions like
bool isFile(string)
bool isDirectory(string)
Please help.
... albert
clone/copy JLabel & JComboBox objects1020 (3/3/2011 10:04:33 PM) comp.lang.java.programmer Is there a way to clone/copy JLabel & JComboBox objects? Is this the only way to clone/copy JLabel? String s = "test"; JLabel label = new JLabel(s); pane.add(label, c); JLabel label3 = new JLabel(s); pane.add(l... albertkao3(30)