JSplitPane with external panel

Hi,
I want to use a JSplitPane wich:
Displays a JTree in the left-component
Displays application selected from JTree in right-component
Sounds simple. The right-component has a 'card-deck' which will
swap whenever an other application is selected in the JTree.
I have written a short test which does almost exactly what I want.
Problem is that a panel, which was a standalone Frame-app first,
is not shown in the right-component (but it is running!)
It seems that cannot put a standalone application (extending a JFrame) on a component.
So I decided to change the application and use a JPanel in stead
of a JFrame. The panel is accepted but isn't shown. (application is
running though).
I created a short testpanel_class which should be shown when
the first app is selected from JTree.
Current Result when JSplitPane-app is started
==> I get the 'home'-card first
==> When App2 is selected, I get correct card
==> When App1 is selected, the right-component is blank (app runs!)
Herewith the codesnippet of my JSplitPane-app which is showing
how I put the components on the left/right components:
===================================================
     private JSplitPane getJSplitPane() {
          if (jSplitPane == null) {
               jLabel = new JLabel("Tekst");
               jSplitPane = new JSplitPane();
               jSplitPane.setLeftComponent(getJTree());               
               myPanel.setLayout(new BorderLayout());
               pCards.setLayout(cardlayout);
               pCards.add("home", new JLabel("Home"));
               pCards.add("App1", new SplitBasePanel());
               pCards.add("App2", new JLabel("Menu2 Selected"));
               myPanel.add(pCards, BorderLayout.CENTER);
               myApp.getViewport().add(myPanel);
               jSplitPane.setRightComponent(myApp);
          return jSplitPane;
===================================================
And I swap the cards as follows:
===================================================
     public void valueChanged(TreeSelectionEvent event) {
          if (!firstRun){
System.out.println
("Current Selection: " +
jTree.getLastSelectedPathComponent().toString());
if ((jTree.getLastSelectedPathComponent().toString()).equals("App 1")){
               cardlayout.show(pCards, "App1");
if ((jTree.getLastSelectedPathComponent().toString()).equals("App 2")){
               cardlayout.show(pCards, "App2");
          firstRun = false;
======================================================
Here is my application-panel to be shown
=================================
package application;
import javax.swing.*;
import java.awt.*;
public class SplitBasePanel
     extends JPanel {
     // Panel Layout
     private JPanel c = new JPanel();
     // APPLICATION BASE FRAME
     public SplitBasePanel() {
     // Create Application panel
     c.setLayout(new BorderLayout());
     // Initialize CardDeck with basepanels
     c.add(new JLabel("my External Application"), BorderLayout.CENTER);
}

a) Sorry for the "code"-formatting, i just copy & paste from my developersoft.
b) SSCCE ????
c) I have placed this in this forum because it is not only a question about usage of swing components but also about the concept I try to implement. Maybe what I'm trying to do is just not the right concept !
d) what do you mean by your final remark (history reply postings)?
I do not make daily usage of this Developer Forums. So please forgive me when I don't follow the rules completely. I will post the message again in the SWING-forum and try to use the correct formatting.
Patrick.

Similar Messages

  • Is it possible to link an Audigy2 card with external haedphone & mic connections on my ca

    Is it possible to link an Audigy2 card with external haedphone & mic connections on my case as buying an external dri've bay is a bit expensi've, but i really want to make the most of my card. I currently use a usb headset and the sound is a bit naff as i have no control over bass & treble. The only advantage of this is convinience.

    longi wrote:
    . Is it possible to link an Audigy2 card with external haedphone & mic connections on my case as buying an external dri've bay is a bit expensi've, but i really want to make the most of my card. I currently use a usb headset and the sound is a bit naff as 2. i have no control over bass & treble. The only advantage of this is convinience.
    . There is no analog I/O pins available on Audigy 2. Only way to get it working the way you want is to split those I/Os found from back of the card. Here is a project running solving this matter, so you may want to follow it's progress.
    There are also couple threads talking 'bout this matter of yours.
    2. You can control treble and bass from software you're using or if you play games (only) then from
    - Creative Surround Mixer
    - CTPanel (can be found on driver installations)
    - Control Panel: Sounds And Multimedia properties: Audio tab --> Play Control : Volume slider: Advenced
    All these above affects sound Globally.
    .jtpMessage Edited by jutapa on 09-7-2005 09:57 PM

  • Using the GT70 with external monitor and lid closed

    I wasn't sure where to post this question.
    I have several laptops and use external monitors. I close the lid on the laptops and the display continues to work.
    On the GT70, the system shuts down. It won't allow me to use the external keyboard and mouse or display the session.
    Any suggestions if there is a configuration option to allow the GT70 to continue to function with external monitor and lid closed.

    Yup. This is a windows setting. You need to go into your control panel -> power options -> "Choose when the computer sleeps" and "Choose what closing the lid does"
    That should solve the problem. I currently have my GT70 hooked up to a 42" TV and I can close the lid and it stays on and the TV continues displaying as well. No problems. =]

  • Calling Javascripts with a panel then prevents copy/paste functions in Photoshop CS5

    Hi,
    I have a simple panel in Photoshop that calls a Javascript when a button is pressed.
    I have a simple script that does some Duplication of layers and a bit of simple image manipulation.
    I run the script from the Extended Toolkit and eveything works fine.
    I run the same script from the Panel and the script runs fine; but then the copy / Paste functionality of Photoshop is broken.
    I have to close the Panel window or run the script from the toolkit to get the functionality back.
    EDIT:  I have not narrowed this down to simple interations with the Panel can casue this issue - clicking on icons, switching `Tabs` etc...
    Does anyone know why this is happening?
    Cheers,
    Pete

    Hi,
    I created a simple panel that only had a button that calls an external JavaScript.
    Even if I simply click on the panel a few times, move it around etc without executing the script, I can get the copy paste error.  It happens 90% of the time and interestingly it only happens on the currently active document.
    The only way to get the functionality back is to close the panel.
    It seems to be a focus issue,  but as I'm not calling any script in this case - where could I put the Bridge Talk command? 

  • Sticking mousecursor with external display is still a problem...

    Hi,
    10.5.7 fixed the "sticking mousecursor" problem with an attached external display (samsung syncmaster 226bw via MDP-DVI adapter) on my iMac and the ATI Radeon HD 4850. Big thanks for that!
    But if i plug in a second source (notebook) to the external display (via VGA) and manually switch the active source for that panel from its DVI (iMac) to the VGA input (notebook), the mousecursor on the iMac is sticking again :-/ Switching back to DVI source and everything is fine.
    That "sticking mousecursor" - for those not knowing - is a moucecursor which stops movement for half a second all 3 seconds. That bug is mentioned to occur with external Samsung and Philips displays only, as far as i know. Dell's and BenQ's don't have this problem.

    update: it has nothing to do with a second computer connected to the external display while it is plugged into the iMac via DVI/MDP. The problem occurs if the external display is connected to the iMac but is not active! That means, the mouse-cursor is freezing regularly when the external display is switched off, or switched to another source (second computer). If the external display in ON an used with the iMac, then everything is fine.

  • Problems with Mic with Audigy 2 zs Platinum (with external b

    <IMG height= alt="" src="http://forums.creative.com/i/p.gif" width= border=0>
    I'm having problems with my mic settings when using built-in game comms such as Half Life Counterstrike source and Battlefield 2...
    I have my mic connected to Line / Mic on my Audigy External Panel which works fine when using voice comms such as Teamspeak and Ventrillo but when i load up any of the mentioned games it changes my settings from Line / Mic to just Mic, there is another Mic connection to the soundcard at the back as opposed to the Line / Mic connection on the external Panel but it doesn't appear to be working. Any ideas ?

    Nevermind after extensi've searching in forums using several keywords i found this.. http://forums.creative.com/creativel...id=5203#M29642
    Bit disapointed I didn't get a reply from any Creative tech heads though, as it is the 2nd time I posted about this same problem when Counterstrike Source originally came out
    So I have to concede that i will think again when purchasing a ?40 product from creative when there is a lack of basic support :smileyindifferent:

  • MBP Retina low performance with external displays

    Hi everyone!
    I have a very bad performance with my MBP 15´´ retina display when it comes to ad an external display. I have a FUL HD LG monitor that looks very bad when i connect the HDMI or the thunderbot port with the proper adapter (as bad as you can´t even read). I want to know if this may ba a hardware problem just with my computer or if it is a software problem, any ideas? does anyone have the same issue?
    How can i update my NVIDIA card???
    Thanks a lot!

    Topic seems to come up here often. Apple has a tendency to dismiss the issue.
    Its a pretty well known problem that Mac font smoothing doesn't seem to work well on high resolution third party external displays, making text hard to read. In addition, I think the Mac HDMI resolution support is limited to 1080p, so you must use DP or DVI video interfaces to see full monitor resolution.
    The OS default is no font smoothing on external displays (except perhaps the apple display). There is a terminal command that will enable font smoothing for any external monitor, but it often doesn't work well enough. I found that using the OS zoom feature magnifies text to the point to be easily readable. You can set zoom parameters in the accessibility systems preference panel.
    For some reason, sometimes the Mac OS thinks some monitors are TVs and use YCbCr instead of RGB. You can open the color sync utility and brouse the settings to see what is being used. There are scripts available that can fix that but are more complicated to install than an app.
    It seems that PCs are way ahead of Macs with external display implementation. Most folks having monitor problems with a Mac do not see the same issue with PCs or Unix/Linux OSs.
    Oh as far as updating the video card, can't. The monitor  "drivers" are built into the OS. When a new display is connected, the OS finds the profile for it.

  • Creation of Business Partner with External BP #,ID type and Identifications

    Hi Group,
    I have a query on creation of Business Partner with External BP #,ID type and Identification # (along with the Firstname,Lastname,Email, Phone & etc.,) things.
    the thing is that I was using a BAPI called "BAPI_BUPA_FS_CREATE_FROM_DATA", to create a BP and I was not able to have an option available for these things (External BP #,ID type and Identification # ) along with that BAPI.
    So please kindly let me know how these things can be fetched from a BAPI which can accomodate all the above things mentioned.
    Please kindly let me know how it can be achieved.
    thanks in advance.
    Regards,
    Vishnu.

    Hi Gerhard,
    Infact this reply was very useful, but ,while using the BAPI "BAPI_IDENTIFICATION_ADD" while creating the Id type and Id #s, this BAPI was not enabling this.
    I was trying to use this BAPI to create ID #, and it's desc, but, this BAPI was returning like "This BP # does not exist" (in some cases) and in some other cases, it is keeping quiet without giving any indication as whether the things have been updated or not... and also when I checked, things were not getting reflected.
    your help would be very much appreciated.
    thanks & regards,
    vishnu.

  • Public SharePoint Online Site with External User Portal

    Hello Everyone,<o:p></o:p>
    My company switched over to Office 365 a few months ago, and now would like to start using our Public SharePoint site to share information (documents
    pertaining to their orders/drawings/etc.) with our customers (external users).<o:p></o:p>
    <o:p> </o:p>
    I have seen documentation on how to share documents with individual users, but we were looking to do something a little bit different. We would ultimately
    like to have a public site with generic company information (like hours, about us,directions etc.) that anyone can see.
    We would also like to use SharePoint as almost an "FTP type" service where we could post documents and share them with individual
    external
    users. HOWEVER, instead of sharing individual documents, we were wondering if there was a way that an external user (that we have granted
    access) could sign into the public SharePoint site, and then see information that ONLY pertains to them.
    I have been doing some research on this, and I haven't seen that anyone else has tried this. Has anyone had any luck? Or would you have suggestions on how to make
    this work? I had originally posted this question on the Office 365 SharePoint forum, and they suggested posting this question here. Any help would be appreciated. Thanks!

    Hi,
    did you finally manage to get what you requested here above ? Indeed, I am also struggling to set up the same (public website with individual content sharing with external authentified user).
    For external user, I am quite sure that we need to go through MS ID creation (I have created some test users using https://login.live.com).
    Our public website is done and (almost) working. I have then created a sub-site for the same, this one to manage permission based on authentified user
    But I am stuck when trying to assign a document library with relavant permission.
    Would be great to share our feedback and I have searched a lto on the web and did not find any satisfying answer to this design (If there is any... here is my doubt...)
    Thanks in advance
    stef

  • Federation Service with External Organization is not working

    Hi,
    Exchange 2010 is running in present environment and recently I have introduced Exchange 2013. There is federation Enabled at Exchange 2010 end with External Exchange organization. When we migrated users from E2k10 to E2k13 Free /Busy sync has stopped working.
    Exchange 2k10 & E2k13 in same Exchange organization and no errors found in configuration part and all seems Success.
    Here what I am suspecting, something that I need to do at F5 load balancer end, not sure what :( .. I need urgent help from Experts in this forum to help me in case I have missed something to make Federation working. 
    Amit

    Hi.
    Federation in coexistence mode runs through the Exchange 2013.
    Coexistence with Exchange 2010
    In organizations that contain both Exchange 2010 and Exchange 2013 servers, users who have a mailbox on an Exchange 2010 Mailbox server can use organization relationships to share free/busy information with recipients in external Exchange 2013 federated
    domain organizations. The Exchange 2010 Client Access and Mailbox servers must be running SP2 or higher, and you must have at least one Exchange 2013 Client Access server in the Exchange 2010 organization.
    Troubleshooting plan
    1) Check run correctly Exchange CAS 2010/2013
    2) Enabled Outlook logging and checked the logs. For Client from Exchange 2010 and Exchange 2013 mailbox.
    3) Ran Test-OrganizationRelationship on Exchange 2010 and Exchange 2013.
    4) Checked the Federation settings on Exchange 2013.
    5) On Exchange 2013 and 2010 server: Get-FederationTrust | Set-FederationTrust -RefreshMetadata
    MCITP, MCSE. Regards, Oleg

  • Won't boot up with external hard drive attached

    Pavillion HPE h8-1360t, AMI 7.15 Bios, Windows 7 Home Premium x64 bit, consistently fails to boot with external USB hard drive attached (WD 500GB MyBook) attached.  Have tried disabling the device in BIOS, htting f10 to apply the change and then selecting "save changes and exit", but after shutdown/powerup the BIOS returns to the old setting.  Read the posting that states a BIOS upgrade will solve the problem but Support web page shows no BIOS update available.  Any suggestions greatly appreciated. 

    2Suntech,
    Open up command prompt and run the following command SFC /scannow.
    This will scan the system files and correct any errors that it can.
    Here is a link to command prompt.
    When you go to open command prompt, right click and run as administrator.
    If it has not been to long since the problem started, you can run a system restore.
    This will take the system back to when everything was working correctly without affecting your personal files.
    Here is a link on how to do a restore.
    Let me know how everything goes.

  • HT2729 Digital Copies to my IMac with external hard drive, then on my MacBook Pro I can see the movies, but if I close out my IMac, I can't access my movies on my laptop???  Can anyone help me out here?  Thanks.

    I have my itunes stored on my external hard drive of my IMac.
    I have started to put my Digital Copies to my IMac with external hard drive, then on my MacBook Pro I can see the movies, but if I close out my IMac, I can't access my movies on my laptop???
    Can anyone help me out here?  Thanks.

    I have my itunes stored on my external hard drive of my IMac.
    I have started to put my Digital Copies to my IMac with external hard drive, then on my MacBook Pro I can see the movies, but if I close out my IMac, I can't access my movies on my laptop???
    Can anyone help me out here?  Thanks.

  • Problems in accessing UWL Items - Using SAP r/3 4.7 with External ITS

    Hi,
    When i am trying to open the Tasks in UWL, the Tasks which are calling any Tcode are giving blank page and some Tasks are opening but the Attachments in that Tasks are not opening.
    Tasks and Attachments are pointing to:
    1) http://vq2wk.corio.com:81/scripts/wgate/webgui/!?%7Etransaction=*SWK3+P_INSTID%3D0030000063%3BP_TYPEID%3DZSDQUOTE%3BP_CATID%3DBO%3BDYNP_OKCODE%3DONLI%3B&%7Eokcode=ONLI&%7Eclient=120&%7Elanguage=en&%7Eaccessibility=0
    2) http://vq2wk.corio.com:81/scripts/wgate/webgui/!?%7Etransaction=*SWK1+p_nosecm%3DX%3Bwi_id%3D000000156456%3B&%7Eclient=120&%7Elanguage=en&%7Eaccessibility=0
    All the Connections (RFC, SSO, SLD) and WebGui Tcodes with External ITS are working fine.
    Could any one please suggest me that i am missing any more configuration or any authorizations. Else any Session Managment needs to be done.
    Some times it is showing "/!Session not fall-safe/!\" in the status bar.
    Thanks in Advance.
    Regards,
    Sridhar.

    I already checked in SMLT tcode ,My system is MDMP .I passed that error and now I am getting this
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (GSI) INFO: dbname   = "D3320110118070143                                                                                "
    (GSI) INFO: vname    = "ORACLE                          "
    (GSI) INFO: hostname = "SAPTST2K3E32                                                    "
    (GSI) INFO: sysname  = "Windows NT"
    (GSI) INFO: nodename = "SAPTST2K3E32"
    (GSI) INFO: release  = "5.2"
    (GSI) INFO: version  = "3790 Service Pack 2"
    (GSI) INFO: machine  = "2x Intel 80686 (Mod 29 Step 1)"
    (VK) ERROR: invalid migration key
    E:\usr\sap\D33\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    E:\usr\sap\D33\SYS\exe\run/R3load.exe: END OF LOG: 20110118215221
    any idea on this??

  • PO Creation with external PO number

    Hi All,
    We have SRM and some other legacy system. We will receive the PO information from the legacy system with the Legacy PO number. Now we have to create a PO with external number only.
    So for PO creation we are using the BAPI BAPI_POEC_CREATE.  this is working fine if you dont pass any external PO number.
    But If you pass external PO number I am facing some problem. BAPI_POEC_CREATE is giving the informaiton that PO with XXXXXXX number is created, but when we call BAPI_TRANSACTION_COMMIT it is throing some error like.
    Buffer table not up to date
    Message no. BBP_PD001
    Diagnosis
    In LOOP OBJ_RELATIONS_UPDATE (function group SAPLBBP_PDH_OR) an inconsistent status was discovered.
    Procedure
    Start the transaction again. If the error occurs again, create an OSS message.
    To analyze the error, you can set a breakpoint in the function module 'BBP_PD_ABORT' and look at the call-up hierarchy in debugging mode.
    Is this the number range problem? please tell me what is missing.
    Thanks & Regards,
    Raghu

    Raghavender,
    I think that maybe the external number is not the problem.
    Sometimes the explicit <b>COMMIT</b> causes this error cuz some processes or BADI's  are accessing the table at memory level, so if you use this explicit bapi_transaction_commit maybe it will raise that error...
    Have your tried to remove that function call?
    Please acknowledge if it worked...
    Regards,
    Gerardo.

  • Error while deploying project with external variables

    Hi,
    We are facing issue to deploy a project which contains external variables. In the process of publishing, we check true - Smart Publish. In the deployment process I get a screen where we define the Deployment Topology. On clicking Deploy button, the next screen we get an error which says:
    Error(s) found while creating external variables for the following engines: <Engine_Name>: Login failed for the user '<DB User>'.
    The DB User and the databases are created by the ALBPM Configuration wizard while configuring. We are able to login to SQL using the same userId and also can access the tables in the database. Also, we use the same DB userId for the Engine Databse too.
    We are using ALBPM Enterrpise 5.7 MP3
    WebLogic 9.2
    SQL Server 2005
    If anyone has resolved such issue earlier, we need your urgent help.
    Please suggest
    Thanks and Regards
    Jayant

    Hi,
    When you initially ran the wizard to create the Engine tables you used a user and password that had been granted CREATE table authority for Sql Server.
    When you publish and deploy a project with External Variables (project variables in 6.0), you are adding columns to one of the Engine's tables. When you get the error you're getting, this normally means that the database user you specified has not been granted ALTER privileges for the database tables.
    This should be pretty easy for your DBA to check out and fix. Once they do the GRANT, do the publish and deploy once again.
    Hope this helps,
    Dan

