Swing JPanel PaintComponent Issue

From: matt (mhm26_at_drexel.edu)
Date: 11/29/04


Date: 28 Nov 2004 17:11:49 -0800

I have a JFrame that I have undecorated and in full screen mode. To
draw on the screen, I add a JPanel and draw on that and go for a
setVisible(true). Then, I do what I need and do a setVisible(false)
and go forward.

Sometimes, though, my application will just hang and not paint
anything - at various `screens' ... I'm not doing any threading stuff
in my code, so I don't think that's it. Any ideas?

Thanks

[ummaycoc@localhost java]$ javac -version
javac 1.5.0
javac: no source files
Usage: javac <options> <source files>
where possible options include:
  -g Generate all debugging info
  -g:none Generate no debugging info
  -g:{lines,vars,source} Generate only some debugging info
  -nowarn Generate no warnings
  -verbose Output messages about what the compiler
is doing
  -deprecation Output source locations where deprecated
APIs are used
  -classpath <path> Specify where to find user class files
  -cp <path> Specify where to find user class files
  -sourcepath <path> Specify where to find input source files
  -bootclasspath <path> Override location of bootstrap class
files
  -extdirs <dirs> Override location of installed extensions
  -endorseddirs <dirs> Override location of endorsed standards
path
  -d <directory> Specify where to place generated class
files
  -encoding <encoding> Specify character encoding used by source
files
  -source <release> Provide source compatibility with
specified release
  -target <release> Generate class files for specific VM
version
  -version Version information
  -help Print a synopsis of standard options
  -X Print a synopsis of nonstandard options
  -J<flag> Pass <flag> directly to the runtime
system

[ummaycoc@localhost java]$ java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

[ummaycoc@localhost java]$ uname -a
Linux localhost 2.6.3-7mdk-i686-up-4GB #1 Wed Mar 17 15:17:23 CET 2004
i686 unknown unknown GNU/Linux



Relevant Pages

  • Re: input stream 101
    ... Do you have previous experience programming in Java? ... Then again, your code mentions Test16. ... aTidy is then of type Test16. ...
    (comp.lang.java.help)
  • Re: Terminal app
    ... It looks to me as it if its meant to be an exact analogue of the C curses library, allowing a Java program to handle screens and forms on a console screen rather than painting it inside an AWT or Swing window. ... I took a look because, if it would do things like emulating a VT-100, xterm or wyse-120 terminal inside a GUI window, I may well have a use for it. ...
    (comp.lang.java.programmer)
  • Re: Java and make
    ... I have a question about using make as the build-utilitiy for Java ... My makefile captures this as: ... javac NetworkPacket.java ... make discovers a cyclic dependency and drops it. ...
    (comp.lang.java.programmer)
  • Re: Windows Programmer is confused?
    ... What I need to know is how the different screens ... When I create a Windows type application, ... So moving to Java has me more than a little confused. ... > For Java I find that I need to create a JDesktop and use JInternalFrame's ...
    (comp.lang.java.programmer)
  • Re: input stream 101
    ... Do you have previous experience programming in Java? ... Then again, your code mentions Test16. ... been doing that method call on an object of type Test16. ...
    (comp.lang.java.help)