Urgent! JScrollPane for Window

To use JScrollPane for a JTextArea, we usually will write as follow:
JTextArea text = new JTextArea (5,15);
JScrollPane scroll = new JScrollPane (text);
JPanel pane = new JPanel;
pane.add(scroll);
setContent(pane);
But if i want to add JScrollPane to a window, what should I write after
"JScrollPane scroll = new JScrollPane (.......)"?
and my this window is only to display a 2D graphic. So, I will have code as below,
GraphMsg graMsg = new GraphMsg();
          Container content = getContentPane();
          content.add(graMsg);
          JScrollPane scrollMsg = new JScrollPane(..............);
How should I add the JScrollPane to a JPanel?
Thanks...

Just add the panel to the JFrame... I assume that's what you mean by "window".
JTextArea text = new JTextArea (5,15);
JScrollPane scroll = new JScrollPane (text);
JPanel panel = new JPanel;
panel.add(scroll);
JFrame frame = new JFrame();
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add(panel, BorderLayout.CENTER);
frame.pack();
frame.setVisible(true);

Similar Messages

  • CREDIT NOTE FOR  WINDOW HIRE,BANNER DISPLAY- URGENT.

    HI ALL ,
    well can any one explain  how a credit note  is issued on the basis of contarct form for the following : WINDOW HIRE,BANNER DISPLAY,EXHIBITION EXPENSES,VAN SUBSIDY.
    NOTE : PL DONT ASSUME THE ABOVE AS CONTARCTS.
    Thanks,
    Jerry.

    Hi Jerry,
    There can be 2ways of doing this. One through procurement (MM) and next in SD itself.
    MM
    When a customer is displaying your banner, you are basically getting a service from him. So, you can start the process by creating a PO for window display and then you can create an invoice and you can pay the invoice to him.
    SD
    In the second way, the customer will display the banner etc...and at the end, he will request for a Credit memo. i.e. Create a Credit Memo request.
    Now on the approval of this reqst, you can create a credit memo.
    Hope this helps you
    You can reward if this helps you

  • URGENT  JRE NEEDED for windows CE

    dudes... i really need help..
    I am trying to run a java application on Windows CE 5.0... tried searchin for a suitable JRE for download and finally zeroed on IBM websphere everyPlace Micro Environment... have downloaded the trial version setup but have no idea on how to install this on the device...
    also is there any decent emulator for Windows CE 5.0, on which i can test the runnin of any java application??? plz help out

    rlbeau1964 wrote:
    I suspect it will be a Windows 7 disk, which includes both 32 and 64 bit versions, unless Lenovo changes something on the install disk
    You suspect wrongly.  The Lenovo upgrade disk is one version only, either x86 or x64 but not both.
    The Microsoft operating systems licences that come bundled with Lenovo systems (and it's pretty much the same for all vendors)  are all for either x86 or x64 only.  So Microsoft requires the upgrades to similarly licenced.
    Cheers,
    Bill
    Cheers,
    Bill 
    I don't work for Lenovo

  • Contacts search for cisco Jabber for Windows & MAC

    Hello,
    Please assist on given below query !!
    System Deatails of CUCM & IM Presence Server
    CUCM:
    1>  System version: 9.1.1.20000-5
    2>  VMware Installation: 2 vCPU Intel(R) Xeon(R) CPU X5650 @  2.67GHz, disk 1: 80Gbytes, 4096Mbytes RAM
    3> Physical Server UCS210 M2
    4>  Already Integrated with IM & Presence
    IM & Presence:
    1>  System version: 9.1.1.20000-5
    2>  VMware Installation: 1 vCPU Intel(R) Xeon(R) CPU X5650 @  2.67GHz, disk 1: 80Gbytes, 2048Mbytes RAM
    3> Physical Server UCS210 M2
    4>  Already Integrated with CUCM
    Requirement:
    1>  User Search base for Cisco Jabber for Windows & MAC Client
    2>  Will we able to get contacts list(Jabber For windows & MAC) as like "Lotus Sametimes" for all users?
    Every reply would highly Appreciated!!

    Hi Karthik,
    Thanks for your reply!
    I have gone through the link but query is different actually, please assist on below query and provide any document links if possible.
    1>  The contacts does not appear when I perform a search
    2>  Do I required to integrate LDAP for same? If Yes Then Do I need to perform integration with CUCM Or IM & Presence? Or Only CUCM? Or only IM & Presence? (Please post a link to perform same)
    3>  Please also provide If any specific system requirement for LDAP server.
    4>  Is it possible without LDAP integration?
    It is really urgent and every post would highly appreciate..........

  • Should i go for Windows 7 or 8 for rMBP mid 2012 model with BootCamp 5.0.1?

    Hello! I recently got my 15'' rMBP 2.6Ghz with 8gb ram and 512gb SSD. (Manufactured on September 2012)
    Updated mac os x mountain lion to 10.8.2. Am in 'urgent' need of Windows OS to use ANSYS, and few of the high end CAD softwares like Solidworks, etc.
    I haven't purchased any Windows OS as of now. When i checked the Boot Camp version 5.0.1, i just found this, ''Create a Windows 7 or a later version''
    Does that mean, i can install Windows 8 on my rMBP?
    Please help!

    Welcome to the Apple Support Communities
    I have seen some cases where Boot Camp Assistant 5.0.1 shows that you can install Windows 7 or a later version. However, Apple hasn't released Windows 8 drivers for the Mac so I recommend you to install Windows 7 and you will save headaches if Windows 8 doesn't work correctly. Also, Windows 7 is much better for professional applications.
    Note that you will need an external optical drive in order to install Windows 7 on your MacBook Pro with Retina display

  • Synchronizing software for Windows 7 and Windows Mobile

    Hi All,
    I am trying to synchronize my PC with a Windows Mobile device (Scanner). When I googled I came to know Microsoft Mobile Device Center 6.1 is used to synchronize Windows Vista with many devices. But I am looking for a software which can synchronize my Windows
    7 PC and Mobile Device.
    Can someone suggest me on this. It's pretty urgent.
    Please refer to the System Requirements - Supported Devices section in the url mentioned below. This is for Windows Vista. Similar to this I am expecting a software for Windows 7.
    http://www.microsoft.com/en-in/download/details.aspx?id=3182&hash=brh0xPqEh%2fYvZrNW0SOms8%2bsu3y9ux3a7FJ82ZE%2fKs5tbE5ltglLsiv%2fE1zCxMJLIpRUpN8wayd5sLmhjkXdag%3d%3d

    Hi,
    Regarding sync issue between mobile device and the Windows 7 system, we could accomplished it with device stage.
    Description:
    There are two primary ways to sync a mobile phone, portable music player, or other mobile device with your computer. You can install the sync software that many manufacturers include with their devices, or you can use the new Device Stage feature in this
    version of Windows if your device supports this feature.
    Device Stage lets you sync music, contacts, calendars, and other files and information with a compatible mobile device. It also allows you to perform other device-related tasks that vary depending on the device, such as creating ringtones for a mobile phone.
    What files and information you can sync depends on the type of device you have and what it supports. For example, you may be able to sync contacts and calendars with a smartphone, but not with a portable music player.
    More information, we could take a look at the below links:
    Sync music, pictures, contacts, and calendars with a mobile device
    Device management
    Besides, some folks told that Winodows Mobile Device Center 6.1.6965 will work and sync well on Windows 7 Professional, and to install WMDC, we should have Windows Media Player running first.
    Please take a look at the below thread:
    Windows 7 and Windows Mobile 6.5
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • Developer 6i for Windows 98

    Where can I download Deveoper 6i for Windows 98.
    URGENT - Please Help

    get the windows NT version, it should work on 98 too.

  • Keynote viewer for Windows

    Although I am an Mac user I defend that Apple should think in build a Windows version of iWorks. But if this is not possible a Keynote viewer for windows is an urgent must.
    Thank you
    Orlando Figueiredo

    Ask the same thing recently to Apple feedback, Keynote is fantastic but it is a nightmare when making a presentation for PC, either Keynote for windows or right at least a reader, otherwise Keynote will loose interest except for my own stuff

  • Local SMTP/POP servers for Windows

    Hi Guyz,
    I know many of you would have got a similar situation..I need to write a code for sending and receiving emails. But I need a local smtp/pop server to test my code while development. I cannot use yahoo or any internet mail accounts as I do not have internet facilty at work. And I cannot use my company's mail server for sending due to security issues. But I can use them to receive the emails.
    So I am looking for mail server for windows which I can use for testing during my development which should be free or open source(ofcourse) and light wieght(does not accupty much CPU utilization and memory).
    Thanks,
    Gokul

    Hello,
    I am in same situation like you.
    If it's possible then plz send me your source code.
    It's very very urgent.

  • Manufacturing Operations Center (MOC) for windows

    Hi Everyone,
    I am not able to find installer for Manufacturing Operations Center (MOC) for windows. Is this available as a separate module or It comes with EBS package. Please help me out and tell me the way how can i download this module.
    Its an urgent task that i have to done.
    Best Wishes,
    Sohail

    Hi,
    Please see these documents.
    Note: 817663.1 - Oracle Manufacturing Operations Center Documentation, Release 12.1
    Note: 818813.1 - Oracle Manufacturing Operations Center Installation Notes, Release 12.1.1.01
    Note: 961432.1 - Oracle Manufacturing Operations Center Release Notes, Release 12.1.2
    Thanks,
    Hussein

  • GPO for Automatically trust sites for Windows OS security zones

    Hi Team,
    Need your urgent help
    Could you confirm which GPO we can use for Automatically trust sites for Windows OS security zones
    I have checked Adobe Reader GPO templates but its not exists?
    Pls assist

    Hi,
    We need to import these settings before we modify them.
    To import security zones and privacy settings from our computer using IEM:
    Click
    Import the current security zones and privacy settings 
    To import content ratings from our computer:
    Click
    Import the current Content Ratings settings
    Regarding how to configure Security Zones and Content Ratings, the following article can be referred to for more information.
    Configure Security Zones and Content Ratings
    http://technet.microsoft.com/en-us/library/cc772410.aspx
    Best regards,
    Frank Shen

  • Oracle Lite for Windows CE H/PC

    I have one question about Oracle Lite for Windows CE on Handheld/PC.
    Which version of Oracle Lite for Windows CE supports Java stored procedures and
    triggers and the Oracle Lite JAC and JDBC interfaces on H/PC? I have version 3.6 and 4.0.1 but this versions don't support
    JAC, JDBC interfaces, Java stored procedures and triggers ( this is written in documentation ).
    I urgently need version of Oracle Lite for Windows CE on H/PC which
    mostly supports JDBC interface because I've developed an application for
    Oracle Lite in JDeveloper with
    JDBC interface and I intend to transfer this application on H/PC ( Velo
    Phillips ) with Widows CE 2.0 operating system.
    Does such version of Oracle Lite for Windows CE which supports JDBC
    interface exist at all?
    Please help me.
    Thank you in advance.
    null

    This is a forum for Forms questions. You should ask your question on one of the database forums.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Failure to install Creative Cloud Master for Windows

    Hi all,
    I am using an Enterprise Creative Cloud and have packaged the Adobe CC Master for Windows.
    I have followed the rules of installation by installing Acrobat XI first.
    Upon installation of Acrobat, I proceeded to install Creative Cloud by going to the Build folder and install the Setup.exe by running as an Administrator. I have also disabled my anti-virus scanner as well. It starts to scan my harddisk and there is a progress bar that displays. Mid-way down the installation process, it just stops installing and it immediately uninstalls by displaying the progress-bar back to the start.
    Why is this so? I understandthat by having an Entreprise account does not need you to go by the normal way of going to the Creative Cloud Manager to download and have a password to type in right?
    Can anyone help me?
    Thanks!

    Hi Romit Sinha,
    Thanks for your prompt response.
    For some strange reasons, after I restarted my computer, disabled my anti-virus again and run the setup.exe using the administrator rights, it manages to install the CC apps within the build folder.
    However, may I know how do I install both Edge Reflow and Edge Code? As I am using an enterprise edition, I don't see these 2 products within the Build or Exclusions folder. Must I log in to the Creative Cloud (using my Adobe ID and password) to download them?
    If I log-in using my adobe account, will Adobe start charging me which will be ludicrous as I already have an enterprise edition.
    What gives?
    Thanks and Regards

  • HP officejet 6500 drivers for windows phone

    IHello,
    I have officejet 6500 with ethernet card. I use with wireless. I have Nokia 1020, Win8.1 mobil phone. I want print text on my phone. I installed HP Aio Remote Beta program. Aio found my printer but it said that this printer isn't supported. How can I print my text using my mobil phone on the officejet 6500? Is there any driver for mobil phone or any different program? or is that an upgrade for Aio (it must include my printer's driver ofcourse)
    Thanks...

    Hi,
    I afraid the printer is not compatible with Windows Phone.
    Only the models listed within the "What printers support printing features for the HP AiO Remote app for Windows 8 Phones?" below can be used for printing from Windows 8 Phone devices:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c04387822#N573
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Jabber for Windows- VM issue

    I had configured Jabber for windows in  windows 7, the problem is after logging into jabber client iam not able to get the "phone accounts" under options.
    Iam able to call , and recieve calls but no voice mail. In the Jabber cleint diagnostic it shows username and password is wrong for voice mail.
    If i have 'phone acounts' option in jabber client i could set username and password for voice mail. Iam able to telnet the unity server.
    Any clue?
    We have IM&Presence 9.0, CUCM 9.0
    Jabber - 9.2
    Tnx
    Bobby

    HI,
    As Aron states - you can configure your client to use same login and password ID as other UC services. This will then mask the fields you see in your jabber client. This is great when you don't want your users to have to populate the fields. The less they have to do the better.
    Check your Unity Connection system - is it AXL ot AD or neither ?
    If you can, your better to use only one username / password across your UC environment. For now just check your setting for the VM service is not set .

Maybe you are looking for

  • Qosmio X505-Q870 Graphics Constantly Crashing

    Hey guys, I purchased by laptop mid-March and since late-April, this odd behavior has been occuring. So, while I'm doing work on the laptop (regardless of game, autocad, or just document work) sometimes, the screen will go black, it'll come back on w

  • Doesn't NVL work with Assosiative array elements

    Doesn't NVL work with Assosiative arrays? When i tried to UPDATE empdtls table with the values stored in v_ename array, i got no_data_found error because the query, select ename bulk collect into v_ename.....returns only 5 rows and v_ename(6) was nul

  • Undeployment in NW 7.4 - example

    Hi Experts, Need to undeploy few components in NW 7.4 system. Can you please give me an example for list out the existing components and undeploy any of them (or) undeploy in together I would appreciate your guidance Thanks in advance.

  • Reg Mass maintenance in Material master

    Dear Gurus,                        I have uploaded HALB material wth movng avg price by mistake....I want to change it to std price in accounting view. Kindly guide me how to change it as standard price.

  • Ne email has been sent to rest my security question

    need it very badly