<Swing Dev> Fwd: TreeModel: err???
Serj
slkom at sao.ru
Tue Aug 7 17:12:52 UTC 2007
class SimpleModel_bad implements TreeModel {
private String root = "root";
private String
colors = "color",
food = "food";
private ArrayList rootList = new ArrayList(),
colorsList = new ArrayList(),
foodList = new ArrayList();
public SimpleModel_bad() {
rootList.add(colors);
rootList.add(food);
colorsList.add("red");
colorsList.add("red"); // eq first string! error || ok if use StringBuffer("red")
foodList.add("pie");
foodList.add("pie");// eq first string! error
// || ok if use StringBuffer("pie") ok
}
http://slkom.mylivepage.ru, http://fviz.narod.ru , http://www.sao.ru/hq/slkom/ , http://www.bukovo.net
Специальная астрофизическая обсерватория (САО)
SAO RAS
7 августа 2007 г.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ok.rar
Type: application/octet-stream
Size: 16208 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20070807/0c110441/ok.rar>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ok.jar
Type: application/octet-stream
Size: 4142 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20070807/0c110441/ok.jar>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bad.rar
Type: application/octet-stream
Size: 16072 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20070807/0c110441/bad.rar>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bad.jar
Type: application/octet-stream
Size: 4213 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20070807/0c110441/bad.jar>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimpleTreeModel.gif
Type: image/gif
Size: 6123 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20070807/0c110441/SimpleTreeModel.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimpleTreeModel_bad.gif
Type: image/gif
Size: 5867 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20070807/0c110441/SimpleTreeModel_bad.gif>
More information about the swing-dev
mailing list