Cl_gui_alv_tree node layout not working!

Hi guys!
I have the following situation.
I use a Tree, and an Item layout. All setting in the node_layout don't work,
With the item layout i set a specific item.
When I set this icon, i still have the "folder" icon of the node layout in my tree, so i have two displayed items.
Thats why i tried to set the icon of the node layout to the "dummy_icon"
however, all settings i try with the node layout didn't work. If I set an icon into the node layout EXP_IMAGE or N_IMAGE it doesn't work as well.
ls_item_layout-fieldname = gd_tree->c_hierarchy_column_name.
  ls_item_layout-style     = cl_gui_column_tree=>style_default.
  ld_node_text             = ls_equnr.
ls_node_layout-N_IMAGE = 'ICON_DUMMY' "doesn't work
ls_node_layout-EXP_IMAGE = 'ICON_DUMMY' "doesn't work
ls_node_layout-isfolder = ' '   "doesn't work
  APPEND ls_item_layout TO lt_item_layout.
* Add node
  CALL METHOD gd_tree->add_node
    EXPORTING
      i_relat_node_key = p_relate_key
      i_relationship   = cl_gui_column_tree=>relat_last_child
      i_node_text      = ld_node_text
      is_outtab_line   = ps_equi
      it_item_layout   = lt_item_layout
      is_node_layout   = ls_node_layout
    IMPORTING
      e_new_node_key   = p_node_key.

Hi,
Check this demo program BCALV_TREE_06. You can find the soluition.

