grow

Most efficient way to grow an array in Java?

Is there a more efficient way to grow a large array than creating a new one and copying over all the values? Like, concatenating it with a new one? What about having fixed-size arrays stored in another array and reallocate / copy that top-level one? Would that leave the actual values in place? I'm aware of ArrayList, but I need a lot o...

Minimize/Restore with hidden caption bar makes windows forms window grow

I hit this problem in Windows Forms, after using PInvoke of SetWindowLongPtr to remove the caption (WS_CAPTION) from a Sizable window. After that whenever the window is either Minimized or Maximized and then restored to Normal it grows (by the CaptionHeight + border). It appears that Windows Forms' layout mechanism is trying to compens...

How to create column width in CSS that expands with large images yet stays a default size for normally sized content?

I am creating an HTML5 web page with a one column layout. Basically, it is a forum thread with individual posts. I have specified in my CSS file the column to be 600px wide and centered it in the window using margin: 0 auto;. However, some images that are in the individual posts are larger than 600px and spill out of the column. I'd li...

CSS: Parent-Div does not grow with it's children (horizontal)

I would like the parent-div (red) to grow with the green child-div. Now it just stops at the viewport. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html lang="de" xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> <head> <title>simple document</title> <style type="tex...

Is it good to have "Utils" class in your software project?

Usually, during software development, there are all sorts of utility functions I need. Like zipped file, extract zip file, launching Web Browser, get scaled image... What I did is, I place all this utility functions as static function within a single class named "Utils" http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/ycc...

Ext JS textarea grow bug

Hi, we have an application that use some TextArea components in various tabs. The problem is that when we insert text into a TextArea (with grow:true) the TextArea correctly resize itself, but when we change the tab and display a new TextArea, this new TextArea has the size of the TextArea present into the other tab. When we click on ...