Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9282

Re: nested class madness

From Steven Simpson <ss@domain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: nested class madness
Date 2011-10-28 19:17 +0100
Organization Aioe.org NNTP Server
Message-ID <278rn8-4f2.ln1@news.simpsonst.f2s.com> (permalink)
References <5bee3b28-8226-4c21-92d3-f85db5810d3c@l19g2000yqc.googlegroups.com>

Show all headers | View raw


On 28/10/11 18:40, bob wrote:
> Can someone explain why I get this error?
>
> ProgressThread cannot be resolved to a type

You should indicate where the error appears too.

>      @Override
>      protected void onPrepareDialog(int id, Dialog dialog) {
>          switch(id) {
>          case PROGRESS_DIALOG:
>              progressDialog.setProgress(0);
>              progressThread = new ProgressThread(handler);
>              progressThread.start();
>      }

This looks like the whole of onPrepareDialog, but it's missing a brace.  
Reformat the entire file, and you'll see that ProgressThread is nested 
within this function, and is not a direct member of the enclosing class.

-- 
ss at comp dot lancs dot ac dot uk

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

nested class madness bob <bob@coolgroups.com> - 2011-10-28 10:40 -0700
  Re: nested class madness Steven Simpson <ss@domain.invalid> - 2011-10-28 19:17 +0100
    Re: nested class madness bob <bob@coolgroups.com> - 2011-10-28 23:25 -0700
    Re: nested class madness Roedy Green <see_website@mindprod.com.invalid> - 2011-10-29 06:38 -0700
  Re: nested class madness Roedy Green <see_website@mindprod.com.invalid> - 2011-10-28 22:49 -0700

csiph-web