05 April 2005 - java_dev (original) (raw)

01:21 pm - penguin001 - Sizing up HSSFCell I'm working on a project in which I'm using org.apache.poi.hssf.usermodel.HSSFWorkBook (and all it's associates such as HSSFCell) in order to output to an excel file.I'm not having any problems getting it to the sheet, but rather I'm very unhappy about the size of the cells. Some of them contain data that's around 50 characters, yet only are wide enough to display 30 of them. Does anybody know how to make a cell (and therefor the column) as wide as it needs to be to display the information in it?x-posted to developers
10:22 pm - zeraphan - Java Programming Problem Let me set up the background.I have a frame, which contains a layeredpanel.There is a panel at the top of the layeredpanel, on a top layer so that it stays above everything else.I have other panels that I want to "scroll" in and out at different times. I want these to be seperate panels that I can move not by dragging, but when certain events happen they move in and out.I tried something like.for (int i = 0; i < 450; i++) panel.setLocation(panel.getX(),450 + i);The end result is what I want, the panel off the screen. However, it happens so fast that it is there, and then gone, and you see nothing happen.Is there a way to do this so that you can see the panel more slowly move out of the way?