How can I use a JavaBean in another JavaBean?

I create a JavaBean named "dbBean.java"
And I create another JavaBean named "login.java" which want to use the method defined in "dbBean.java".
Could anyone tell me the syntax of using it?

compile the .java files into .class files and then they are usable
from dbBean...
login myLogin = new login();
perhaps you want to use it in some script and not java?

Similar Messages

  • How can i use iphoto pics on another mac across network for screen saver?

    how can i use iphoto pics on another mac A across the home network for the screen saver on Mac B?
    within iPhoto i can see the mac A's shared library AOK on Mac B but Mac A's library doesn't show up in the screen saver list on Mac B ;-(
    tia
    Barry

    That's exactly what I tried to do, but the iPhoto librry doesn't show up in the pulldown menu. If I click "Choose Folder", the iPhoto library is greyed out and unable to be selected.
    For some reason, iPhoto is an option in the pulldown library on my older iMac but not on my MacBook Pro. What gives?

  • How can I use my array in another method.... Or better yet, what's wrong?

    I guess I'll show you what I am trying to do rather and then explain it
    public class arraycalc
    int[] dog;
    public void arraycalc()
    dog = new int[2];
    public void setSize(int size)
    dog[1] = size;
    public int getSize()
    return dog[1];
    This gives me a null pointer exception...
    How can I use my array from other methods?

    You have to make the array static. :)
    Although I must admit, this is rather bad usage. What you want to do is use an object constructor to make this class an object type, and then create the array in your main class using this type, and then call the methods from this class to modify your array. Creating the array inside the other method leads to a whole bunch of other stuff that's ... well, bad. :)
    Another thing: Because you're creating your array inside this class and you want to call your array from another class, you need to make the array static; to make it static, you must make your methods static. And according to my most ingenious computer science teacher, STATIC METHODS SUCK. :D
    So, if you want to stick with your layout, it would look like:
    public class arraycalc
         static int[] dog;
         public static void arraycalc()
              dog = new int[2];
         public static void setSize(int size)
              dog[1] = size;
         public static int getSize()
              return dog[1];
    }But I must warn you, that is absolutely horrible code, and you shouldn't use it. In fact, I don't even know why I posted it.
    You should definitely read up on OOP, as this problem would be better solved by creating a new object type.

  • How can we use Bounded Taskflow in another project.

    Greetings!
    Suppose we have 2 projects: projectA and projectB.
    In projectB we have 4 bounded taskflows: T1, T2, T3, T4.
    In projectA we have a view with a dynamic region, text input for digits and a command button.
    How can we fill our dynamic region with taskflows from projectB, by typing a number of it and pressing a button.
    Thank you.

    Hi,
    Yes, I know.
    However, I'm under the impression that this is not the preferred method. All the documentation describe the ADF library method and I cannot find any description about putting them in a separate project.
    All said, it seems to kind of work, using the 'jar dependencies', except for taskflows with a nested taskflow from another project. An I still need to import them as adf library.
    We'd like to develop our taskflows separately using a short development lifecycle. Putting each of them in a separate application and publish and import them in the main application seems to be too complicated and takes to much time, everytime.
    Am I correct that the shortest development lifecycle is to have all the taskflows in our webapplication, and have full debug and hot-swap functionality?
    Ciao
    Aino

  • How can I use my itunes on another computer?

    I am visiting my parents, who have itunes, and I want to access my itunes on their computer. How can I do this without disturbing their account.
    I'm also scared that if I plug my ipod in that it will sync with my Dad's itunes (that would be awful).

    You can't access your iTunes from their computer because your library is at home on your computer. You can only access there library.
    To plus an iPod into another computer, be sure to set your iPod (at your house before you leave) to Manual updating rather than automatic updating. This will allow the iPod to mount and iTunes will not do anything to what it on the iPod or in the iTunes library.
    Managing content manually on iPod
    http://docs.info.apple.com/article.html?artnum=61148
    Patrick

  • How can I use my account from another I.p address

    When ever I attempt to buy anything on amazon or iTunes, while at my mums using her iPad security locks me out, how do I fix this

    You don't. You cannot buy for your account using another person's iPad and using that person's account. iPads are not multi-user devices. Use your own iPad. You should be able to connect to your mum's wireless if she gives you the network's access password. Then you can buy stuff on your iPad.

  • How can i use one dtd inside another dtd

    Hello friends,
    I have read some where that one DTD can be imported into another DTD but idont remember how to do it.
    My question is suppose we have a DTD say xyz.dtd and i am writing a new DTD say abc.dtd, and lets assume that in abc.dtd i have to declare some of the elements of xyz.dtd, so iwant to import xyz.dtd into abc.dtd.
    Can anybody please give me a solution for this.
    Thank you,
    sridhar.

    something similar to this.
    // This is abc.dtd
    <!ELEMENT MESSAGE_NODE (MSGHEADER, MESSAGEBODY)>
    // Include the DTD for the Message Header
    <!ENTITY % MSGHEADER SYSTEM "xyz.dtd">
    %MSGHEADER;

  • My computer died. I do not want to loose one video on my iPod, how can I  use the iPod  on another computer? Please help!

    please advise how I can put my iPod on another computer, my old one died a slow death.  There is one short video on my iPod that can't  be replaced.

    - What is the source of the videos? If taken by the iPod you can transfer them to the new computer by:
    Copying personal photos and videos from iPhone, iPad, or iPod touch to your computer
    - If they were iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - If they were synced to the iPod and not iTunes purchases then you need a third-party program like TouchCopy or PhoneView.

  • How can I use a module of another project?

    Hi
    I am using Visual studio 2013.
    I have a solution with 2 projects (console application).  In the first one there is a module that I want to use it in the other project (without compliantly recreate it in the second one, otherwise what is the benefit to have several projects in one
    solution?). is it a way to do that? 
    Thanks.

    Hi,
    You erroneously posted you question on the Project forum, which is dedicated to the scheduling and planning Microsoft application.
    Please go to the VS forum to have a proper help:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

  • HT4994 MY IPHONE IS NOT A SIM FREE HOW CAN I USE IT IN ANOTHER COUNTRY?

    MY IPHONE IS NOT A SIM FREE HOW CAN I USE IT IN ANOTHER COUNTRY?

    Apple can do nothing. As Tim said, only the carrier to whom the iPhone is locked can authorize unlocking. You must contact that carrier.
    Regards.

  • How can i use another icloud account in my iphone? can i pay one?? where?

    how can i use another icloud account in my iphone? can i pay one?? where?
    My phone has reached the maximum number of free accounts activated where can I buy one to use?

    You can't buy another one.  You have to reuse one of the accounts previously set up on your phone, or create a new one to use on another iOS device (running iOS 5 or higher) or Mac (running OS X 10.7.2 or higher), if you have one.

  • HT3354 how can i use one table for reference to another

    how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using

    you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
    Here is an example of something you can do with two tables:
    The table on the right is title "Data" and stores a list of names with age and favorite color.
    The table on the left uses the value in the first column to lookup up information in the table Data
    in the table on the left:
    B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
    I know this look complicated.  so I'll break it up into smalled pieces:
    first the "&" is called the concatenate operator and joins two strings.  like this:
    a string is a set of characters between double quotes.
    so "string 1" & "string 2" becomes "string 1string2"  or "Sam " & "Jones" becomes "Sam Jones"
    you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
    so if cell A1 contains "Hi " and the cell A2 contains "There"  then A1 & A2 will result in "Hi There"
    so you could add the formula
    A3=A1 & A2
    this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
    OK.  So the formula I provided concatenates several items together:
    it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
    the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data".  If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
    all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
    You will find the Numbers users guide and function reference helpful.  You can download then from Apple here:
    http://support.apple.com/manuals/#productivitysoftware

  • How can I use Bluetooth with another devices?

    How can I use Bluetooth with another devices?

    You can set up your FaceTime account in Settings > FaceTime.

