How to import a class from a package at the same level

Hello friends,
i have a class as Plaf.java
as
package org.vaibhav.swing.plaf;
import java.awt.*;
import javax.swing.*;
public class Plaf {
other code
}as you see, this is in org.vaibhav.swing.plaf package.
I have one more class as
package org.vaibhav.swing.frames;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class StartFrame extends JFrame implements ActionListener {
other code
}and this class is in package org.vaibhav.swing.frames
Please hlp me how to use the class Plaf in StartFrame.java. Rather what import statement should i use in StartFrame.java.
please help.
thank you
Message was edited by:
vaibhavpingle

but it then gives me this error
StartFrame.java:11: package org.vaibhav.swing.plaf
does not exist
import org.vaibhav.swing.plaf.*;
Have you first compiled Plaf.java and saved it in this directory strucuture
/org/vaibhav/swing/plaf/
And also have you set your classpath to the parent directory of org folder.
Message was edited by:
qUesT_foR_knOwLeDge

Similar Messages

  • How to import my photos to Photos libray with the same folder name?

    how to import my photos to Photos libray with the same folder name?

    You can import  a folder of photos to the Photos.app by dragging the folder onto the Photos icon in the Dock. That will open an Import panel, and you can select to import all photos from the folder. But the folder name will be lost.
    The photos will appear in the "Last Import" album. Select them all in the Last Import and create a new album with the folder name (fFile > New Album).

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • TS3850 how to import a video from a tape recorder the brand is Canon XL1 mini DV into Final Cut or iMovie?

    how to imort a video from a tape recorder the brand is canon XL1. i use firewire 6ping befort but the new Mac have not 6ping, they have 9ping

    This is what you need:
    http://rocketfish-prod-live.teletech.com/products/computer-accessories/RF-AP309. html

  • Importing packages at the same level

    Hi,
    I have two packages A at B (with some classes) in the same level. How do i import the classes from one packages to other.......

    Hi,
    By level i mean that the packages are in the same directory.
    I created two packages A & B. In the classes belonging to A, i used
    package A; import B.*;
    In the classes belonging to B i used
    package B; import A.*;
    I then tried to run the program in JCreator IDE. But it generated error as package is missing.
    I also tried to place both packages in another package 'C'. i.e. C\A and C\B. In A's classes i used
    package C.A; import C.B.*;
    In B's classes I used package
    C.B; import C.A.*;
    Even then i got the same error and also moreover i was unable to access other classes in a package by a class belonging to the same package.
    Kindly help me out.

  • How to extend a class from super package?

    Say I have a dir a\
    in dir a\ there is a dir b\
    in b\ there is a class called DerivedClass
    in a\ there is a class called ExtendedClass
    how do I extend ExtendedClass from DerivedClass?

    package a.b;
    import a.ExtendedClass;
    public class DerivedClass extends ExtendedClass{
        //define class members
    This is interesting. But the question is, how does java know where is package b??     By the classpath variable - the classpath is set to one directory above 'a'. When you say
         a.ExtendedClass, since the classpath is set to the immediate parent of a, it searches the child directories
         for a directory called 'a' and upon finding it, searches for a .class file 'ExtendedClass'.
         Similarly when you say a.b.DerivedClass, the search begins in the parent directory for a directory called a and then
         a directory 'b' inside it on finding which it searches for DerivedClass.class
    Alternatively you could have defined DerivedClass to be in package 'b'.     
         package b; //note the difference. Its b and not a.b
         import a.ExtendedClass;
         public class DerivedClass extends ExtendedClass{
             //define class members
         }in which case, you should set the classpath to
    1. a's parent directory
    2. a itself
    The parent directory cp is still required to locate a.ExtendedClass
    The fully qualified name of DerivedClass is b.DerivedClass
    Thus if #1 alone were present, since 'b' is not directly inside the parent directory,
    b.DerivedClass would never be found
    Hence the #2 is required-the search should start from the directory 'a' (as directory 'b' is inside 'a').
    therefore, a package is a directory.No, package is a very java specific thing and though logically package names should match directory names, they
    arent the same.
    cheers,
    ram.

  • Import java class from model package

    I have a java class in model package.I create a managed bean in the view package and I want to import the first java class with "import model.class1" but this error "import model.class1 not found" is shown.What should I do?

    Hi,
    Why are you importing the Model classes to your backing bean? You should not be doing that. Instead, expose the method in model as client interface (whichever you want to call in the backing bean), create the method binding in your pagedef. Then, from the backing bean, you can execute the method programatically.
    -Arun

  • How to archive my photos from IPhoto to keep the same filing structure

    I need to empty my iphoto files as there is too much memory being taken up.  i want to export to external hard drive but keep the same filing system so i can access my photos rapidly.  every attempt I have made to date mixes all the photos up so there is no structure. help please.

    I need to empty my iphoto files as there is too much memory being taken up.
    No, iPhoto files take up disk space, not memory. So if you think you're going to save memory be getting rid of them, you need to reconsider that idea.
    You can move your entire iPhoto Library to an external drive and import new photos into it on that drive, so if that's what you want to do, these are the steps:
    1. Format the external drive as Mac OS Extended (Journaled)
    2. Quit iPhoto
    3. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    4. Hold down the option key while launching iPhoto. From the menu select 'Choose Library' and navigate to the new location. From that point on itl be the default location of your library.
    5. Test the new library destination and when you're sure everything is as it should be, delete it on your Macintosh HD.

  • How do I open something from other program in the same/ current tab? IE has this functionality under internet options

    How can I get applications to open in the same tab/window I am working in. In IE it was very simple. Its just a check-box under internet options. I cannot figure it out with Firefox yet
    == This happened ==
    Every time Firefox opened
    == i started using it

    I'm not sure but maybe the Tab Mix Plus extension provides that option https://addons.mozilla.org/en-US/firefox/addon/1122/

  • How to get MR Document from Billing Document at the table level

    Hi All,
    I am looking to find the MR Document based on which the Billing Document was generated. I need to find it out at the table level.
    I looked into DBERCHZ2 table, but I can see a single billing document is linked to multiple Meter Reading Documents via different Line Items.
    Could you guyz please help me? Am I seeing the right table? Is there any FM or ABAP program for the same?
    Thanks a lot in advance.
    Regards.

    Hi ,
    The link is Installation to get MR Doc from Bill Doc .
    from ERCH-BELNR  , fetch Contract (VERTRAg )  and then from EVER-VERTRAG get Installation (ANLAGE).
    Get MR Doc(ABLBELNR) from EABLG based on EABLG-ANLAGE.
    Thanks ,
    Sachin

  • How do I add signals from different modules to the same waveform chart?

    When using build array to connect signals from different FP modules to the same waveform chart, the array type is not the same as if all the signals come from one Read Array. Only one digital indicator on the chart displays with the build array method. Why

    Hi gencell,
    There are two ways to plot multiple plots on a Waveform Chart, a 2D array and a cluster of doubles or integers. I would suggest that you use a Bundle to create a cluster.
    This information is in the Context Help of the Waveform Chart terminal (from the Block Diagram).
    Regards,
    Chad Evans

  • How to import custom classes from model to view controller in adf?

    hi...
    i have some custom classes in model layer in adf.
    i want to use them in view controller but i cannot import them.
    how is this possible?
    my jdev version is 11.1.1.5

    You normally don't have to do anything special. The view controller project has a dependency to the model project. So simply typing the class name should show you hte option to generate the need import statement for the class.
    However, not all classes which reside in the model project should be imported into the view Controller as it might break the MVC pattern.
    Timo

  • How do I Delete songs from Itunes & Computer at the same time?

    I would like to have a song deleted from my computer (sent to recycling bin) everytime I delete the song from ITUNES. How can I do this? When I used MediaMonkey it automaticly did it for me. Thanks for your help.
    gateway   Windows XP  

    If you are using iTunes to manage your music and the songs are in the iTunes Music folder then iTunes will give you the option when deleting to remove the songs from the library and send them to the Trash. However if you are keeping the songs in another folder iTunes will only delete them from the library, if you want to completely remove them you have to go to the folder yourself.

  • How to update a report  from a form on the same page when form item changes

    I have a portal form from a table and a portal SQL report with a bind variable on a page. I want the report to get updated with details based upon what was selected from a form item. The form item is a selection from a dynamic LOV. Whenever the form item gets changed, the report should get updated to reflect the change. Can this be done using a javascript ONCHANGE event?
    Oracle Portal Version is 10.1.2.2.0.

    Your applet can open an URLConnection and read directly a document from your webserver.
    public String readText() {
      java.net.HttpURLConnection conn = (java.net.HttpURLConnection)myURL.openConnection(); ...
    }So using JavaScript on your page, you might call readText() to fill that textarea.
    The interesting link you gave, handled the JavaScript/Applet interaction. Test that with just return "Hello";.
    The real programming is more interesting.

  • How to open a link from search engine in the same page

    I just noticed that my links are opening in new windows instead of on the same page on Safari. Is there anyway I can change it back to where if I click on a link in the Yahoo search engine that it would just open within the same page without opening a new tab or window, where I can go back and forth between pages? For example, say I type in "wikipedia" on Yahoo home page and click search. Then it takes me to the Yahoo! Search Results page with a link to the Wikipedia website. When I click on that link, the Wikipedia home page loads right within the same page instead of opening a new tab or window and loading into that new tab or window. If I wanted to go back to the search results, I can just click the back button. I remember Safari doing that before, is there anyway to get back to that? Thanks.

    You can set the Integer pref <b>browser.link.open_newwindow.override.external</b> to "<i>1</i>" on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config
    The browser.link.open_newwindow.override.external pref uses the same values as this pref for JavaScript window.open() calls.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction

Maybe you are looking for

  • IMovie Plugin Counter?

    Hi all, Can anyone tell me if there is an iMovie HD 6 Plugin that would allow me to display a real time counter on my video (e.g. like the counters you see on comedy shows when people repeatedly do something daft - the counter counts in real time eac

  • Help! Macbook Pro painful 6 minute boot up time!

    I've owned my Macbook Pro since new and it came factory installed with OSX 10.4 I decided to update to Leopard and used the 10.5.6 disc formatted the hard drive fresh and after installing boot time was around 6 minutes. I tried everything, updating O

  • Has anyone tried disabling DART?

    Has anyone tried disabling DART in the boot-args on an XSERVE running Tiger with 2GB RAM? Are there any effects on the PCI cards, except the obvious? Roger

  • Photoshop cs5 update has deleted 64bit version

    Running this mornings 12/14/10 updates has lead to the deletion of Photoshop cs5 64bit.I have the 32bit version but cannot point any of my files to this through the file association default settings. I am running on Windows 7. I also cannot change th

  • Merged Clips in Pr don't import into AE (or export from Pr via Dynamic Link)

    anyone else encounter this?? Exporting ANY sequence from Premiere that contains Merged Clips to Ae via Dynamic Link results in NO clips showing up in the AE Comp. On the flip side, I can Import a Premiere Pro Sequence in Ae, but the only clips that d