Problem with J components...

Question: Why do JComboBox or JTextField ( and I pressume others ) do not work if I put them in a JWindow. They work only in a JFrame.
In jdk1.5.0 JComboBox was working properly in a JWindow as well. In the 1.6.0 it does not!
Do you know what might be the problem and what do I have to do to make it work?
Thank you!

Try reposting this question in the Swing forum. When you repost, provide a small, compilable example of your problem.

Similar Messages

  • Problems with Logical Components

    Hi All,
    I am having problems with Logical Components with our project. We are implemeents SAP HCM and we have defined a logical component Z_ERP for the ECC server. now when you look at the transaction from SOLAR02 it seems they also have a logical Component SAP Learning Solution that is assigned to them. what could be the cause of this???

    Hi Trevor,
    If you brought them in from the Business Process Repository, the logical component is going to be the default one. If you want to use your own, you need to replace the default one with yours.
    You can do this in SOLAR_PROJECT_ADMIN by going to the System Landscape tab > Systems tab > highlight the SAP Learning Solution logical component row > press F4 > replace it with Z_ERP.
    If for some reason SAP Learning Solution isn't listed as a logical component you may have to add it, you can also just go to SOLAR02 > Edit > Replace Log. Comp > Enter SAP Learning Solution in the top box and Z_ERP in the bottom one > click Save.
    regards,
    Jason

  • Problems with many components

    Hi everybody, I am building a GUI using swing, everything is ok, but some times the OutOfMemoryError() occurs. I have 256 Mb in my PC, but in my application I use a lot of components too.
    Does any body know how can I manage the memory and free the space that is not in use????
    Thanks in advance.

    Hi!
    I've the same problem with some of my applications. What I do is to set the max heap for the java virtual machine. I work with jdk 1.1.8, and the line command parameters are:
    java -ms14m -mx60m my_application
    where -ms is the initial memory heap and -mx is the maximum memory heap. You can increase them if you continue having memory problems.
    About freeing the memory, try searching in the forum for "garbage collection". There are some recomendations to do that.
    Hope it helps!
    Regards

  • RSL Problems with DataVisualization Components and Flex 3.4 SDK

    After discovering that the 3.4.1 SDK included with Flash Builder Beta 2 seems to be incomplete (missing the data visualization components and some of the signed swz files).
    I've attempted to install the latest official build SDK into Flash Builder 4 and I'm running into a problem with the RSLs for datavisualization.swz.  I did have to locate the datavisualization components on adobe.com an coppied them into the apporpiate directories.
    Error #2046: The loaded file did not have a valid signature.
    Failed to load RSL http://...com/flex/rsls/datavisualization_3.4.0.9271.swz
    Failing over to RSL http://...com/flex/rsls/datavisualization_3.4.0.9271.swf
    The app run fine but it isn't caching the RSLs.  Is this a known problem with attempting to use an older build of the SDK with Flash Builder or is there something else going on?  I previously was building this project with Flex 3.2 but I figured while I was at it to upgraded to the latest official 3.4 SDK.

    So I've added the suggested lines to the flex-config.xml and it doesn't help.  I had to alter the path to the swf and swz slightly to get it to match the pre-existing entry for the framework.swz so I have the following rsl entries in my config now:
      <runtime-shared-library-path>
          <path-element>libs/framework.swc</path-element>
          <rsl-url>framework_3.4.0.9271.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>framework_3.4.0.9271.swf</rsl-url>
          <policy-file-url></policy-file-url>
       </runtime-shared-library-path>
      <runtime-shared-library-path>
          <path-element>libs/datavisualization.swc</path-element>
          <rsl-url>datavisualization_3.4.0.9271.swz</rsl-url>
          <policy-file-url></policy-file-url>
          <rsl-url>datavisualization_3.4.0.9271.swf</rsl-url>
          <policy-file-url></policy-file-url>
       </runtime-shared-library-path>
    If I have everything set to be merged into code or have the "Use local debug runtime shared libraries when debugging" checked then the message doesn't appear.  But the minute I attempt to load the swz from same directory as the app or crossdomain like previously I'm getting thie same basic message even with manually coping the swz to the output directory or having the checkbox for "Copy library to deployment path" box checked.
    Error #2046: The loaded file did not have a valid signature.
    Failed to load RSL datavisualization_3.4.0.9271.swz
    Failing over to RSL datavisualization_3.4.0.9271.swf
    I've verified that all the copies of the swz are exactly the same and that no corruption is taking place as all the copies of the swz have the same md5 of 8b3138326f85d4b5b1aae9866f3909c0.  I figured that 3.4 has been out long enough it would be a known issue is there was a problem with how the swz is signed and I'm unable to locate any such beug reports.  I can't be the 1st person to try loading 3.4's datavisualization components as an RSLs.
    The corresponding section of of .actionscriptProperties file for the RSL is currently this
    <libraryPathEntry index="4" kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/datavisualization.swc" useDefaultLinkType="true">
       <crossDomainRsls>
         <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="datavisualization_3.4.0.9271.swz"/>
         <crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="datavisualization_3.4.0.9271.swf"/>
       </crossDomainRsls>
    </libraryPathEntry>

  • Problem with JSF components

    I am having problem with myfaces tomhawk components in a portal environment
    They work fine as a standalone web application
    When we make it a portlet, they render properly, but the pagination and links in the calendar components are not working
    They submit the page to the server, but does nothing

    Hi,
    WLP 9.2 will be using the Sun RI for JSF portlets. We are going to certify with Apache MyFaces post GA.
    The Beta drop of WLP 9.2 is coming soon and you will be able to do more around development.
    We appreciate you taking the time to review the product and provide feedback.
    Regards,
    --alex                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem with flash components in director  tollbox

    1- I have 2 buttons named "makeQst1BT" in frame 1 and  "chkQst1BT" in frame 2,  which both are draged from toolbox.
    First the user gets a random question in frame 2 andhas to answer it, When the user clicks "chkQst1BT" its visible is to disappear after answering. it is done nicely  and button disappears.by  the follwing code.
    sprite("chkQst1BT").visible =false
    then later when user navigates back to a frame 1 again and wants to make a new question and presses "makeQst1BT" this button is to set the visible of "chkQst1BT" to true again by this code:
    sprite("chkQst1BT").visible =true
    BUT here I get script error  indicating that PROPERTY #visible not found.
    Why this happens? and how can I set the visible of  chkQst1BT back to true?
    ( I get many similar script errors saying PROPERTY #text not found in the same movie)
    2- I have draged many textArea flash components from toolbox, then want to change their ink from copy to background transparent, it appearantly accepts this choice but it is still displayed like "copy" with white bakgr.( I do it from property inspector window)
    What is strange is that only one of text Areas changes appearance when ink changed to background transparant but not others.
    Any ideas?
    Thanks in advance!

    First off, you should know that the flash components aren't that predictable/stable to begin with, but anyway.
    1 If the sprite only exists in frame 2 you can't change it's properties in frame 1. What you can do, and I'm reasonably sure you don't need to, is to put the visible code in a on begin sprite handler for a script on the sprite which should be run every time you enter frame 2.
    2. Works fine here so I can only speculate on what's causing your problem. My guess is that the text areas share sprite channel with some other component during your movie and that component has it's ink set to copy. Move the flash text area component to their own channels or add a behavior script to them that sets the ink in the on begin sprite handler.

  • Problem with DVT components on headless server

    JDEV/ADF VERSION: 11.1.1.0.1
    TECHNOLOGY: Fusion Web Application, WLS 10.3
    Hi,
    maybe someone has/has the same problem. I have created a page with
    some basic dvt components like pie and bar charts. Everything works fine on my dev machine.
    When I deploy the generated EAR on the test env (OEL 5, headless) and try to access the
    page (which contains the dvt components) I get the following exception:
    "Can't connect to x11 server ...."
    and the WLS shuts down!!!!
    Has anyone an idea if an x server is mandatory?
    Thanks in advance for any hints,
    Andreas.

    Andreas,
    I don't have a Linux box to test with at the moment, but it has been a common thing I've dealt with in other environments. Have you tried setting up a VNC server on the Linux box and setting the DISPLAY environment variable to reference that display before starting WLS?
    John

  • Problem with dsiplaying components

    hi is it possible in java studion creator 2 update 1 to display components withis the table as we use <table> tag in html. waiting for ur great help pls.
    Regards
    Anandkumar

    I am not sure about your question so I will give 2 answers. Hopefully, one of the answers will answer your question.
    If you want the components to be layed out in rows and columns, add a Palette > Basic > Layout > Grid Panel to the page, set the number of columns, and put the components in the grid panel. You can nest grid panels and group panels in the grid panel to create complex layouts.
    You can use the Table Layout dialog box to set the types of components that appear in each column of a Palette > Basic > Table component. If you want to add additional components to a column, drop the component into column. See "Adding an Insert Feature" in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html. In that section, you add Message components to columns.

  • Children problem with composite components

    Hi,
    I'm using Mojarra 2.0.2-FCS and playing with JSF 2.0 composite components.
    I have a simple composite component named textRow which puts a label and input text. Here is the code:
    <composite:interface>
        <composite:attribute name="label" required="true" />
        <composite:attribute name="value" />
    </composite:interface>
    <composite:implementation>
        <h:outputLabel value="#{cc.attrs.label}" />
        <h:inputText value="#{cc.attrs.value}" />
    </composite:implementation>When I use this composite component inside a h:panelGrid with 2 columns (like code fragment below), first component goes to first column, second component goes to second column. But this is not what I want. I want to put all the labels to the first column and inputs to the second. How can I make this?
    <h:panelGrid columns="2">
        <my:textRow label="firstName" />
        <my:textRow label="surName" />
    </h:panelGrid>

    Hi Anca
    You can just type it in.

  • Cairngorm & Problems with Shared Components

    Thanks in advance for any help. I still consider myself a
    newbie, so please excuse any stupid errors that I make in
    describing the problem I am having.
    I am working on a Cairngorm app, the framework of which has
    been handed to me. I have a component that can be used to either
    enter or "update". Update is in quotes because what really happens
    is that the old record is voided and a new one is entered -- but
    the user is oblivious to this.
    This component, which wraps and submits the data, is
    instantiated twice in the app. Each instantiation is accessed via a
    different "link". The problem: each time the user enters or
    "updates", 2 records entered. I watch it in debug, two RPC's and
    two results. I assume that this is because the component is
    instantiated twice and, for the life of me, I cannot figure out how
    to prevent this. I
    I have tried a couple of things 1) created two sets of events
    (Cairngorm & Completion), one for submit and one for modify,
    but because the command expects a Cairngorm event of a certain
    type, it can't handle both without a bunch messing around. I tried
    using one initial Cairngorm event (submit) and two distinct
    completion events, but no go. I am thinking about now creating two
    commands .... ???
    Actually, this is not a new problem. I am a bit under the gun
    here, so when it came up before, I duplicated all the code,
    including everything related to RPCs (DTOs, commands, etc.) but
    this is becoming a nightmare to maintain and is bad, bad, bad ....
    Any suggestions? This cannot be a completely uncommon thing?

    I am not sure why you need to instantiated the component
    twice. A component can broadcast several different events of the
    same Type. For an example:
    broadcaster.broadcastEvent(WidgetEvent.ENTER, new
    WidgetEvent(widgetVo));
    broadcaster.broadcastEvent(WidgetEvent.UPDATE, new
    WidgetEvent(widgetVo));
    Are you sure the component doesn't broadcastEvent 2 calls for
    a each click? Perhaps one is being fired off in a subclass and the
    other in the super class?
    "...but because the command expects a Cairngorm event of a
    certain type..."
    The command expects a Event Type. Cairngorm will deserialize
    your custom event into a Event type with the following properties:
    public var type:String;
    public var data:Object;
    So the data will property will hold your custom Event. And
    you would set that as an instance var in the command.

  • Problem with Loader Components, can not display my forms properly

    Here is the problem (my God, my customer waiting for his web
    site:( ... ) I have a form made in CoffeeCup Flash Form Builder
    (Nice one...).Now this form with fields like name, sec name age,
    etc I want it to apear into my main screen when I press the button
    "Reservation" and then the customer could fill the fields and sent
    it to my mail. I tryed with the Loader Component, I mean when I
    press the button then starts "playing" the form.swf. BUT the Loader
    can not display the form properly specialy thinks like drop down
    menus in the form, or check boxes....It just show me the
    form....The Flash Form Builder gives me 4 files like: form.swf,
    form.html, form.php and form.xml. Any solution on how my customers
    complete this form with no problems?
    THANK YOU A LOT!

    Dear,
    You have to following these step to run form on firefox,
    Run the following file,
    1) C:\DevSuiteHome_1\jinit\jinit.exe
    2) jvm.dll copy this file to the following path,
    C:\Program Files\Oracle\JInitiator 1.3.1.22\bin\hotspot
    3) And firefox connection settiong with 'No-Proxy'
    The above setting it will help full you to run your form on firefox.
    Thank you,

  • Crystalreportviewers javascript, problems with hidden components

    I've been struggling for the last 5 weeks to get the crystalreportviewer working in my webapp.  It is SO close, but I feel like I'm missing something related possibly to the use of the crystalreportviewer (of class com.crystaldecisions.report.web.jsf.UIReportPageViewer)
    The basic problem is that while the viewer is shown on the webpage, the toolbar and report content are not.
    By using FireBug2, I can find the report content and force it to display.  I can do this by changing "visibility:hidden" to "visibility:visible" in the below body tag, generated by the SAP BO provided javascript:
    <iframe id="bobjid_1406231767316_iframe" width="100%" height="100%" frameborder="0" tabindex="0" aria-labelledby="bobjid_1406231767316_h2" margin="0" style="display: block;">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <body>
    <style>
    <div id="OFGCrystalViewercridreportpage" class="crystalstyle" style="width:652;height:861;position:absolute;visibility:hidden;" name="OFGCrystalViewercridreportpage">
    </body>
    </html>
    </iframe>
    I even know the code that creates the iFrame, found at line 160 of ReportPage.js in /crystalreportviewers/js/crviewer/
    However, I don't know how to find the code that sets the content within the body tag, which comes in as a parameter to the iframe-constructing function from somewhere else.
    Similarly, with the toolbar, I can find the html using firebug, and by changing "display:none" to "display:block" and then offsetting the next division down a number of pixels, I can see the toolbar, with the zoom, export, print buttons.
    So...I can make them display by manipulating the webpage the BO Javascript creates, but how do I get them to display by default?
    Jeremy

    I've been struggling for the last 5 weeks to get the crystalreportviewer working in my webapp.  It is SO close, but I feel like I'm missing something related possibly to the use of the crystalreportviewer (of class com.crystaldecisions.report.web.jsf.UIReportPageViewer)
    The basic problem is that while the viewer is shown on the webpage, the toolbar and report content are not.
    By using FireBug2, I can find the report content and force it to display.  I can do this by changing "visibility:hidden" to "visibility:visible" in the below body tag, generated by the SAP BO provided javascript:
    <iframe id="bobjid_1406231767316_iframe" width="100%" height="100%" frameborder="0" tabindex="0" aria-labelledby="bobjid_1406231767316_h2" margin="0" style="display: block;">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <body>
    <style>
    <div id="OFGCrystalViewercridreportpage" class="crystalstyle" style="width:652;height:861;position:absolute;visibility:hidden;" name="OFGCrystalViewercridreportpage">
    </body>
    </html>
    </iframe>
    I even know the code that creates the iFrame, found at line 160 of ReportPage.js in /crystalreportviewers/js/crviewer/
    However, I don't know how to find the code that sets the content within the body tag, which comes in as a parameter to the iframe-constructing function from somewhere else.
    Similarly, with the toolbar, I can find the html using firebug, and by changing "display:none" to "display:block" and then offsetting the next division down a number of pixels, I can see the toolbar, with the zoom, export, print buttons.
    So...I can make them display by manipulating the webpage the BO Javascript creates, but how do I get them to display by default?
    Jeremy

  • Audio/Firewire Problems with Mini, Please Help!

    I just bought a brand new Mini from Amazon.com and am having some problems. First, when I plug computer speakers into the mini, the sound continues to come from the internal speaker and the mini ignores the speakers. In System Preferences, it doesn't even recognize that something is plugged into the machine.
    Second, the Mini does not recognize my external, Firewire iSight camera. In System Profiler, it does not show anything connected to the port when the camera is connected.
    The Mini is the latest rev running 10.4.11. Leopard upgrade disks should be in the mail soon.
    Any ideas as to what is wrong? Should I just return to Amazon for a replacement? Thanks for your help!

    Having just posted in a similar situation, pardon the cut and paste, but these are the first two (and easiest) things to try:
    First reset parameter RAM - it's an area of non-volatile memory used for system settings and hardware configuration. It it gets corrupted, it can cause odd problems.
    Reset PRAM
    -Shut down the computer.
    -Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in the next step but one.
    -Turn on the computer.
    -Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    -Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    -Release the keys.
    Next, perform an SMC reset. The SMC is the device which controls system hardware and devices, so if there is a problem with hardware components not functioning, it could be that.
    To reset the SMC on an Intel mini:
    -From the Apple menu, choose Shut Down (or if the computer is not responding, hold the power button until it turns off).
    -Unplug all cables from the computer, including the power cord and any display cables.
    -Wait at least 15 seconds.
    -Plug the power cord back in, making sure the power button is not being pressed at the time.
    -Then reconnect your keyboard and mouse to the computer.
    -Press the power button on the back to start up your computer.

  • Repaint problems with an applet under Netscape 4.75

    Hello,
    I'm currently working on an applet created with VisualAge for Java, running under the standard Netscape 4.75 JVM, with Windows NT4.
    I am experiencing problems with AWT components which randomly disappear, especially Labels and sometimes Panels. When I drag a window over the missing label and then drag it back, the label appears.
    I have tried a lot of combinations with the repaint(), paint(), paintAll() and paintComponents() methods, but it has not been efficient for the moment. Introducing lots of repaint() calls on the concerned labels is even worse.
    Is there a known bug in the Netscape 4.75 JVM concerning this problem ? Do you have an idea of what can be done to solve this problem ? Changing the JVM is not an option that can be chosen. Netscape 4.75 has been defined as the only browser for the whole project.
    Thanks for your help !
    Kevin

    Well, I finally solved this problem.
    For your information, the JVM included in Netscape 4.75 running under NT4 does not like having AWT labels with either Background or Foreground not initialised. If any of these 2 properties is not defined, it could sometimes occur that the JVM can't display the label.

  • Audio input/output problems with Mac Mini

    at first, my sound just stopped working all together and for some reason the monitor was getting no signal from the mac mini. i unplugged everything for a minute and plugged it back in and the monitor was working again, but still nothing with the sound. no sound coming out from even the internal speaker, and the audio in jack (which i use frequently) stopped working as well.
    this is the really strange part: after tinkering around trying to fix the problem i realized the only sound that comes out it is from the internal speaker, but it only comes out when i have something connected to the headphones jack.
    has anyone ever had a problem like this? i'm just trying to figure out if it is something i can take care of myself, or if i might need some repairs done.

    OK, then two things to do.
    First reset parameter RAM - it's an area of non-volatile memory used for system settings and hardware configuration. It it gets corrupted, it can cause odd problems.
    Reset PRAM
    -Shut down the computer.
    -Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in the next step but one.
    -Turn on the computer.
    -Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    -Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    -Release the keys.
    Next, perform an SMC reset. The SMC is the device which controls system hardware and devices, so if there is a problem with hardware components not functioning, it could be that.
    To reset the SMC on an Intel mini:
    -From the Apple menu, choose Shut Down (or if the computer is not responding, hold the power button until it turns off).
    -Unplug all cables from the computer, including the power cord and any display cables.
    -Wait at least 15 seconds.
    -Plug the power cord back in, making sure the power button is not being pressed at the time.
    -Then reconnect your keyboard and mouse to the computer.
    -Press the power button on the back to start up your computer.