Maybe you are looking for

  • 10.4.9 update / router & safari problem

    Following the update, which went smoothly my internet connection slowed to dial up speed from 3MB. When I bypass the router speed to back to 3MB. But safari shows no images only text / Firefox works fine. I've reset the router updated the firmware, p

  • Airport Extreme and Snow Leopard

    Hi All, Hello from Brazil. I just got a new 17" MacBook Pro with the intel Core i7 processor, and Snow Leopard 10.6.4. Love it! Very fast, low heat, and good battery life. I am trying to set up my old Airport Extreme MB053LL/A base station, but the i

  • Where's the Pro*C Documentation

    I've been using the 8.0.5 EAP version on Red Hat 5.1 for a while. The only docs I have are old (2.1). Where do I find updated Pro*C documentation? Can it be viewed on-line or downloaded? Many thanks. null

  • Sharing Smart Collections

    Is it possible to share Smart Collections or Manual Collections in CS5 between users on the same PC. Also is there any alternative to manually re-entering tags generated in PS Starter Edition having upgarded to CS5. A big jump I know but my daughter

  • Reconnection for asynchronous consumer

    Hello, I have a connection with only an asynchronous consumer and a JMS ExceptionListener on it. When I pull out the network cable on the client for 10 minutes or so (long enough for the server to close the connection), then plug it back in, my consu