Maybe you are looking for

  • 6600 access point - pain / help me

    I've just got me hands on a 6600 and it keeps asking me to select an access point (ie: GPRS or my provider) if I say yes it dials up the number - if I say no (cancel) it go's away for about a minute then "pops" back up - can anbody tell me how to STO

  • Unable to update error tied to Unable to purchase error?

    I have tried changing the DNS servers to both Google (8.8.8.8,  8.8.4.4) and openDns (208.67.222.222, 208.67.220.220) and have had no luck updating to 5.1.  I have tried multiple Wi-Fi connections.  I haven't tried updating through itunes becase I ha

  • System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError:

    Hello, I have a problem about jDriver the configuration is: solaris 8 WLS 6.1 sp2 Oracle9i 9.0.1 jDriver oci 901_8 (Weblogic server and Oracle db in same machine) I follow the "Installing WebLogic jDriver for Oracle" setting from BEA online documanta

  • Removing XML elements

    Hi all! I have a problem about an xml. I have to eliminate redundancy So from this xml: <xml1> <Property> <Parameters1> <Param> <name>A</name> <prop></prop> <!--this doesn't matter--> </Param> <Param> <name>B</name> <prop></prop> <!--this doesn't mat

  • Printer error with InDesign CS4

    I have the Adobe Master Collection installed on Windows 7 64bit (Pruchased through MS Volume License).  Before installing windows 7, the system had Windows Vista Business 64-bit installed and had the same problem, so it is not OS related.  Connected