Maybe you are looking for

  • PowerMac G5: Blinking question mark at startup

    I have a 3 1/2 year old G5. When I boot it up, it goes straight to the blinking question mark. I've reset the PRAM, no change. I've tried booting off an installation disk. That gets me to the Apple logo, then the logo pixels go kinda funky and it fre

  • Is Function module GRAPH_SET_CUA_STATUS Obselete?

    Hi SDN, Is Function module GRAPH_SET_CUA_STATUS Obselete? I did not find any thing in Function module documentation whetther this FM is obselete or NOT. If obselete then Pls let me know the replacement for FM GRAPH_SET_CUA_STATUS. in ECC 6.0. Regards

  • My CS6 Mastercollection Dvd's Aren't working anymore

    Hey there, so this is my problem at the moment: Last year i bought the CS6 Mastercollection at this website www.slim.nl, today i wanted to install the collection because my laptop has been cleaned and i had to reinstall everything. now i get this mes

  • Lion won't mount Time Machine backup, but...

    My Time Machine back up to an external drive seemed to have failed. It won't mount on Lion long enough to fix the problem. Other times it just locks up. I dual boot with Vista and it sees the drive and all the files just fine. Any idea of what I can

  • Migrate database strategy, have two question?

    Hello, I will migrate a huge whole database from serverA (9i db) to server B 10G), will do like this: 1. Export/Import structures 2. Disable constraints and set indexes UNUSABLE (check if 10g can set PK/UK indexes to UNUSABLE state) 3. Direct insert