Click here to Skip to main content
15,909,939 members
Home / Discussions / Java
   

Java

 
QuestionShow FireFox cookies with Java [modified] Pin
CodeGust29-Jun-11 8:40
CodeGust29-Jun-11 8:40 
AnswerRe: Show FireFox cookies with Java Pin
Richard MacCutchan29-Jun-11 21:42
mveRichard MacCutchan29-Jun-11 21:42 
AnswerRe: Show FireFox cookies with Java Pin
TorstenH.30-Jun-11 3:51
TorstenH.30-Jun-11 3:51 
QuestionEclipse (Java?) makes try/catch mandatory? Pin
Helfdane27-Jun-11 22:33
Helfdane27-Jun-11 22:33 
AnswerRe: Eclipse (Java?) makes try/catch mandatory? Pin
TorstenH.28-Jun-11 1:56
TorstenH.28-Jun-11 1:56 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
Helfdane28-Jun-11 1:58
Helfdane28-Jun-11 1:58 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
TorstenH.28-Jun-11 2:04
TorstenH.28-Jun-11 2:04 
AnswerRe: Eclipse (Java?) makes try/catch mandatory? Pin
Gerben Jongerius28-Jun-11 6:34
Gerben Jongerius28-Jun-11 6:34 
This is caused by the declaration of the method you are calling. It includes a throws part in the statement. If you don't wish to catch the exception, because you have error handling somewhere else in the application, then you can ignore the exception by adding a throws statement to your method.

private void doSomething() throws IOException
{
 Properties properties = readProperties(chooser.getSelectedFile().getCanonicalPath());
}


Please note this will only move the catch requirement up the call tree, meaning to whereever you are calling the doSomething method from. Which could be usefull when you have some type of generic exception handling in your code.
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
Helfdane28-Jun-11 20:47
Helfdane28-Jun-11 20:47 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
TorstenH.29-Jun-11 2:32
TorstenH.29-Jun-11 2:32 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
Helfdane29-Jun-11 3:25
Helfdane29-Jun-11 3:25 
AnswerRe: Eclipse (Java?) makes try/catch mandatory? Pin
Nagy Vilmos29-Jun-11 3:20
professionalNagy Vilmos29-Jun-11 3:20 
QuestionJava canvas problems [modified] (Solved) Pin
Davíð Þór27-Jun-11 3:13
Davíð Þór27-Jun-11 3:13 
AnswerRe: Java canvas problems Pin
TorstenH.28-Jun-11 2:02
TorstenH.28-Jun-11 2:02 
GeneralRe: Java canvas problems [modified] Pin
Davíð Þór28-Jun-11 5:20
Davíð Þór28-Jun-11 5:20 
GeneralRe: Java canvas problems Pin
TorstenH.28-Jun-11 20:43
TorstenH.28-Jun-11 20:43 
GeneralRe: Java canvas problems Pin
Davíð Þór29-Jun-11 0:39
Davíð Þór29-Jun-11 0:39 
GeneralRe: Java canvas problems Pin
TorstenH.29-Jun-11 2:31
TorstenH.29-Jun-11 2:31 
AnswerRe: Java canvas problems Pin
David Skelly28-Jun-11 6:17
David Skelly28-Jun-11 6:17 
GeneralRe: Java canvas problems Pin
Davíð Þór28-Jun-11 7:05
Davíð Þór28-Jun-11 7:05 
GeneralRe: Java canvas problems Pin
Davíð Þór29-Jun-11 0:36
Davíð Þór29-Jun-11 0:36 
Questionproject Pin
Member 803844226-Jun-11 23:52
Member 803844226-Jun-11 23:52 
AnswerRe: project Pin
Richard MacCutchan27-Jun-11 0:12
mveRichard MacCutchan27-Jun-11 0:12 
GeneralRe: project Pin
Member 803844227-Jun-11 3:13
Member 803844227-Jun-11 3:13 
GeneralRe: project Pin
Nagy Vilmos27-Jun-11 4:07
professionalNagy Vilmos27-Jun-11 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.