Results 1 to 3 of 3
  1. #1
    Zman3359's Avatar
    Zman3359 is offline Member
    Join Date
    Jan 2011
    Posts
    42
    Rep Power
    0

    Default Lightweight and Heavyweight components

    I just have a really quick question about using Lightweight (most Swing components) and Heavyweight (all AWT components?) together, or in other words using Swing and AWT together. I have heard and read that doing this is bad, I'm not entirely sure why but it seems to have something to do with most Swing components being lightweight and "borrowing" a screen resource from there ancestor. I'm probably wrong though. Anyway I was just wondering if using a JFrame to simply hold a Canvas would cause problems. I'm thinking it wont since a JFrame is a heavyweight component, but I'm not sure because I only recently read/heard mixing AWT and Swing can cause problems. I'm not noticing any but I thought I would get an opinion from someone who knows more about these things than I do.

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

  3. #3
    Zman3359's Avatar
    Zman3359 is offline Member
    Join Date
    Jan 2011
    Posts
    42
    Rep Power
    0

    Default

    Ah, thanks that answers my question. Apparently I was reading an older Java article on it :) Thanks camickr

Similar Threads

  1. Lightweight WSDL2Java tool
    By mm-kk in forum Android
    Replies: 0
    Last Post: 03-20-2011, 03:00 PM
  2. Lightweight WSDL2Java tool
    By mm-kk in forum CLDC and MIDP
    Replies: 0
    Last Post: 03-20-2011, 02:54 PM
  3. Heavyweight Component resizing inside JScrollpane
    By random7 in forum AWT / Swing
    Replies: 2
    Last Post: 07-20-2010, 01:58 PM
  4. Transarent background over heavyweight components
    By cartoon_20 in forum AWT / Swing
    Replies: 3
    Last Post: 05-31-2010, 09:14 PM
  5. Replies: 3
    Last Post: 12-10-2009, 03:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •