Query on swing packages

Hi,
Please tell me the differences between
import sun.awt.image.*;
import java.awt.image.*;
import com.sun.image.*;
Thanks.

I can explain the second part of your question "differance between lightweight and heavyweight". Lightweight components are components that have no dependance on native GUI elements from the underlying Operating System, they are drawn directly by pure java drawing routines. On the other hand heavyweight components are dependant on an OS native "peer" object for some functionality. This makes heavyweight objects have a higher memory footprint.

Similar Messages

  • Swing package

    I just downloaded JDK1.1.8. I tried using some methods from the swing package, so I can display output in a simple GUI.
    When I compiled the program, I got the following error:
    Welcome2.java:3: Package javax.swing not found in
    import.
    import javax.swing.*;
    ^
    1 error
    I'm not having this problem with other packages I try to import. Does anyone know why the compiler won't let me import the swing package?
    Thanks,
    RM

    I'm sorry, but that did not work. Swing doesn't come with 1.1.8.
    Did you download another component that claimed to be swing and install it? Did you adjust your classpath to include it? Until you do that then nothing you do in your java program will allow you to use it.

  • Regarding swing package

    hi Java Friends
    iam Easu Babu.
    how to write Actions for buttons using SWING package
    regards.,
    Easu

    [http://java.sun.com/docs/books/tutorial/uiswing/components/button.html]

  • Can i save a query in one package and then can i move it into another .....

    can i (in bw 3.5)save a query in one package and then, can i move it into another package? if yes what is the procedure? if no, why? if yes , after moving can i see that query in one package or both? plzzzzzzzz its urgent....

    Hi Neeraja,
    Yes, you can save a query in one package and then move it into another package and transport the query with new package.
    There are two ways...
    1. You can change  the package assignment from one to another with the same request and transport the objects with request assigned to the new package.
    2. You can create a new request and assign the new request to new package and transport the new request with new package assignment.
    For first one, follow below process...
    Changing the assignment:
           1.      Choose  Package in the toolbar of screen area Collected Objects in RSA1 --> Transport Connection.
    The Select Objects for Changing package dialog box appears.
           2.      Select the objects whose package assignment you want to change.
    This procedure is especially useful for changing all collected objects, or a large number of them. For this reason, all indicators are set by default. Remove the indicators for individual objects where necessary.
    Note: You can only use  Details to display the details for an individual object when this is the only object that is selected.
           3.      Choose  Copy. The Change Object Directory Entry dialog box appears.
           4.      Enter the new package.
    For second one, you need to add the query in the transport organiser and assign new request and transport package and then go for transport. But this will create two requests on the same query. So, don't go for this. First step is preferable.
    Hope this helps u...
    Regards,
    KK.

  • Can i save a query in one package and later can i move it into another ....

    can i save a query in one package and then can i move it into another package? if yes what is the procedure? if no, why? if yes , after moving can i see that query in one package or both? plzzzzzzzz  its urgent....

    I'm not sure about Queries, but most (all) development objects can be reassigned. This is done in transaction SE09. Press the icon with the hammer. On next screen mark node which says something like:
    change object entry, or something like it.
    and press execute button.
    On the next screen enter the object R3TR and object name for Queries. In the input field fill in the name of the Query and press F8. On the final screen you can change the package assignment.
    You could possibly also do this via menu of the query screen itself. Must be somewhere in the menu (object entry, object directory, or....).
    If you have done this, you will see the query no longer in the old package, but only in the new one.
    Good luck.

  • Missing classes from the javax.swing package?

    Can anyone throw any light on what appears to be a missing class from the javax.swing package?
    When CelsiusConverter.java from The Swing Tutorial (code fragment shown below) is compiled the JFrame class can't be found.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CelsiusConverter implements ActionListener {
        JFrame converterFrame;Despite the package javax.swing being imported, the compiler does not seem to be be able to find the JFrame class.
    CelsiusConverter.java:14: Class JFrame not found in type declaration.
        JFrame converterFrame;To attempt to solve this issue all the files in jdk1.5.0_02\lib were added to CLASSPATH.
    CLASSPATH was set to C:\Program Files\Java\jdk1.5.0_02\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_02\lib\htmlconverter.jar;C:\Program Files\Java\jdk1.5.0_02\lib\jconsole.jar;C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jdk1.5.0_02\lib\ir.idl;C:\Program Files\Java\jdk1.5.0_02\lib\jawt.lib;C:\Program Files\Java\jdk1.5.0_02\lib\jvm.lib;C:\Program Files\Java\jdk1.5.0_02\lib\orb.idl;C:\Program Files\Java\jdk1.5.0_02\demo\jfc\SwingApplet\SwingApplet.jar;.;c:\CoreJavaBook

    This is extremely strange... If you're sure it's not a problem in your code or with your classpath, the only other thing I can think to suggest is re-downloading / installing java

  • Is the Swing Package in Java obsolete?

    hey guys,
    i'm just a newbie java enthusiast here and all the while i've been learning to manipulate data in minimal ways using the Swing package especially the JOptionPane class.
    is this class/package already obsolete? a person here in school told me so? well?

    Your friend probably confused it with AWT, -which was used for doing gui stuff back in the dark ages before Swing came along.
    Nowdays people use Swing instead of AWT for doing gui stuff in Java, so awt could in some ways be considered obsolete (except of course that Swing uses quite a bit of awt stuff behind the scenes!)
    If you dont use Swing what will you use for gui?

  • 1.Swing package in J2ME ? 2. Profile choice ?

    Is Swing package integrated in J2ME ?
    I actually search for tools in order to develop a java application for Sharp Zaurus.
    I heared talk about AWT which is completely integrated in Personal Profile but concerning Swing I don't know.
    What is the best choice between Personal Profile or PersonalJava to develop on such a device ?
    Thank You
    --::(Excuse my english...)::--

    Swiming is too heavy for J2ME, that's why so limited support for graphic/UI in J2ME/MIDP. However, you may have a look at LWT from Motorola which is a extension for MIDP to add more UI element such as check box etc. But I am not sure if it could be deployed in other non-MOto mobile like Nokia.
    use the lightweight AWT for PersonalJava environment if you have to finish something urgent. Though PersonalJava will be merged into PP in J2ME in the future, but it's much more mature than PP at this time. As well as too few mobileset support PP.
    Jeode(Insignia's implementation of PersonalJava) is the official partner for PPC device as initial installed on HP/Compaq iPAQ, Dell Axim as well as preinstalled on Zaurus from Sharp.
    best choice, at this time to me

  • Can developer change query from one package to other, or only basis guy....

    can developer change query from one package to other, or only basis guy....will do that?

    In the development system, a developer normally has authorizations to do that. 
    Mathew.

  • Download swing package and plugin?

    Hi everybody!
    I have a question. Is there anyone who knows a nice place for downloading the javax.swing package only? Or maybe a place for finding nice swing plugins?
    Best regards and Thanks!
    jenny

    If you use Java 2 or higher, you do not need download Swing separately, because it's already included in Java 2.

  • Query to find package creation, modify

    Hi,
    Does anybody have the query to find the package Creation, Deletion and modification record?
    I do not want the Audit or Staus messages to check.
    Need a proper report on Packages created, modified etc..
    System Security analyst at CapG

    Hi,
    Does anybody have the query to find the package Creation, Deletion and modification record?
    I do not want the Audit or Staus messages to check.
    Need a proper report on Packages created, modified etc..
    System Security analyst at CapG
    Any updates?? Atleaset few suggestions..
    System Security analyst at CapG
    Ok, look at the status message. They will be exactly the same as any query and the status message query already exist. Why re-event the wheel?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Query on Idoc Packaging with PI7.1 EHP1

    HI PI Experts,
    I have a scenario where batch run triggers the 100's of Idocs in R3 in few milli seconds, which means all Idocs are triggered in one go From R3.
    Do we still need to set Check box for Collect Idocs in Partner Profile in R3 for Idoc Packaging ?
    I want to make out the difference in 2 configs for Idoc Packaging where
    A)  All Idocs are sent via Report run of RSEOUT00 at a go after collection.
    B) All Idocs are triggered at same time via Batch Run at same time.
    Assumption:
    PI is configured to use Sender Idoc Adapter with Idoc Package Size of 10.
    OR
    I frame my Query in other way"
    What does Collect Idoc and running Report RSEOUT00 achieve to make sure that Multiple IDOC Nodes come into 1 XML message? OR Its only PI Sender Idoc Adpater take care of it when multiple Idocs of same type comes through PI?
    Please reply .
    Regards,
    Anurag

    Hi Anurag,
    In the sender IDOC adapter if the packaging option is not activated, then the IDoc packages get split into single PI messages, one PI message per IDoc. IDoc sender functionality is enhanced to preserve and process IDoc packages without splitting the IDoc package into individual PI messages. I.e. single PI message contains multiple IDocs including control records. Where as running the report RSEOUT00 will just send all the IDOCs that are in waiting state to their respective destinations.
    For the sender IDoc adapter to be able to process packages, it should receive the IDocs in a group. I.e. in the sender partner profile the packaging option has to be activated. Though you've activated the packaging option in the sender partner profile, If you dont check collect option in sendet IDOC adapter then the IDOCs get splitted into individual PI messages.
    Regards,
    Priyanka

  • Swing - packaging configuration files

    Hi All,
    I need some advice in packaging swing applications,
    our requirement is such that some params keep changing frequently(not only at deploy time) hence all this params in config file.
    Iam using Netbeans to build the swing app, however Netbeans automatically package the config files under the /classes directory and builds the .jar file when built.
    is there some way we can place the config files outside the .jar file??
    coz, it is cumbersome to change params each time need to unpack jar file and repack it.
    I would greatly appreciate any help.
    thanks a lot

    So my solution is not what you want -
    http://forum.java.sun.com/thread.jspa?threadID=769146&messageID=4383774#4383774

  • Com.sun.java.swing package not found

    All my other programs compile fine if they're not using that package

    yea...wrong import....
    use
    import javax.swing.*;notice the X

  • Pacman query - find a package containing a file [SOLVED 4 years ago]

    I spent 10 min in google trying to find out which arch package has the oggdec program.  I finally found it (vorbis-tools), but I was unable to do it with pacman.  I happened across this page for another distro and luckily, the arch package was named the same as the Debian package.
    How can I use pacman to find the vorbis-tool package knowing that I want to search for oggdec?  I read the pacman wiki article but didn't find what I'm looking for.
    Last edited by graysky (2013-11-22 10:49:51)

    graysky wrote:Same solution today as 4 years ago.
    Not exactly.
    Allan wrote:There is no feature in pacman to do that.  Install "pkgtools" and use the pkgfile script.
    dagelf wrote:
    # pacman -Ss pkg   
    ... Find the package. It's not called pkgfile.
    I think dagelf meant it's not called pkgtools.
    $ sudo pacman -S pkgtools
    error: target not found: pkgtools
    They are in the AUR now https://aur.archlinux.org/packages/pkgtools/ and pkgfile is a separate package.

Maybe you are looking for

  • How do i delete the tab at the top of my website? (i.web 1.1.2)

    this thread was archived, but never resolved, im continuing the conversation, thank you! ekc111 i have created my pages but each one of them has a tab along the top that i would like to delete. (it leftover from the gazzette template i started with.)

  • Screen navigation in alv

    Hi all, Ihave a requirement where i am deleting entries from the database table from report(alv grid output) output by selecting required rows Here after selecting and deletion  there are two things i have to check ,they are: 1) After deletion of ent

  • How to configure new system landscape in portal server for bsp iview

    Hi     can you tell me what are the necessary parameters (apart form default parameters that were there while creating new system landscape) for configuring a system landscape for using it in bsp iviews. thanks & regards Ashutosh

  • Web Updates for a client after I leave

    I am designing a site in Adobe Muse.  Love it.  But it is a non-profit and I am a volunteer.  After I leave and they need to update the site, how will they do that?  Do they have to also purchase a monthly plan?

  • Mount by label or device name

    Hi, Is there an option i can give in my kickstart file for Oracle Linux 6.4 to create the fstab entries with Labels or device names (/dev/sd*). Right now it creates them with the disk UUID which doesn't really help in getting information at a glance