Layout, similar to borderlayout

Hi guys.
i have search but i cant seem to find on. i would like to make a layout similar to BorderLayout.
but with instead of resizing the components it just move them around.
it is mainly for positioning componts on the screen. Alot of times i want to add a components to the BottemLeft hand side of the screen and want it aligned there permentaly.
there should be 8 places to add components
1            2              3
4            5              6
7            8              9and if you add componnet to the screen with the giving number, it should align the item there.
Does any one have some code like this? or know of a layoutManager that does it?
I could use 3 panels and borderLayout on each, but BorderLayout RESIZES compoments and i want something that doesnt
if not... the o well,

unles your nested panels use BorderLayout too... :-) By default JPanel uses a FlowLayout which will respect the preferred size of the component you add to it. So you add your compoent to a panel using a FlowLayout, then add then panel to a secon panel that is using the BorderLayout.

Similar Messages

  • Creating layout similar to group above in Reports but repeating across

    Hopefully this will be a quick answer...
    I have used Oracle Reports since 2.0 and am starting to create reports in BI Publisher. So I am going to ask this in Reports terms and hopefully you guys will understand.
    I want to add data similar to a group above layout in my .rtf template, but instead of the master group repeating down, I want it to repeat across. So it's not a matrix or crosstab layout, there are no 'cell' values.
    How can I do this in BI Publisher?
    Thanks in advance!!!

    Hopefully this will be a quick answer...
    I have used Oracle Reports since 2.0 and am starting to create reports in BI Publisher. So I am going to ask this in Reports terms and hopefully you guys will understand.
    I want to add data similar to a group above layout in my .rtf template, but instead of the master group repeating down, I want it to repeat across. So it's not a matrix or crosstab layout, there are no 'cell' values.
    How can I do this in BI Publisher?
    Thanks in advance!!!

  • Creating a Left Navigation Layout Similar to Oracle Instant Portal

    I am a new user of Oracle AS Portal and have started to use AS Portal after I first warmed up using Oracle Instant Portal. Using Oracle AS Portal, I would like to create a left navigation layout using similar to Oracle Instant Portal that allows the content manager to add "pages" to the left navigation and create a corresponding page on the middle region of the top level page. Does anyone have any ideas on how to go about doing this in Oracle AS Portal?

    Hi,
    I guess, you will have to code a portlet to do that job for you, but in the mean time you could try looking at the Site Indexing Portlet on POINT page (http://www.oracle.com/technology/products/ias/portal/point.html
    thanks,
    Harsha

  • Any Layout Similar to HTML Tables'?

    Is there any layout which would adapt each column and row to its contents so, for example, a panel might end up like this:
    |  | |
    |__|_|
    |__|_|but the several cells would never be misaligned?

    Never mind. I found a link to http://www.netbeans.org/kb/55/quickstart-gui.html on the GridBagLayout tutorial page and, as I'm already using NetBeans, I'll use that feature rather than hand-coding the mess. Thanks!

  • Screen layout for Special G/L indicator

    Hi everyone!
    I would like to know if you create a new special g/l indicator, you can change the screen layout that the system gives you. I need to create some which can have a screen layout similar to the one used in 01 key account.
    Thanks in advanced,
    Olga

    Hi Santosh,
    I´m going to give you some examples about what I want to do. First, I would like to used the special G/L indicator H security deposit which is configurated like as others special G/L transaction types. When I post with this Special G/L indicator the system shows me some fields in the accounting screen layout such as "Due on", "Invoice reference", "Assignment", etc. I would like to change this screen layout because I need fields like "Payment terms", "Payment block indicator", etc. What I did was to change field group status of the reconcilation account that this special G/L indicator has, and key accounting configuration that this special G/L indicator uses. It doesn't work because I make these fields optional and the system didn´t show me those.
    Other I need to do It's make new special G/L indicators because I need to post with a different reconciliation account and I need to configurated the screen layout with fields such us Payment terms, Payment blick indicator, etc. I mean I need to create my own screen layout.
    I don´t know if this gives you more details about what I want to do.
    Thanks so much.
    Best regards, Olga

  • How to Change Layout for Detail iview.

    Hi KM Gurus
    I need to know , where to change the Layout set for Detail Iview.
    Briefly saying....
    1. In KM under /documents ,i have a Folder by the name "MY_FOLDER"
    2. On click of the "Detail" wedge -
    > we get by default the screen of layout similar to [View -->Overview ]
                  All i am looking is , instead of Overview, i want the Feedback layout as default on click of the "Detail" wedge of Folder.
    Note : take a note on  MY_FOLDER ---> Details --> View --> Overview / Feedback..
    Any pointer on this would be highly appreicated...
    Thanks

    Hi Kumar.
    An Overview is hardcoded as default (initial) screen of the Details Dialog Box.
    Thereby, out of the box KM Configuration allows you to:
    1.
    define which areas appear in the standard overview in the right-hand screen area. You can also change the sequence of the areas. For example, you can always display feedback at the very top, and hide public comments. For more information, see [Overview in the Details Dialog Box|http://help.sap.com/saphelp_nw04s/helpdata/en/bd/f6ece7e98f6b42bd5756dad5a7f6eb/content.htm]
    2.
    use an alternative Details dialog box in place of the standard Details dialog box. For more information, see [Alternative Details Dialog Box.|http://help.sap.com/saphelp_nw04s/helpdata/en/45/c51dec75112e97e10000000a155369/content.htm]
    Best regards,
    Aliaksandr Zhukau

  • Displaying large product layout on a page?

    I want to insert a product on a page but the module defaults to the small layout. Is there a way to display the large layout similarly?
    Thanks
    Tom

    Im including a seperate product onto a page for distirbutors sign up... we are doing it in stages though and the small product layout doesnt look right on the page -
    http://www.allnaturalassets.com/sign-up  as you can see the bottom where the item is, the small doesnt look good so im wanting to display the large layout for this one product on that page :-) The module doesnt allow it though out of the box :-)
    Thanks!
    Tom

  • How to ensure Flow Layout wraps contents

    hi,
    having problems with flow layout (in Applet), i can not make it wrap the contents when the window is resized. it just seems to insist that everything be on one line.
    yet i have examples from others that wrap fine. and i believe i am doing everything correct.
    So what's the trick to getting the wrap, and why?

    first thing to say about the flowklayout is that
    1.it respects the componetnt prefered size.
    2.It will arrange the components in one line ( one after another ) respectivily. so the components will appear in the order that you have added them.
    3.it will move the components under each other, each time you try to minimize the Frame or applet, so if the frame or applet is not big enought to be as wide as all the components prefered size it will drop down the least component.
    so it might be better to try another layout, let say BorderLayout. it meight be better.

  • Set specific size for JTextfield/Jbutton in BorderLayout?

    can some one tell me how to set a specific size for JTextfield/JButton in Border/BoxLayout please?
    I stried setSize, setPrefersize, setMAxsize, setMinsize, setBounds... but it won't work?
    For example. If I add a jbutton to a jpanel, which has borderlayout, it will take up ALL the space in that jpanel.
    Thanks

    Typically you use a BorderLayout for the high level layout and then add panels using other layouts to the BorderLayout. So for example on a simple dialog that is using a form that asks your for your first name and last name you would build a panel with those fields and add that panel to the center of the BorderLayout. Then you would create another panel for the "Ok" and "Cancel" buttons which would typically use a FlowLayout. Then you add that panel to the South of the BorderLayout.
    The Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use LayoutManagers has all the information you need to know on using layout managers.

  • Customised layout in iphoto

    Hello everyone,
    I am currently working on a rather large photo book in photo essay theme. For some pages I have chosen the custom layout, with one picture in the middle and no others around. The one in the middle is grey and the others are blue. I therefore understood, that I can unse just the one in the middle.
    When I am now trying to buy the book, it does not allow it, because I have 'frames on one or more pages that do not contain photos'. Does anyone know a way around that?
    Thanks

    Look for a page with a layout similar to this:
    It's the use photo as a page background that's the key to the problem.
    OT

  • Multiple layouts - each patch a different layout

    Hello,
    I am looking for a way to change the layout for each patch individually, instead of just having one layout per concert. I'm working on a one man show, so let's say for one song I am singing, so I want lots of parameters for the voice plugins. On the next song I'm playing keyboard, so I want to have a new layout to play around with the synths. Obviously it's too much knobs to squeeze into one layout, it will be a mess.
    The problem is, if I add or remove any object in any one patch, it affects all the other patches as well. But I don't want that. How to solve that?
    Thanks allot for any input!
    sean

    you can not have different layouts in a single concert file, BUT, you can have many concert files with a different layout using same presets.
    On any Concert, you can drag a Patch or Set out to the finder's desktop, so it is copied there as a collection of control items with NO LAYOUT. similarly, you can drag it back to the patch/set bin and have that patch restored again under the current layout.
    Having said that, you could design a MAIN layout to cover all your needs, set all your patches, and then dragging them all to a finder's folder to have them as individual items.
    Then modify your layout as you please and save it under a different name (ex. SOLO LAYOUT, TWO PERF LAYOUT, etc...). You can turn some controls into other kinds, say, a radio button into a slider, change colors, size, placement..but be aware to not ERASE any item to keep the order they were created so it will correspond when loading a patch. If there is an item you do not need, just make it small and place where it does not disturb you.
    you can even set different midi input mapping to control the screen items.
    Once this is done, you can drag your patch items from the finder to this concert file and everything should work the same under the new layout appearance.
    I use this method when I change between different MIDI controllers on stage, to have a screen look similar to my hardware.
    Hope it helps.
    valgreen

  • Borderlayout problem, make North a bit larger

    Hi,
    I want to create an applet with a border layout, I have the following code to define the layout:
    setLayout (new BorderLayout (0,5));
    add ("North", infoline);
    add ("Center", screen);
    add ("East",vert_scrollbar);
    add ("South", txtinput);
    At the North of the applet I have drawn a Canvas (infoline). But this Canvas can not be fully displayed because the north position is a bit so small, so I want to make the North a bit higher.
    Thanks in advance
    Pieter

    Yes, I know it's a Penal but can you change it to a JPanel?
    This is from the Java API documentation for BorderLayout -
    "The components are laid out according to their ___preferred___ sizes and the constraints of the container's size. The NORTH and SOUTH components may be stretched horizontally; the EAST and WEST components may be stretched vertically; the CENTER component may stretch both horizontally and vertically to fill any space left over. "
    So if it is possible change your infoline class to extend JPanel instead of Panel.
    If this is not possible then place a JPanel inside the north pane, give it a preferred size and then place your infoline inside that JPanel.

  • Duplicate Layout Template error

    Hi,
    I have designed a print layout with Crystal Report (A/R Invoice) and now I would like to duplicate it and create a AR Credit Note layout, similar to Invoice layout.
    When I use th enew utility of sap 8.81 to Duplicate Layout Template (Administration -> Utilities), i'm able to duplicate the layout, but if I try to enter in the new layout with Crystal Report Designer to add a new field, i'm not able to find the AR Credit Note table (ORIN) and I'm not able to add the new field. If I use the new layout with no modify, all the data is correct, but if I want to add a new field I'm not able to do it. Is it a bug or I use a wrong procedure?
    Regards
    Marco

    HI,
    Alternate way you export AR Invoice report in PACKAGE, use same package to import but choose RIN (AR Credit Notes) and place with different name.
    Again go i n Administrator > Setup > General > Report and Layout >
    Edit presently added report and try to add new field on rpt.
    Hope this may work, please do with TEST database
    Thanks
    Kevin

  • Design Layout of Project Dissapears

    This happened to me yesterday, once or twice.
    Now it seems that anytime I save a project and then close down Creator, when I open Creator back up and try to open an existing project the design layout dissapears. So does every object in the Document Outline. The source is still there, but not the "design" tab.
    Has anyone else had this problem and have you isolated it to a sequence of events so I can prevent it in the future

    Looking at the Creator log, I see this
    INFORMATIONAL *********** Exception occurred ************ at Thu Apr 15 15:19:56 PDT 2004
    java.lang.IllegalStateException: [Winsys] TopComponent com.sun.rave.designer.DesignerTopComp[Design,0,0,880x772,invalid,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=null,border=,flags=256,maximumSize=,minimumSize=,preferredSize=] throws runtime exception from its componentActivated() method. Repair it!
    [catch] at org.openide.windows.WindowManager.activateComponent(WindowManager.java:279)
         at com.sun.rave.windowmgr.WindowManagerImpl.activateComponent(WindowManagerImpl.java:368)
         at com.sun.rave.windowmgr.LayoutManagerListenerImpl.reactivateSelectedComponent(LayoutManagerListenerImpl.java:41)
         at com.sun.rave.windowmgr.LayoutManagerListenerImpl.layoutWindowChanged(LayoutManagerListenerImpl.java:125)
         at com.sun.winsys.layout.impl.RLayoutWindow.fireComponentChanged(RLayoutWindow.java:503)
         at com.sun.winsys.layout.impl.RLayoutWindow.stateChanged(RLayoutWindow.java:436)
         at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:287)
         at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:219)
         at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
         at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
         at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:468)
         at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:461)
         at com.sun.winsys.swing.BasicClosableTabbedPaneUI$MouseHandler.mousePressed(BasicClosableTabbedPaneUI.java:3459)
         at java.awt.Component.processMouseEvent(Component.java:5097)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    ==>
    java.lang.NullPointerException
         at com.sun.rave.insync.live.SourceLiveRoot.getInstanceName(SourceLiveRoot.java:34)
         at com.sun.rave.component.html.DocumentComp.<init>(DocumentComp.java:46)
         at com.sun.rave.designer.SelectionManager.updateNodes(SelectionManager.java:2643)
         at com.sun.rave.designer.DesignerTopComp.componentActivated(DesignerTopComp.java:590)
    [catch] at org.openide.windows.WindowManager.activateComponent(WindowManager.java:277)
         at com.sun.rave.windowmgr.WindowManagerImpl.activateComponent(WindowManagerImpl.java:368)
         at com.sun.rave.windowmgr.LayoutManagerListenerImpl.reactivateSelectedComponent(LayoutManagerListenerImpl.java:41)
         at com.sun.rave.windowmgr.LayoutManagerListenerImpl.layoutWindowChanged(LayoutManagerListenerImpl.java:125)
         at com.sun.winsys.layout.impl.RLayoutWindow.fireComponentChanged(RLayoutWindow.java:503)
         at com.sun.winsys.layout.impl.RLayoutWindow.stateChanged(RLayoutWindow.java:436)
         at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:287)
         at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:219)
         at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
         at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
         at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:468)
         at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:461)
         at com.sun.winsys.swing.BasicClosableTabbedPaneUI$MouseHandler.mousePressed(BasicClosableTabbedPaneUI.java:3459)
         at java.awt.Component.processMouseEvent(Component.java:5097)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)I hope that helps. BTW, I'm just trying to re-open the SimpleNavigation tutorial that I created.

  • Swing and jmf

    can u please have a look to the attached file
    i know that this involves the jmf API but I have the feeling that has to do more with swing, thats whay I post my question here
    this simple application is based on the MDI.java example of the jmf web
    pages
    I also added a slider and want to set the playback rate for the player from
    there if possible
    that is I want everytime that I move the slider and the value is biggerthan
    50 the rate to be reduced according to a simple calculation that converts
    the slider value to a value between 0 an1 for the rate...
    so all i want to do is pass the slider value to the player everytime that
    the slider changes value and this is bigger than 50
    the attached file can do that only when the player starts playing the
    file,,,,
    after the player has started and the rate is set I cant change it even if
    the slider moves
    when I tried to do that from within the stateChanged method of the slider I
    was getting a Nullpointer exception because of the EventDispatching thread,
    so I thought to take this piece of code out of there (create the setnewrate
    method in the jmframe instead),,,,but then of course doesnt work like I
    would want,,,,,
    do I have to register the class that implements the frame for the player as
    a ChangeListener on the slider to achieve that, is something like that
    possible....
    I know that swing is not supposed to be thread safe, so maybe this is what
    the problem is after all...any suggestions to that direction?
    Can u please have a look??
    I am a beginner so any help would really be very much appreciated
    thanx :)
    maria
    .....and the attached file
    I think the problem is with the stateChanged method for the Jslider...
    I am getting a null pointerexception because of the eventdispatching thread
    pls ignore any silly mistakes I am a completely newbie in java
    myAppfr2.java
    import javax.media.*;
    import com.sun.media.ui.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import java.util.Vector;
    import javax.swing.border.Border.*;
    import java.util.Hashtable;
    public class myAppfr2 extends Frame {
    * VARIABLES
    JMFrame jmframe = null;
    JDesktopPane desktop;
    FileDialog fd = null;
    CheckboxMenuItem cbAutoLoop = null;
    Player player ;
    //Player newPlayer = null;
    String filename;
    boolean stopped;
    public my_slider test_slider;//put it here so I can use it by name by all code
    float rate;
    * MAIN PROGRAM / STATIC METHODS
    public static void main(String args[]) {
    //if (args.length > 0)
         //rate=Float.parseFloat(args[0]);
    myAppfr2 mdi = new myAppfr2();
    static void Fatal(String s) {
    MessageBox mb = new MessageBox("JMF Error", s);
    * METHODS
    public myAppfr2() {
    super("VHE Demo");
    // Add the desktop pane
    setLayout( new BorderLayout() );
    desktop = new JDesktopPane();
    desktop.setDoubleBuffered(true);
         desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);//makes dragging faster
    add("Center", desktop);
    setMenuBar(createMenuBar());
    setSize(640, 480);
    setVisible(true);
         test_slider = new my_slider("networkutil");
         createnetworkutil();
         try {
         UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel") ;
    } catch (Exception e) {
    System.err.println("Could not initialize personal look and feel");
    addWindowListener( new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    System.exit(0);
    Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, new Boolean(true));
    private MenuBar createMenuBar() {
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    String command = ae.getActionCommand();
    if (command.equals("Open")) {
    if (fd == null) {
    fd = new FileDialog(myAppfr2.this, "Open File",
    FileDialog.LOAD);
    fd.setDirectory("~/movies");
    fd.show();
    if (fd.getFile() != null) {
    String filename = fd.getDirectory() + fd.getFile();
    openFile("file:" + filename);
    } else if (command.equals("Exit")) {
    dispose();
    System.exit(0);
    MenuItem item;
    MenuBar mb = new MenuBar();
    // File Menu
    Menu mnFile = new Menu("File");
    mnFile.add(item = new MenuItem("Open"));
    item.addActionListener(al);
    mnFile.add(item = new MenuItem("Exit"));
    item.addActionListener(al);
    // Options Menu
    Menu mnOptions = new Menu("Options");
    cbAutoLoop = new CheckboxMenuItem("Auto replay");
    cbAutoLoop.setState(true);
    mnOptions.add(cbAutoLoop);
    mb.add(mnFile);
    mb.add(mnOptions);
    return mb;
    //create slider and add it to desktop
    public void createnetworkutil(){
    test_slider.pack();
    desktop.add(test_slider);
    test_slider.setVisible(true);
    * Open a media file.
    private void openFile(String filename) {
    String mediaFile = filename;
    Player player = null;
    // URL for our media file
    URL url = null;
    try {
    // Create an url from the file name and the url to the
    // document containing this applet.
    if ((url = new URL(mediaFile)) == null) {
    Fatal("Can't build URL for " + mediaFile);
    return;
    // Create an instance of a player for this media
    try {
    player = Manager.createPlayer(url);
    } catch (NoPlayerException e) {
    Fatal("Error: " + e);
    } catch (MalformedURLException e) {
    Fatal("Error:" + e);
    } catch (IOException e) {
    Fatal("Error:" + e);
    if (player != null) {
    this.filename = filename;
    JMFrame jmframe = new JMFrame(player, filename);
    desktop.add(jmframe);
    class JMFrame extends JInternalFrame implements ControllerListener {
    public Player mplayer;
    Component visual = null;
    Component control = null;
    int videoWidth = 0;
    int videoHeight = 0;
    int controlHeight = 30;
    int insetWidth = 10;
    int insetHeight = 30;
    // boolean firstTime = true;
    public JMFrame(Player player, String title) {
    super(title, true, true, true, true);
    getContentPane().setLayout( new BorderLayout() );
    //setSize(320, 10);
    setLocation(200, 25);
    setVisible(true);
    mplayer = player;
    mplayer.addControllerListener((ControllerListener) this);
    mplayer.realize();
    addInternalFrameListener( new InternalFrameAdapter() {
    public void internalFrameClosing(InternalFrameEvent ife) {
    mplayer.close();
    public void controllerUpdate(ControllerEvent ce) {
    // System.out.println("controllerUpdate");
    //SwingUtilities.isEventDispatchThread();
    if (ce instanceof RealizeCompleteEvent) {
    mplayer.prefetch();
    } else if (ce instanceof PrefetchCompleteEvent) {
    if (visual != null)
    return;
         //setnewrate();
         //rate=mplayer.getRate();
         System.out.println( mplayer.getRate());
    if ((visual = mplayer.getVisualComponent()) != null) {
    Dimension size = visual.getPreferredSize();
    videoWidth = size.width;
    videoHeight = size.height;
    getContentPane().add("Center", visual);
    } else
    videoWidth = 320;
    /*if ((control = mplayer.getControlPanelComponent()) != null) {
    controlHeight = control.getPreferredSize().height;
    getContentPane().add("South", control);
    setSize(videoWidth + insetWidth,
    videoHeight + controlHeight + insetHeight);
    validate();
    mplayer.start();
    } else if (ce instanceof StartEvent){
         if (test_slider.netutil==0) {
         mplayer.stop();
         } else if (ce instanceof EndOfMediaEvent && cbAutoLoop.getState()) {
    mplayer.setMediaTime(new Time(0));
              boolean stopped=true;
              mplayer.prefetch();
              mplayer.start();
              stopped=false;
    class my_slider extends JInternalFrame implements ChangeListener{
    //Set up parameters.
    int netini=50;
    public int netutil=netini;
    public my_slider(String windowTitle) {
    super(windowTitle, false, false, false, false);
    getContentPane().setLayout(new BorderLayout());
    setLocation(25,25);// for the internal frame that contains the slider
    setVisible(true); //..same
    //Create the slider(the component included in "my_slider" internal frame
         JSlider mslider = new JSlider(JSlider.VERTICAL,
    0, 100, netini);
    mslider.addChangeListener((ChangeListener) this);
    mslider.setMajorTickSpacing(10);
    mslider.setPaintTicks(true);
    //Create the label table.
    Hashtable labelTable = new Hashtable();
    labelTable.put(new Integer( 0 ),
    new JLabel("0%") );
    labelTable.put(new Integer( 25 ),
    new JLabel("25%") );
    labelTable.put(new Integer( 50 ),
    new JLabel("50%") );
    labelTable.put(new Integer(75),
    new JLabel("75%") );
         labelTable.put(new Integer( 100),
    new JLabel("100%") );     
    mslider.setLabelTable(labelTable);
    mslider.setPaintLabels(true);
    mslider.setBorder(
    BorderFactory.createEmptyBorder(0,0,0,10));
         //Put everything in the content pane.
    getContentPane().add(mslider, BorderLayout.CENTER);
    public void stateChanged(ChangeEvent e) { //System.out.println("stateChanged");
    // SwingUtilities.isEventDispatchThread();
    if (e instanceof ChangeEvent){
    JSlider source = (JSlider)e.getSource();
    if (!source.getValueIsAdjusting()) {
    netutil= (int)source.getValue();
         System.out.println(netutil);
              if (jmframe.mplayer!=null) {
         jmframe.mplayer.setRate((float)(netutil/(netutil+(0.3*netutil))));
              if (jmframe.mplayer.getTargetState() <Player.Started)
         jmframe.mplayer.prefetch();
    i am stuck so any help would be really very much appreciated

    did you ever resolve this.
    I may be having similar problems
    I have an JMF application running under webstart. It runs ok in Java 1.3
    Now I am trying to get ti to run under Java 1.4. The attached error is rather useless,
    but by guess at what is happening is that the JMF control has some .awt. stuff included
    but that Java 1.4 emulates .awt. in swing. But something was not set and the default does not
    work.
    This error messages does not appear in the 1.3 run
    Any suggestions would be greatly appriatated.
    1.4 result:
    mg version 2.1.1a
    player created com.sun.media.content.unknown.Handler@3a1834
    ctr com.sun.media.PlaybackEngine$BitRateA@4a9a7d
    ctr com.sun.media.BasicJMD[panel0,0,0,512x200,invalid,layout=java.awt.BorderLayout]
    duration? javax.media.Time@6b5666 sec = 9.223372036854776E9
    time unknown javax.media.Time@754699
    will realize the player
    realize
    javax.media.TransitionEvent[source=com.sun.media.content.unknown.
    Handler@3a1834,previous=Unrealized,current=Realizing,
    target=Realized]
    start smxBADS
    bass start
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.metal.MetalLookAndFeel.getControlInfo(Unknown Source)
    at javax.swing.plaf.metal.MetalScrollButton.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintWithBuffer(Unknown Source)
    at javax.swing.JComponent._paintImmediately(Unknown Source)
    at javax.swing.JComponent.paintImmediately(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.metal.MetalLookAndFeel.getControlInfo(Unknown Source)
    at javax.swing.plaf.metal.MetalScrollButton.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintWithBuffer(Unknown Source)
    at javax.swing.JComponent._paintImmediately(Unknown Source)
    at javax.swing.JComponent.paintImmediately(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    realize done
    panel found java.awt.Panel[panel1,0,0,0x0,invalid] java.awt.Panel[panel2,4,216,292x30,layout=java.awt.FlowLayout]
    press a button
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.metal.MetalLookAndFeel.getControlInfo(Unknown Source)
    at javax.swing.plaf.metal.MetalScrollButton.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintWithBuffer(Unknown Source)
    at javax.swing.JComponent._paintImmediately(Unknown Source)
    at javax.swing.JComponent.paintImmediately(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    1.3 result
    mg version 2.1.1a
    player created com.sun.media.content.unknown.Handler@354749
    ctr com.sun.media.PlaybackEngine$BitRateA@5b484d
    ctr com.sun.media.BasicJMD[panel3,0,0,512x200,invalid,layout=java.awt.BorderLayout]
    duration? javax.media.Time@46d228 sec = 9.223372036854776E9
    time unknown javax.media.Time@f7386
    will realize the player
    realize
    javax.media.TransitionEvent[source=com.sun.media.content.unknown.
    Handler@354749,previous=Unrealized,current=Realizing,
    target=Realized]
    start smxBADS
    bass start
    javax.media.DurationUpdateEvent[source=com.sun.media.content.unknown.Handler@354749,duration=javax.media.Time@55c0f9
    javax.media.Time@55c0f9
    javax.media.RealizeCompleteEvent[source=com.sun.media.content.unknown.Handler@354749,previous=Realizing,current=Realized,target=Realized]
    realized complete
    prefetch
    realize done
    controlComp com.sun.media.ui.DefaultControlPanel[,0,0,74x21,invalid,layout=java.awt.BorderLayout]
    add controlComp 21 java.awt.Panel[panel4,10,-12,258x47,invalid]
    javax.media.TransitionEvent[source=com.sun.media.content.unknown.Handler@354749,previous=Realized,current=Prefetching,target=Prefetched]
    start smxBADS
    bass start
    running ok from here on

Maybe you are looking for

  • How to create custom folder in every mailbox of Exchange 2007 mailbox : not using Managed folder

    Hello , We want to create custom folder in mailbox as root or inside inbox for every user of mailbox but not using managed folder . I have found below article , but we do not get success to do that . http://careexchange.in/create-a-custom-root-folder

  • Fetching last but one record from Infotype

    Hello Everyone, Can you kindly let me know how to fetch the last but one records of IT0171 and IT0000, then compare the endda of both of the records. Thank you for your help. Regards, Vinod

  • Save EDC Code(MAPAR) in Functional Location tcode

    Hi gurus all, I want to save edc code field after being filled with some value in transaction il02. I'm using enhancement EXIT_SAPMILO0_001, this enhancement triggered after i ticked the save button. However, in this enhancement, there is not edc cod

  • Opening IPD Extension Files

    In Blackberry Desktop Manager, backing up files is saved with an "IPD" file extension that Windows does not recognize.  Any suggestions on what is needed to open this type file?

  • Photoshop 5.0 has stopped working

    I know I have an old Photoshop 5.0...But I'm not computer savvy and took a course to work it so I don't want to BUY another one... it tell me there is an error after I have complete my enhancement...and wanting to SAVE or SAVE AS....this error comes