Mixing AWT and Swing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bergel

    Mixing AWT and Swing

    Hello,

    Does anyone already have some experience in mixing AWT and Swing? Is it
    conceptually doable?
    Does the design of Swing prevent interaction between an AWT and a Swing
    widget?

    Regards,
    Alexandre

  • Raymond DeCampo

    #2
    Re: Mixing AWT and Swing

    bergel wrote:[color=blue]
    > Hello,
    >
    > Does anyone already have some experience in mixing AWT and Swing? Is it
    > conceptually doable?
    > Does the design of Swing prevent interaction between an AWT and a Swing
    > widget?
    >[/color]

    This is officially a "bad idea" as AWT components are heavyweight (i.e.
    native) components and Swing components are lightweight components.

    Of course, it is impossible to use Swing without using parts of the AWT
    library. You just shouldn't use both types of components.

    HTH,
    Ray

    --
    XML is the programmer's duct tape.

    Comment

    • bergel

      #3
      Re: Mixing AWT and Swing

      Thanks very much for you quick answer. Actually, I should have tried
      google before.
      You may not know this, but you can have an optional Parameter in SQL. It took me forever to figure it out. In any case, you can implement an optional


      Best Regards,
      Alexandre

      Comment

      • Alex Molochnikov

        #4
        Re: Mixing AWT and Swing

        A much more substantial coverage of mixing AWT and Swing can be found here:



        "bergel" <bergel@iam.uni be.ch> wrote in message
        news:1110546807 .785311.133010@ o13g2000cwo.goo glegroups.com.. .[color=blue]
        > Thanks very much for you quick answer. Actually, I should have tried
        > google before.
        > http://www.devx.com/tips/Tip/14718
        >
        > Best Regards,
        > Alexandre
        >[/color]


        Comment

        Working...