Use external variables inside loop/try/catch java
===

Let's supose we have:

    final JList list = new JList(buffer.toArray());	
I want to declare a JList as that, but I get the buffer variable from a SQL query, so, in a try loop. Is there any way to use a variable declared outside a try/catch inside it?
