TitleBorder and elipse when too long1108 (1/15/2009 9:40:36 AM) comp.lang.java.gui Hi, id' like to show ellipse after truncation in a titled border. The default behaviour is too overwrite the right line until the (right) end of the JPanel. Is there an easy way to do this? ... Sigfried
SymbolTable and string dictionnary1114 (11/26/2008 4:12:40 PM) comp.lang.java.programmer I need to do some lookup on a set of strings with associated data. I've tried HashMap and TreeMap (wich are slower). I'd like to get more performance, so i've read about Ternary Search Tree which are suppose... Sigfried
Slowness of SAX1912 (11/12/2008 8:16:44 AM) comp.lang.java.programmer Hi, using a java profiler, i've realized that SAX is consuming too much time: - endElement + startElement 40 % - *.read 7 % - a few <= 1% So SAX take about 50 % of the time !! Do you know faster XML API ? ... Sigfried
How to get stack frames on JVM crash log ?027 (10/22/2008 7:15:43 AM) comp.lang.java.programmer Hi, most of the time, my crash log have little or no stack frames, like this: Stack: [0x03080000,0x030c0000), sp=0x030bfad8, free space=254k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, ... Sigfried
Warning about serializing enums with name()620 (9/8/2008 2:16:01 PM) comp.lang.java.programmer If you use name() to save an enum reference, you won't be able to refactor the java names of the enum constants. So i would advice to assign an int to each enum constant and serialize that int. What do you t... Sigfried
Best practices for declared exceptions926 (8/28/2008 3:42:12 PM) comp.lang.java.programmer Hi, is there any pros to declare unchecked exceptions ? I'm asking since there is no warning in eclipse for this case. I'm asking for a rational, or better, an example of something which can't be done whitou... Sigfried
Execute main() from a running program1526 (1/16/2009 3:06:59 PM) comp.lang.java.programmer Hi all, We have a typical servlet container app, and also a separate app that uses an OSS library that must be invoked with its main() . We are integrating the main() app into the servlet container app. We exe... robertlazarski(103)
comparing arrays of strings ...126 (1/20/2009 12:44:50 AM) comp.lang.java.programmer Say you have two arrays of strings which you would like to pass to some method for them to be compared line by line (as the Unix diff utility does) and the output should be in some data structure that lets you... lbrtchx63(143)
Eclipse bug ...318 (1/27/2009 1:20:03 PM) comp.lang.java.programmer Hello, I have been developing in Java with Eclipse for ages, and have always found (in all the releases I tried) a quite annoying bug: using the debugger, _sometimes_, inspecting the variables, eclipse reports... bruno.vignola(8)
Modify JTree look and feel727 (1/27/2009 7:04:18 PM) comp.lang.java.programmer Hi, I want to modify the look and feel of a JTree (running on Windows) to the cross platform L&F and am using the following code in my JTree subclass constructor. try { UIManager.setLookAndFeel ( UIManag... ashish.sadanandan(750)
canonical conversion of float/double to strings1234 (2/3/2009 11:02:39 PM) comp.lang.java.programmer java.lang.Double.toString(double x) converts a double value to a decimal string which, when converted back with Double.parseDouble(), must yield the same value (except for NaN, where a different NaN may be obt... pornin1(320)
Reading null terminated strings in Java1024 (2/4/2009 1:21:15 PM) comp.lang.java.programmer G'day I'm attempting to get Java to communicate to an existing application using sockets. My first step was getting a simple java client and echo server setup as a sort of hello world and introduction into jav... markobrien85(3)
java source code flow420 (2/15/2009 5:26:05 PM) comp.lang.java.programmer Is there an equivalent of cflow utility for showing the flow of Java source code? A flowchart diagram would be nice but a textual output like cflow would also suffice. I searched for it online but mostly came ... vk027201(20)
is assignment atomic/thread safe?4318 (2/20/2009 10:06:18 AM) comp.lang.java.programmer I would like to be able to "switch" a handler class in a container class, used in a multi-thread environment. Consider this (typed, not compiled) class Container { Handler handler; void dispatch(Message mes... bugbear(601)