Similar Messages

  • Ukelele generated custom keyboard layouts not working in Lion?

    I asked this question in the stackexchange site a few days ago.  Nothing I've tried has worked so far, except for creating a new account.  Because a fresh account works, it's got to be something with my preferences, right?
    http://apple.stackexchange.com/questions/21691/ukelele-generated-custom-keyboard -layouts-not-working-in-lion
    Here's the question from above:
    I created a custom keyboard layout with Ukelele (http://scripts.sil.org/ukelele) in Snow Leopard (idea is to generate scandinavian letters with Alt-key, otherwise have a pretty much standard U.S. layout). After the upgrade, the old installed (to ~/Library/Keyboard Layouts) layout wasn't working.
    Ukelele seems to work OK in Lion, but whether I put the generated keylayout in a bundle or single file, or save it "/Library/Keyboard Layouts" or "~/Library/Keyboard Layouts" doesn't seem to matter.
    Help?
    EDIT:
    @Sergio, I cannot choose the layout in Input Sources. One keylayout file I tried:http://semeai.org/~sjl/us-scands.keylayout
    [EDIT: Removed unrelated stuff]
    UPDATE 2011/08/15:
    @Tom:
    Copied your keylayout (it naturally ended up in my Junk folder):
    midgard (01:55) >ls -l ~/Library/Keyboard\ Layouts/MongolianQWERTY.keylayout-rw-r--r--@ 1 sjl  staff  44536 Mar 13  2008 /Users/sjl/Library/Keyboard Layouts/MongolianQWERTY.keylayout
    Logged out, logged in, isn't showing in Input sources (I'm looking very closely between "Maori" and "Myanmar - QWERTY").
    I've also uninstalled bunch of software and plugins giving suspicious messages to system.log, but hasn't helped.
    UPDATE 2011/08/16:
    I created a test account, and lo, the layout works perfectly for it. Also the bug in preferences doesn't show for that account. When trying this on my own account, there are no errors in Console logs with the suggested keywords (I can't seem to locate console.log file, though).
    UPDATE 2011/08/16 later:
    Nuking Library/Caches (and relogging) didn't help.
    UPDATE 2011/08/17:
    I did
    % find Library -name "*.plist" -exec mv {} {}.renamed \;
    and restarted, but it didn't help. I restored the situation with
    % for file in `find Library -name "*.plist.renamed"`; \  do mv "$file" "${file//.renamed/}"; done
    addendum: I also went through all the .plist files with plutil -s as described inhttp://www.askdavetaylor.com/can_i_check_my_plist_files_in_mac_os_x_for_problems .html. There was some brokennes, but in very unrelated applications.

    Tom,
    I think I love you.
    That absolutely did it! Thanks so much!
    If you'll answer with the same link in the stackexchange site, I'll mark the answer as correct, so you'll get the rep there.
    Thanks,
    Sami

  • Purchasing Info record screen layout not working for ME11

    Dear All Experts,
    I got requirement where GR Based IV and GR should be required for one vendor. So htought to create PIR from where I can make these two fields DEFAULT. So I went to table T162 from where I can make these two fields mandatory for ME11.
    I followed the path : SPRO - Materials Management - Purchasing - Prcahsing Info Record - Define Screen Layout for making fields mandatory for ME11.
    It is not working at all, as well I can see rest irrelevant fields which are not of my use are required. Have I missed any piece of configuration somewhere in MM ?
    Experts guidance from forum will be very much appreciable.
    Regards,
    Revati Joshi.

    HI,
    as you know we can create purchasing info record manually as well as automatic at time of Po creation
    If you mark it in ME11 manually it will be helpful to you
    or you can mark its required field in Vendor master record as well for your vendor account group in following path.
    Logistic general - Bunisess partner -vendors > control > define accont groups and field selection > select your account goups and click on details and double click on purchase data and check for "GR based invoice verification" and mark required field
    Regards
    kailas ugale

  • Logic Node 9 not working with mac mini

    MBP late 2008 4gb ram 500gb hd + New Mac Mini 2009 Base with 1gb ram
    Logic Node installed - settings under audio checked... etc
    Node working (slightly) see picture
    I had to unplug the edirol keyboard, brother laser printer, fw800 drives, 3 usb hard drives, external alu keyboard griffin powermate and turn off airport to get working.
    then after it was working I would still get overload messages (see below)
    barely sending anything to the node...
    [IMG]http://www.musicrowsongs.com/logicnode.jpg[/IMG]
    any ideas?
    thanx
    michael

    1.) when node not working it appears to be the fw800 drives
    2) when it does work - no major node processing
    [img]http://www.musicrowsongs.com/logicnode2.jpg[/img]
    Using a lot of high end waves plugs
    mercury v6r7 - perhaps Maserati - API - SSL not going into the node? Why?

  • Matlab node does not work

    I tried to implement a function that a colleague had coded in Matlab.  I noticed that it did not seem to operate.  Next, I resorted to trying the example quoted in LabVIEW help.  This did not work either, i.e., the script
    a = rand(50);
    surf(a);
    did not open any new windows.  Another test vi that used Matlab node with x (vector), a, b (real numbers) inputs and y (vector) output intended to produce a line with the slope of a and intercept b did not yield any output whatsoever.  Can anyone suggest the reason for this?  I am using LabVIEW 6.1 full version and Matlab 7 R14 SP1.

    I might suggest taking a look at the following link:
    http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument
    I have a suspicion that you are correct about this being "I did not tell you to upgrade to THAT version" problem.  This interface is very susceptibility to the version of both LabVIEW and MATLAB. 
    Andy F.
    National Instruments

  • Push replication on start up of a new node is not working

    Say, if one cluster alone is started initially and there are few elements added to it and then I start the second cluster with push replication enabled.
    How do I load the already added elements in the first cluster to the second one ?
    This is not working in my current setup. Is there any special config that I need to add?

    By default Push Replication only replicates entries as they are added to a system.  If Push Replication is not configured initially, is started in a "stopped" mode instead of "suspended" mode, the initial entries will not be replicated.
    The easy solution to this is to start Push Replication in "suspended" mode.
    Hope this helps.
    -- Brian
    Brian Oliver | Architect | Oracle Coherence

  • Submit Button In Web Dynpro Layout not working.

    Hi All,
             I have integrated an adobe form in my web dynpro application.According to my requirement the view of screen should change when the user clicks on submit button.So I have given the submit button as one of the UI element in my WD object along with the form.But when I click on the submit button the functionality doesnot work.
    The same submit button works when there is no adobe form integrated in my WD application.
    Please let me know what needs tyo be done so make that submit button work.
    Thanks and Regards,
    Sarang

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • Layout not working in IE but fine in all other browsers?

    Hi,
    I'm probably missing something very simple, but can anyone shed some light on as to why the a coloumn keeps jumping in IE but works & looks as it should in all other browsers.
    The link to the page in question is below, I have tried fixing the width and even rebuild the page but all to no avail.
    http://www.gecodesigns.com/test/touringsport/football-tours.html
    Many thanks
    Alex

    First thing - all webpages should have a doctype.  Yours doesn't.  Add one that is consistent with the code you have already used on the page (looks like HTML 4.01 Transitional).  This will prevent browsers from rendering the page in quirks mode (a bad thing).
    Second - don't use commas or spaces in file/pathnames:
    background-image: url(images/Touring%20Sport%20-%20Sports%20Tours,%20Schools%20Tours%20and%20Corporate%20To urs.jpg);
    Third - when you specify a font, do it as a family, not a single font.  In your case, a computer that doesn't have Helvetica will default to Times New Roman, which is probably not what you intended:
    .Contact_Header {
    font-family: Helvetica;
    Fourth - justified text is not very satisfactory on the web, and is harder to read than non-justified text:
    .Main_Text {
    font-family: Helvetica;
    color: #666;
    text-align: justify;
    Finally, in addition to these things, wonky code is the cause of your problems.  Here is the validation report for this page - there are many things there that need to be fixed -
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.gecodesigns.com%2Ftest%2Ftouringsport%2 Ffootball-tours.html&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent= W3C_Validator%2F1.2
    Also, read this about the impact of using col- and rowspans the way you have in your layout tables -
    http://www.apptools.com/rants/spans.php

  • "Use presets for responsive layout" not working in Chrome

    I am building a responsive website. I am going to have parts of the website animated using Edge Animate. I will make the animation and then insert it into a div in the responsive website I am building.
    The Adobe Edge animation has a width of 100%, so that it resizes according to the area that it occupies the full width of the div no matter how wide that div may be in px.
    It is all working fine, but:
    I have an image in the Edge animation that is center aligned. It must stay center aligned no matter what width the animation ends up being.
    Within Adobe Edge, in Properties, in Position and Size, there is a option where, if you hover your mouse cursor over the top right button a tool tip says "Use presets for responsive layout"
    With the image on the stage selected, I can click on the "Use presets for responsive layout" button and then choose "Centre background Image".
    It works perfectly in all browsers accept Chrome (even IE is playing ball this time). In chrome the width of the image stretches out as the div stretches out..
    The "Centre background Image" setting says that it won't scale the image. But in Chrome it does.
    What can I do to "tell" Edge Animate to center the image but not scale it in the Chrome browser?
    I can see that in the image properties it is set to Background image x axis and y axis 50%. And the width is set to pixels. But in Chrome, the image stretches.
    If you go to http://www.brainstormadvertising.co.uk/demo/services.html you will see what I mean. The circle image is centering BUT stretching in chrome browsers while centering nicely and NOT stretching in other browsers.

    Thank you for your reply Josh. But the point of this setting in Edge Animate is that you can set it up that the background image is center aligned and does not scale. Yet it produces code that gives the width as 21.72%.
    A little further along I see background-size: 48px; .  This is correct.
    So all the browers are reading background-size: 48px; as the scale measurement but Chrome is reading the width only, not the background-width. So this "Use presets for responsive layout" works in all browsers except chrome.
    I don't know how to change that code after the artwork has been published. I can see the code using Firebug, but where do I change it in my code on my computer before uploading to the server?
    I have reported this bug to Adobe.
    Please see the attachment. You can see where all the settings are made and where I am getting a problem.

  • SharePoint2013 referencing external JS file in page layout not working

    Hi,
    I have created a custom page layout. In that custom page layout I have many HTML markup and controls like Dropdowns, hyperlinks (hrefs) etc. 
    Clicking on hyperlink hides or shows a div. The HTML markup and controls shows up fine when I create a page from page layout.
    The issue I am having is the JavaScript to hide or show div is in external JS file, which I am referencing in the page layout as below:-
     <SharePoint:ScriptLink name="~sitecollection/Style Library/Scripts/my.js"
     runat="server" />
    But when I click on “hyperlinks (hrefs)” the script in external js file doesn’t fire.
    I also tried using
    <script src="../../mysite/Style%20Library/Scripts/my.js"></script>
    I even tried below:-
    <script type="text/javascript" language="javascript" src="</script">https://sharepoint.com/mysite/Style%20Library/Scripts/mys.js"></script>
    <SharePoint:ScriptLink id="ScriptExternalJs" runat="server" Name="~SiteCollection/Style Library/Scripts/my.js" OnDemand="false" LoadAfterUI="true" Localizable="false" ></SharePoint:ScriptLink>
    But nothing seem to be working, I am able to refer an external CSS file but
    not JS file within the pagelayout under "PlaceHolderAdditionalPageHead" section.
    Any idea what's wrongs?
    Thanks,

    Hi,
    Please try to use the following statement:
    <link id="Link1" href="<% $SPUrl:~SiteCollection/Style Library/Scripts/my.js%>" runat="server" type="text/script" />
    More information is here:
    http://microsoft-techies.blogspot.com/2014/03/how-to-add-styles-and-javascript-files.html
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Trying to embed a youtube video on phone layout- not working

    Whenever I embed the following link for the phone layout, it appears to work well, until I try accessing the site on my phone and the video does not appear at all:
    <iframe width="320" height="180" src="//www.youtube.com/embed/QtJmckpjmfU?feature=player_embedded" frameborder="0" allowfullscreen></iframe>
    I have taken the original code and cut the width and height in half to fit on the phone display, but for some reason It does not appear on the live website when I access it on my phone.
    The desktop version works great. Here is the page I am trying to upload it to:
    Stop Copying Me
    Thanks
    Message was edited by: Liam Dilley - Link was throwing up an error and the forums marked this for moderation, so I edited out the link.

    Have you tried changing the value of src attribute in your code to begin with “http:// rather than “// ?
    So your src value should look like http://www.youtube.com/embed/QtJmckpjmfU?feature=player_embedded
    See if that works.
    Cheers,
    Vikas

  • Extending Container for custom layout not working properly

    I'm trying to extend javafx.scene.layout.Container to make a custom layout manager that centers a grid of components and fills all available area in the stage (minus some insets, eventually). I'm using some private members to do this, but it's also being done by the JFXtras library, for example. (Incidentally, I would use the new MigLayout in JFXtras 0.3, but it may have an issue that doesn't allow me to do what I'm trying to do, see [http://groups.google.com/group/jfxtras-users/browse_thread/thread/a26bb47bbbc710a0]). Here's what I'm expecting from the layout:
    | 1 2 |
    | 3 4 |
    and after a resize something like:
    |           |
    |   1   2   |
    |           |
    |   3   4   |
    |           |
    -------------So far, my Container implementation is getting there, but I need to resize the window once after the application starts up to get it to work right. Right after it starts, the nodes are all drawn at 0,0. It appears as though scene.width and scene.height are only initialized properly after my impl_layout function is called the first time, but I'm relying on these to calculate the width and height of the scene/stage to do the centering. If I instead rely on scene.stage.width and scene.stage.height, it works right at startup but doesn't work properly when resizing.
    What should I do to fix my layout method? Is there a better way to handle this layout? HBox and VBox don't give me what I want because they don't set the positions of the components to fill the available screen area. I'm using JavaFX 1.1 on OS X.
    ----- GridContainer.fx -----
    import javafx.scene.Group;
    import javafx.scene.layout.Container;
    public class GridContainer extends Container {
        public var rows: Integer = 3;
        public var columns: Integer = 3;
        init {
            impl_layout = doGridLayout;
        function doGridLayout(g:Group):Void {
            println("width = {g.scene.width}");
            println("height = {g.scene.height}");
            def tXIncrement = g.scene.width / (columns + 1);
            def tYIncrement = g.scene.height / (rows + 1);
            var tX: Number = tXIncrement;
            var tY: Number = tYIncrement;
            var r: Integer = 0;
            var c: Integer = 0;
            for (node in g.content) {
                node.translateX = tX - (node.boundsInLocal.width / 2);
                node.translateY = tY - (node.boundsInLocal.height / 2);
                if (++c == columns) {
                    tX = tXIncrement;
                    c = 0;
                    if (++r == columns)
                        break;
                    tY += tYIncrement;
                else {
                    tX += tXIncrement;
    ----- Main.fx -----
    import javafx.scene.paint.Color;
    import javafx.scene.Scene;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    def width = 640;
    def height = 480;
    Stage {
        title: "Layout Test"
        width: width
        height: height
        scene: Scene {
            content: [
                GridContainer {
                    rows: 2,
                    columns: 2,
                    content: [
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.BLACK
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.RED
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.GREEN
                        Rectangle {
                            width: 150,
                            height: 100,
                            fill: Color.BLUE
        } // Scene
    } // Stage
    ----------

    Incidentally, MigLayout is capable of doing this properly, but I had to create MigNode objects for each cell (see discussion link above).
    I'm still interested in how to do this with a custom Container, because I may end up using my own layout code in the future anyway...

  • ALV-Tree Node click not working

    Hi All,
    I am displaying the data in ALV tree. When the user click on the node i want to capture some event and method in which i have to do some coding. Can you tell me which method and  event i should use to achieve this functionality. its bit urgent.
    Immediate response will be apprecited.
    Regards,
    Ranjan

    Hi ,
    I have gone through the link. I have done the below part in my coding even though when i double click on the node, the event node_double_click is not getting triggered. Kindly suggest me what i have missed.
    1) Register event with tree instance:
    Register event for NODE_DOUBLE_CLICK
    l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
    APPEND l_event TO lt_events.
    (2) Set handler for event:
    SET HANDLER l_event_receiver->handle_node_double_click FOR tree1
    (3) Define and implement event handler method:
    METHODS handle_node_double_click
    FOR EVENT node_double_click OF cl_gui_alv_tree
    IMPORTING node_key.
    ENDCLASS. "lcl_tree_event_receiver DEFINITION
    CLASS lcl_tree_event_receiver IMPLEMENTATION
    CLASS lcl_tree_event_receiver IMPLEMENTATION.
    METHOD handle_node_double_click.
    break-point.
    ENDMETHOD. "handle_node_double_click
    Regards,
    Ranjan

  • Hierarchy Node Variable not working

    Hello,
    I created two variable one being Hierarchy Node variable and other Hierarchy variable.
    I am using this for the Internal order hierarchy.
    I amd also working on 2004s and not 3.5 version.
    I restricted the Internal order and then selected the variable and then selected the nodes and before moving the Nodes variable, I also selected the Variable for the Hierarchy and then moved the Node variable to the right screen.
    When I run the report, the option for the selecting the Hierarchy appears and I selected the correct Hierarchy, but when I go to the Hierarchy Node variable, I do not see the Nodes for that Hierarchy I selected in the first variable and it always like a fixed value Hierarchy defaults to the first Hierarchy.  Hence I am unable to select the node to execute the report.
    I would appreciate any ones feedback.
    Thanks
    Sundar

    I am working in 2004s as well (SP11) and I am trying to do the same type of thing.
    I have multiple cost center hieriarchies that the user can choose from at run-time using the hierachy variable.
    Then once the user chooses to the hierarchy they then should go choose a specific node that they want to run for in that hierarchy using the Cost Center Hierarchy Node variable (using the hierarchy variable, not fixed hierarchy).
    When I run this in the web I am allowed to choose one of the multiple cost center hierarchies... this means that the hierarchy variable is working, however when i go to choose the specific cost center node for that hierarchy it uses the defult cost center hierarchy instead of the one selected in the selection screen.
    If anyone can shed some light on this it would be greatly appreciated.
    Aaron

  • Java Gridbag Layout Not Working

    Hi,
    I have a java sound applet that works, with buttons and icons and combo boxes. I have just added a label and I want the label to appear beneath the buttons and combo boxes, so I decided that Gribag is the best way of achieving this. However, I have set all the co-ordinates to the right places, and suddenly, everything is in the center in one line. Here is the code:
    import javax.swing.*;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class SoundApplet extends JApplet
                             implements ActionListener,
                                        ItemListener {
        AppletSoundList soundList;
        String auFile = "spacemusic.au";
        String aiffFile = "flute+hrn+mrmba.aif";
        String midiFile = "trippygaia1.mid";
        String wavFile = "monkwebstune.wav";
        String chosenFile;
        AudioClip onceClip, loopClip;
        JComboBox formats;
        JButton playButton, loopButton, stopButton;
        boolean looping = false;
        public void init() {
            String [] fileTypes = {auFile,
                                   aiffFile,
                                   midiFile,       
                                   wavFile,};
            Container contentArea = getContentPane();
            contentArea.setBackground(Color.black);
            GridBagLayout flowManager = new GridBagLayout();
            GridBagConstraints pos = new GridBagConstraints();
            contentArea.setLayout (flowManager);
            formats = new JComboBox(fileTypes);
            formats.setSelectedIndex(0);
            chosenFile = (String)formats.getSelectedItem();
            formats.addItemListener(this);
            formats.setBackground(Color.blue);
            formats.setForeground(Color.white);
            pos.gridx = 1; pos.gridy = 1;
            contentArea.add(formats, pos);
            Image playImage = getImage( getCodeBase () , "play.gif" );
            ImageIcon playIcon = new ImageIcon( playImage );
            playButton = new JButton("Play", playIcon);
            playButton.addActionListener(this);
            playButton.setBackground(Color.green);
            playButton.setForeground(Color.black);
            pos.gridx = 1; pos.gridy = 1;
            contentArea.add(playButton, pos);
            Image loopImage = getImage( getCodeBase () , "loop.gif" );
            ImageIcon loopIcon = new ImageIcon( loopImage );
            loopButton = new JButton("Loop", loopIcon);
            loopButton.addActionListener(this);
            loopButton.setBackground(Color.yellow);
            loopButton.setForeground(Color.black);
            pos.gridx = 2; pos.gridy = 1;
            contentArea.add(loopButton, pos);
            Image stopImage = getImage( getCodeBase () , "stop.gif" );
            ImageIcon stopIcon = new ImageIcon( stopImage );
            stopButton = new JButton("Stop", stopIcon);
            stopButton.addActionListener(this);
            stopButton.setEnabled(false);
            stopButton.setBackground(Color.red);
            stopButton.setForeground(Color.black);
            pos.gridx = 3; pos.gridy = 1;
            contentArea.add(stopButton, pos);
            JLabel Occult = new JLabel ("Occult");
            pos.gridx = 2; pos.gridy = 3;
            contentArea.add(Occult, pos);
            setContentPane(contentArea);
            JPanel controlPanel = new JPanel();
            controlPanel.add(formats);
            controlPanel.add(playButton);
            controlPanel.add(loopButton);
            controlPanel.add(stopButton);
            controlPanel.add(Occult);
            getContentPane().add(controlPanel);
            controlPanel.setBackground(Color.black);
            setContentPane(contentArea);
            startLoadingSounds();  
        public void itemStateChanged(ItemEvent e) {
            chosenFile = (String)formats.getSelectedItem();
            soundList.startLoading(chosenFile);
        void startLoadingSounds() {
            //Start asynchronous sound loading.
            soundList = new AppletSoundList(this, getCodeBase());
            soundList.startLoading(auFile);
            soundList.startLoading(aiffFile);
            soundList.startLoading(midiFile);
            soundList.startLoading(wavFile);
        public void stop() {
            onceClip.stop();        //Cut short the one-time sound.
            if (looping) {
                loopClip.stop();    //Stop the sound loop.
        public void start() {
            if (looping) {
                loopClip.loop();    //Restart the sound loop.
        public void actionPerformed(ActionEvent event) {
            //PLAY BUTTON
            Object source = event.getSource();
            if (source == playButton) {
                //Try to get the AudioClip.
                onceClip = soundList.getClip(chosenFile);
                onceClip.play();     //Play it once.
                stopButton.setEnabled(true);
                showStatus("Playing sound " + chosenFile + ".");
                if (onceClip == null) {
                    showStatus("Sound " + chosenFile + " not loaded yet.");
                return;
            //START LOOP BUTTON
            if (source == loopButton) {
                loopClip = soundList.getClip(chosenFile);
                looping = true;
                loopClip.loop();     //Start the sound loop.
                loopButton.setEnabled(false); //Disable loop button.
                stopButton.setEnabled(true);
                showStatus("Playing sound " + chosenFile + " continuously.");
                if (loopClip == null) {
                    showStatus("Sound " + chosenFile + " not loaded yet.");
                return;
            //STOP LOOP BUTTON
            if (source == stopButton) {
                if (looping) {
                    looping = false;
                    loopClip.stop();    //Stop the sound loop.
                    loopButton.setEnabled(true); //Enable start button.
                else if (onceClip != null) {
                    onceClip.stop();
                stopButton.setEnabled(false);
                showStatus("Stopped playing " + chosenFile + ".");
                return;
    }How can I get everything to follow the co-ordinates I specified?
    Thanks in advance.

    try setting a weightx or weighty with a non-zero number between 0 and 1.
    constraint.weightx = 0.5;

Maybe you are looking for

  • Tethering via USB between the Z10 and a laptop or PC & and few Comments About the Playbook Tethering

    Tethering via USB between the Z10 and a laptop or PC can be a bit tricky. On the Z10 do the following: On the Z10 go to the Settings. Go to Network Connections. Go to Internet Tethering. Select USB. Turn on Tethering. On the computer run the Blackber

  • Are imported photo's duplicated in other photo software?

    I have my digital camera set up to import to iPhoto, where I categorize, make albums, etc. Sometimes I use Image Browser, ACDSee or Canon EOS Viewer to access my photos as well. Are these other programs pulling the photos from iPhoto's library? In ot

  • Deliverables right or wrong

    Could someone have a look at these and tell me which are valid and which are invalid. A formal definition (or input grammar) of an expression will also help you to understand what makes up valid data that your program should correctly evaluate. Expre

  • Salary Packaging Configuration

    Hi Guys, I am new to FBP configuration in Payroll-India. Could some one explain me the steps i need to follow for FBP configuration. The requirement is, Employee need to select the components from total package for tax exemptions. What is prerequisit

  • Using shuffle without ear buds

    How can you switch songs without using earbuds? If I have this connected to any device, all I can do is turn on shuffle or play in order.