Display current frame in applet.

I am writing a Java applet that creates a media player. It plays a movie and I want to get the current frame. I have the code for this:
FramePositioningControl fpc = ( FramePositioningControl)  player.getControl("javax.media.control.FramePositioningControl");
int currentFrame = fpc.mapTimeToFrame(player.getMediaTime());I have created a text field and this is displayed on one of the panels of media player.
My problem is that I can only get the frame number for the first frame to appear in the text field and it doesn't change for each frame.
I have my code in the public synchronized void controllerUpdate(ControllerEvent evt) method as follows:
tf3.setText(""+currentFrame);Any ideas as to how I can get each frame number to appear?
I hope I have made myself clear enough.
Thanks in advance,
Wallace

I have my code in the public synchronized void
controllerUpdate(ControllerEvent evt) method as
follows:controllerUpdate() is not called every time a new frame is encountered. It is called, for example, when the Processor or Player becomes "Realized", or is started or stopped.
From your Processor or Player, you need to obtain the TrackControl that is an instance of VideoFormat.
(note p is a Processor created and in the "Configured" state at this point in the code)
          TrackControl tc[] = null;
          // Obtain the track controls.
          tc = p.getTrackControls();
          // Search for the track control for the video track.
          TrackControl videoTrack = null;
          for( int i = 0; i < tc.length; i++ )
               if( tc[ i ].getFormat() instanceof VideoFormat )
                    videoTrack = tc[ i ];
                    break;
          }You then need to create a custom Codec (or chain of Codecs) which you will insert into the data flow using p.setCodecChain( Codec[] codecs ) Override the process() method in your custom Codec to update your counter, as it will be called once for each frame.
For example:
public class PreAccessCodec implements Codec
     public final int process( Buffer in, Buffer out )
//UPDATE YOUR COUNTER HERE!
         // Swap the data between the input & output.
         Object data = in.getData();
         in.setData(out.getData());
         out.setData(data);
         // Copy the input attributes to the output
         out.setFormat(in.getFormat());
         out.setLength(in.getLength());
         out.setOffset(in.getOffset());
         return BUFFER_PROCESSED_OK;
}You will have to do a little searching through java.sun.com to find out about implementing a custom Codec, but I guarantee this will help you out... it is fundamental to the success of my application. I wish you luck!

Similar Messages

  • Display Current Sequence Frame?

    I'm trying to output the current/active sequence frame to a front
    panel indicator. Is there a direct way to hook into the sequence
    structure indicator, or will I have to stich a increment function
    throughout all the frames with multiple sequence locals. It would be
    nice to be able to programatically access the sequence structure's
    total frame count and current frame for use as a program progress
    indicator.

    You could replace the Sequence structure with a Case inside a While loop. Wire the iteration of the While loop to the Case selector and to the terminal for the front panel indicator. Each case represents one frame in the Sequence. Each case will have a boolean constant wired to the Continue terminal of the While loop: in each case but the last, the constant will be True; in the last case it will be False.
    Sorry this isn't the simple answer you were looking for. This approach also works well if you have a sequence which you normally execute end-to-end, but, for some conditions, you may want to end the sequence early. Then just replace the boolean constant with a boolean expression within each case that determines whether or not to continue based on the events i
    n that case.

  • How to display a frame at the upper left corner of each screen?

    hi,
    below are 2 ways to display a frame at the upper left corner of each screen (i have 2 monitors).
    both work but the 2nd way is much slower. which, if any, of the 2 approaches is "more" correct?
    import java.awt.Canvas;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.DisplayMode;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.GraphicsConfiguration;
    import java.awt.GraphicsDevice;
    import java.awt.GraphicsEnvironment;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.Toolkit;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    // the thing that matters in here is setting the frame's location: xCoord
    // is incremented in each iteration by the current screen's width and
    // is used to set the frame's x-coordinate.
    public static void main(String args[])
          GraphicsEnvironment gEnviron = GraphicsEnvironment.getLocalGraphicsEnvironment();
          GraphicsDevice[]    gDevices = gEnviron.getScreenDevices();
          Color colors[] = {Color.blue, Color.red};
          for(int i = 0, xCoord = 0; i < gDevices.length; i++)
             // set panel's size and frame's size to take up the whole screen
             DisplayMode didsplayMode = gDevices.getDisplayMode();
    int screenWidth = didsplayMode.getWidth();
    int screenHeight = didsplayMode.getHeight();
    JPanel panel = new JPanel();
    panel.setBackground(colors[i % colors.length]);
    JFrame frame = new JFrame();
    frame.setSize(new Dimension(screenWidth, screenHeight));
    frame.setContentPane(panel);
    frame.setUndecorated(true);
    // set location of frame.
    frame.setLocation(xCoord, 0);
    xCoord += screenWidth;
    frame.addMouseListener
    new MouseAdapter()
    public void mousePressed(MouseEvent event) {System.exit(1);}
    frame.setVisible(true);
    // this is a lot slower and may not be correct: it sets the frame's location by calling
    // getConfigurations() on each screen device but using only the 1st configuration
    // (it returns 6 on my computer) to get the bounds (for the frame's x-coord).
    // a screen device has 1 or more configuration objects but do all the objects
    // of the device report the same bounds? if the anwser is yes, then the code
    // is correct, but i'm not sure.
    public static void main1(String args[])
    GraphicsEnvironment gEnviron = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice[] gDevices = gEnviron.getScreenDevices();
    Color colors[] = {Color.blue, Color.red};
    for(int i = 0; i < gDevices.length; i++)
    // set panel's size and frame's size to take up the whole screen
    DisplayMode didsplayMode = gDevices[i].getDisplayMode();
    int screenWidth = didsplayMode.getWidth();
    int screenHeight = didsplayMode.getHeight();
    JPanel panel = new JPanel();
    panel.setBackground(colors[i % colors.length]);
    JFrame frame = new JFrame();
    frame.setSize(new Dimension(screenWidth, screenHeight));
    frame.setContentPane(panel);
    frame.setUndecorated(true);
    // set location of frame: getConfigurations() is very time consuming
    GraphicsConfiguration[] gConfig = gDevices[i].getConfigurations();
    // on my computer: gConfig.length == 6. using the 1st from each set of configs
    Rectangle gConfigBounds = gConfig[0].getBounds();
    frame.setLocation(gConfigBounds.x, gConfigBounds.y);
    frame.addMouseListener
    new MouseAdapter()
    public void mousePressed(MouseEvent event) {System.exit(1);}
    frame.setVisible(true);
    thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Darryl.Burke wrote:
    Blocked one abusive post.
    @flounder
    Please watch your language.
    dbDude - I just looked at your profile. WTF are you doing in India??

  • Will only give print option of "current frame" for a six page PDF document opened from link in Safari.

    I'm new to Mac having just moved from a PC.  The TD Ameritrade site provides statements as PDF documents which are opened by clicking on a link.  The document is displayed in a pop-up window and there is no problem viewing all pages by scrolling.  But there is no PDF toolbar and Safari will only allow me the option of printing the "current frame", not the entire document or several pages.  What am I missing?  Does the Mac not actually bring it up as a PDF? 

    Hold down the OPTION key and click on the link. That will cause the document to download to wherever you set DLs to go. Then, open it in Preview and print everything.
    Since you're a newcomer to the Mac, see these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual,
    Snow Leopard Edition.&
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Problem displaying 2 Frames

    So, I've got a little problem with the display.
    I've mage a GUI with a frame and all is ok.
    The main calls a methods which does a lot of things and after calls an other class which has to display a frame where I draw some lines thanks to paint.
    the problem is that in the second frame, the content of the first is shown and on the content there are my paints. Does anyone know how to solve this problem in order that in the second frame , there is just my paint. (Because in the second frame, we see just the content, the buttons and all the things aren't ok.... and if I change the size of the second frame, there are a lot of stange things with the display of this frame...)
    Thanks..
    Kanaweb

    So here is some parts of my code.
    My main class is UWB( )
    It's like that :
    package uwbrelease2;
    import javax.swing.UIManager;
    import java.awt.*;
    import java.util.*;
    public class Uwb
      //declaration d'une variable de test pour lancer cadre
      boolean packFrame = false;
      // debut du constructeur
      public Uwb()
        Frame1 frame = new Frame1();
        if (packFrame) {frame.pack();}
        else {frame.validate();}
        //Centrer la fen?tre
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = frame.getSize();
        if (frameSize.height > screenSize.height) {
          frameSize.height = screenSize.height;
        if (frameSize.width > screenSize.width) {
          frameSize.width = screenSize.width;
        frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
        frame.setVisible(true);
      }  // fin du constructeur
      //m?thode principale
      public static void main(String[] args)
        try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
        catch (Exception e) { e.printStackTrace(); }
        new Uwb();
        Simulation simu = new Simulation();
        }//fin m?thode principale
    }//fin class uwb[\code]
    Here are some parts of Frame1( ) :[\b]
    package uwbrelease2;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    public class Frame1 extends JFrame {
      //Main UI panel
      JPanel contentPane;
      //Radio buttons that control the current panel
      JRadioButton Panel1Radio = new JRadioButton();
      JRadioButton Panel2Radio = new JRadioButton();
      JRadioButton Panel3Radio = new JRadioButton();
      ButtonGroup buttonGroup1 = new ButtonGroup();
      //Combo box and list of items that control the current panel
      Object[] dataObject = {"1 cm", "10 cm", "50 cm"};
      JComboBox jComboBox1 = new JComboBox(dataObject);
      //Card layout container panel
      JPanel jPanel1 = new JPanel();
      CardLayout cardLayout1 = new CardLayout();
      //Card layout panels and layouts
      JPanel jPanel2 = new JPanel();
      JPanel jPanel3 = new JPanel();
      JPanel jPanel4 = new JPanel();
      GridBagLayout gridBagLayout1_panel3 = new GridBagLayout();
      FlowLayout flowLayout1_panel4 = new FlowLayout();
      ..............................   and so on......
    [\code]
    Here is some part of simulation( ) :[\b]
    package uwbrelease2;
    import java.util.*;
    import java.awt.*;
    import java.io.*;
    public class Simulation
    //constructeur pour cr?er un objet Simulation
      public Simulation()
        try {
          doSimulation();
        catch (IOException ex) {
    public void doSimulation() throws IOException {
        ZoneGraphique zone=new ZoneGraphique(tabMur);
        //zone.validate();
        zone.show();
    where tabMur is an ArrayList .....[\b]
    [\code]
    [b]and finally here is ZoneGraphique ( ):[\b]
    package uwbrelease2;
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class ZoneGraphique extends JFrame {
      public ArrayList tabMur;
      public ZoneGraphique(ArrayList tabMur1) {
        super("visualisation");
        tabMur = tabMur1;
        setSize(500,500);
        try {
          DoZoneGraphique zone = new DoZoneGraphique();
          getContentPane().add(zone);
        catch (Exception e) {
          e.printStackTrace();
    class DoZoneGraphique extends JPanel {
       public void paintComponent(Graphics comp){
         Graphics2D comp2D=(Graphics2D)comp;
       comp2D.setColor(Color.RED);
        comp2D.drawString("Floride",20,20);
       for (int j=0;j<=tabMur.size()-1;j++)
        Mur mur = (Mur)tabMur.get(j);
        comp2D.drawLine((int)mur.getAbs1(),(int)mur.getOrd1(),(int)mur.getAbs2(),(int)mur.getOrd2());
    [\code]
    So if you can help me, thanks .....[\b]

  • Any Way to display HTML pages on Applet

    Hi All,
    Is there any way to show web pages on Applet?
    Is it possible ?

    I am not aware of a simple way to display HTML in an applet. However, I have used the JEditorPane to display HTML documents. Handling links, etc. with this component requires some effort. Also requires Swing.
    Have you considered using the applet to display a page on the browser. (i.e. getAppletContext().showDocument(URL, [frame name]))? Just an idea.
    Good luck.

  • Working with frames and applets

    Hi, I am writing an applet that recieves information from a sever. before the applet loads I display a frame that allows the user to select the information that is transfered across the net.
    I block the applet from finishing until the okay button is clicked on the frame. However if I don't add my frame to the applet I can't manipulate the frame, and the frame doesn't recognize any mouse events
    When i do add the frame to the applet, the checkboxes work and the button toggles, but the click doesn't do anything.
    Finally the program works while using the applet viewer but it doesn't work across the net. Any information any one has would be greatly appreciated.

    here is the code of the frame that doesn't work
    import java.awt.*;
    import java.awt.event.*;
    public class channelSelect extends Frame implements ActionListener
    {/*This class alows the user to pick from a number of channels to be transfered
    across an internet connection*/
    private int channels = 8; //the total number of channels
    private Checkbox[] checkbox = new Checkbox[channels]; //an array of checkboxes
    private Button button1 = new Button(); //the button to signify the user has choosen the channels
    private int[] c = new int[channels]; //an array to determine which checkboxes were checked
    private boolean done = false; //a flag to tell the base class if the user is finished
    public channelSelect()
    try
    jbInit();
    catch(Exception e)
    e.printStackTrace();
    public int[] obtainChannels()
    {//returns the array of choosen channels
    return c;
    public int isDone()
    {//returns if the user is finsihed
    if(done)
    return 1;
    else
    return 0;
    private void jbInit() throws Exception
    {//sets the layout for the frame
    this.setLayout(null);
    this.setTitle("Select Channels");
    for(int j = 0; j < channels; j++)
    checkbox[j] = new Checkbox();
    checkbox[0].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[0].setBounds(new Rectangle(64, 55, 198, 20));
    checkbox[0].setLabel("sinwave");
    checkbox[1].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[1].setBounds(new Rectangle(64, 133, 198, 20));
    checkbox[1].setLabel("squarewave");
    checkbox[2].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[2].setBounds(new Rectangle(64, 211, 142, 30));
    checkbox[2].setLabel("coolant temp");
    checkbox[3].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[3].setBounds(new Rectangle(64, 289, 198, 20));
    checkbox[3].setLabel("No signal1");
    checkbox[4].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[4].setBounds(new Rectangle(356, 55, 198, 20));
    checkbox[4].setLabel("No signal2");
    checkbox[5].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[5].setBounds(new Rectangle(356, 133, 198, 20));
    checkbox[5].setLabel("No signal3");
    checkbox[6].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[6].setBounds(new Rectangle(356, 211, 198, 20));
    checkbox[6].setLabel("No signal4");
    checkbox[7].setBackground(new java.awt.Color(0, 200, 250));
    checkbox[7].setBounds(new Rectangle(356, 289, 198, 20));
    checkbox[7].setLabel("No signal5");
    this.setBackground(new java.awt.Color(0, 200, 250));
    button1.setBounds(new Rectangle(235, 477, 98, 30));
    button1.setLabel("OK");
    button1.addActionListener(this);//new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent e)
    button1_actionPerformed(e);
    */ this.add(checkbox[0], null);
    this.add(checkbox[5], null);
    this.add(checkbox[6], null);
    this.add(checkbox[1], null);
    this.add(checkbox[7], null);
    this.add(checkbox[2], null);
    this.add(checkbox[3], null);
    this.add(checkbox[4], null);
    this.add(button1, null);
    this.setSize(610,527);
    this.setVisible(true);
    this.toFront();
    public void actionPerformed(ActionEvent e)
    {//populates the array of choosen channels
    Object source = e.getSource();
    if(source == button1)
    for(int i = 0; i < channels; i++)
    if(checkbox.getState())
    c[i] = 1;
    else
    c[i] = 0;
    done = true;
    and this is where i instantiate it and call some of it's methods.
    /* Setup channel selections */
    channel_select = new channelSelect();
    while(channel_select.isDone() == 0)
    { //wait for the channel selection to occur
    channels = channel_select.obtainChannels();
    channel_select.dispose();
    channel_select = null;
    setChannels();

  • How to display Two frames in HTML....

    Hi,
    Can someone please advice me on how to display two frams on one page without using FrameSet...
    Thanks,

    Hi,
    Thank you for your reply...
    I already have something that i did in Applet but i don't want to use Applet....
    The problem with frameset is that i will be adding documents Types Dynamically in HTML List and after clicking the Document Type I want to display Image depending on what Document Type is clicked...
    Both the DOCUMENT TYPE and IMAGE, I want to create DYnamically. I don't want to create Two HTML Files (one for Image and One for LIST) and then open it from Another HTML Which contains FrameSets...
    I hope you get my point....
    Is there any other ways i can do this....
    Any help will be greatly appreciated...

  • Check boxes are not being displayed in any list applets

    Issue: The check boxes are not being displayed in any list applets in the system. A check box can be marked in the system, but as soon as the user clicks anywhere outside of the box the check box 'visibly' disappears. If you hover the mouse over the check box it displays a 'Y'. However, check boxes are working fine for the form applet, the issue is only with the list applet.
    I verified the checkboxes work fine in the thick client and in production. However, it is the testing environment, which belongs to client, that is showing the above behavior. I think there is some setting that is missing for them. But I am unable to figure it. I would really appreciate if someone could help !!
    Thanks in advance

    One way that you could make it work (just tried it out again) is to use the windings font
    and use the checkboxes from there. However, you need to register the font with xml publisher. In the template builder for Word, you can put a configuration file under:
    C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\config
    (depnding on your installation). The file should have the name xdo.cfg or xdoconfig.xml.
    There is an example file: xdo example.cfg that you rename and change accoringly.
    The font is there setup for windows 2000 as an example. Select the correct font
    path - for my XP it is:
    <font family="Wingdings" style="normal" weight="normal">
    <truetype path="C:\WINDOWS\fonts\wingding.ttf" />
    </font>
    Then you can put the symbols into your RTF template and it will be rendered.
    At least it worked for me - with 5.6.2. (Availbable on Wednesday or Thursday), but
    I am pretty sure I tried it before with 5.5.
    Didn't have the 5.5 manual with me - so I have to check what that says again..
    Hope it helps,
    Klaus

  • Dont want to display "Report Successfully Run" applet

    Dear Users....I Dont want to display "Report Successfully Run" applet after my report runs successfully. I'm calling report from Forms-10g Rel.2 and my browser is Internet Explorer ver.6. I'm sending my report directly to printer using Web.Show_Document.If my report is sent to printer successfully there is no need to display browser window with the above mentioned message. Is there any solution for this???

    Code in when-button-pressed
    DECLARE
    V_Usr_Prm Varchar2 (1000);
    BEGIN
    V_Usr_Prm :=
    'FROM_REF_NO='
    || P_FRM_REF_NO
    || '+TO_REF_NO='
    || P_FRM_REF_NO
    || '+P_PRE_BY='
    || P_PRE_BYE
    || '+P_VR_TYPE='
    || P_VOR_TYP
    || '+YEAR1='
    || P_VOR_YER
    || '+MNU_IDE=0'
    || '+P_PRN_FLG=1';
    web_show_document_proc ('HTMLCSS', 'Y:\02\\02\VOR_PRN.REP', V_USR_PRM);
    END;
    Procedure Web_Show_Document_Proc is
    PROCEDURE WEB_SHOW_DOCUMENT_PROC (runformat varchar2,
    reportname varchar2,
    userparameters vARCHAR2)
    IS
    i NUMBER (10);
    v_a VARCHAR2 (10);
    v_b VARCHAR2 (10);
    vc_url VARCHAR2 (1000);
    vc_url_temp VARCHAR2 (1000);
    vc_user_name VARCHAR2 (30) := GET_APPLICATION_PROPERTY (username);
    vc_user_pw VARCHAR2 (30) := GET_APPLICATION_PROPERTY (password);
    vc_user_connect VARCHAR2 (30)
    := GET_APPLICATION_PROPERTY (connect_string) ;
    BEGIN
    vc_url :=
    'userid='
    || vc_user_name
    || '/'
    || vc_user_pw
    || '@'
    || vc_user_connect;
    FOR i IN 1 .. LENGTH (vc_url)
    LOOP
    v_a := LTRIM (TO_CHAR (TRUNC (ASCII (SUBSTR (vc_url, i, 1)) / 16)));
    IF v_a = '10'
    THEN
    v_a := 'A';
    ELSIF v_a = '11'
    THEN
    v_a := 'B';
    ELSIF v_a = '12'
    THEN
    v_a := 'C';
    ELSIF v_a = '13'
    THEN
    v_a := 'D';
    ELSIF v_a = '14'
    THEN
    v_a := 'E';
    ELSIF v_a = '15'
    THEN
    v_a := 'F';
    END IF;
    v_b := LTRIM (TO_CHAR (MOD (ASCII (SUBSTR (vc_url, i, 1)), 16)));
    IF v_b = '10'
    THEN
    v_b := 'A';
    ELSIF v_b = '11'
    THEN
    v_b := 'B';
    ELSIF v_b = '12'
    THEN
    v_b := 'C';
    ELSIF v_b = '13'
    THEN
    v_b := 'D';
    ELSIF v_b = '14'
    THEN
    v_b := 'E';
    ELSIF v_b = '15'
    THEN
    v_b := 'F';
    END IF;
    vc_url_temp := vc_url_temp || '%' || v_a || v_b;
    END LOOP;
    vc_url :=
    '/reports/rwservlet?server=rep_appsrv_frhome1+'
    || vc_url_temp
    || '+report='
    || reportname
    || '+destype=Printer+desformat='
    || runformat
    || '+paramform=No+'
    || userparameters;
    WEB.SHOW_DOCUMENT (vc_url, '_blank');
    END;

  • Double clicking on an Icon to display a frame....

    Hi! I have an icon whereby when double clicked on should display a frame. To display the icon, I have it as an ImageIcon placed on a label, which works fine. But my problem now is what kind of listener can I add to this label, if any that will cause this frame to be displayed? OR if you have an idea of going about or around this, I'll really appreciate it!! Thanks a lot in advance!!
    Cheers,
    Bolo

    Thanks a lot again Radish! It worked fine. I got another question, which I hope you'll be willing to answer. Hope I'm not being a pain in the butt?
    After the user double clicks on an icon to display a window(step by step wizard), the panel on the frame contains "back" and "next" buttons. And of course the button on the last panel will say finish instead of next. All of this is working fine. My problem is that whenever I re-launch the wizard, it displays the last panel which contains the finish button instead of the first panel. Do you have any ideas of how I can fix this? Thanks a lot in advance!!
    Cheers,
    Bolo

  • How can I display current iPhone GPS coordinates using compass app

    How can I display current iPhone GPS coordinates, when traveling overseas with no access of data or wifi
    using "iphone compass app"(Both the latitude and longitude) ??
    if iphone compass app require any sort of data
    what alternative would there be? (to document the coordinates)?

    Hi
    Iphone 5s 16 gb 8.1
    My fone freeze whenever i charge my fone its appear white screen with apple logo.. and as soon as i try to press hold home and power button
    it shows battery drained sign>> i m facing this problem from last one week
    and itunes also not  getting cconnected
    can any1 please help me out
    sorry for poor english

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • Display current month records only

    Hi Experts,
    I have the following requirement.
    Report should display current month records only.
    For example If the report is run on 20090324, It should display records from 20090301 to 20090324.
    That means,  report may run on any date of that month, It should display from 01 (of that month) to current date.
    I have a select statement saying
      SELECT * FROM likp
      WHERE wadat_ist BETWEEN month_start_date AND sy-datum          
        AND vkorg IN s_vkorg
        AND vkbur IN s_vkbur
        AND kunnr IN s_kunnr.
    How to calculate date for month_start_date, so that it can display only current month records.
    Thanks in advance
    Rohan

    Hi Kunta, Suhas, Nandi,
    Thank you for your quick reply, I really appreciate it.
    for this current month records, I need to display a check box saying
    Open orders  and shipments with the current month.
    But where as Selection text is accepting 32 characters only. Is there any possibility to overcome this?
    Thanks in advance
    Rohan

  • How search text in current frame of external swf?

    Hello Everyone
    I am loading an external swf using loader.
    How do search and highlight the text in the current frame only?
    Is there a frame class which I could use?
    Thanks

    This is not likely to be possible in the general case, depending on what you mean by "searching text"
    For instance, a Word doc might have the text "Hello, world!" when viewed in Word, but that doesn't mean that the sequence of characters 'H', 'e', 'l', 'l', 'o', etc., exists in the file. There might be one letter, then some binary data indicating that the next letter is some other font or color, then one more letter, then more binary data, etc.
    Conversely, there could be textual metadata in a "binary" file that a person reading the file in the appropriate viewer would never see. Unless you know the details of the format you're reading, you won't be able to distinguish that from "real text".
    And what do you mean "strings" is not efficient? Have you tried it? Does it do what you want? Did you measure and determine that it does not meet your well-defined performance requirements? It's unlikely you'll be able to write code that does the same thing as "strings" but more "efficiently."
    The first step is to put more realistic boundaries on your requirements and define them more precisely. "Extract text from any binary file," is not a valid, meaningful, or reasonable requirement.
    EDIT: I may have misunderstood your requirements. I thought you wanted to "extract all text" from binary files. If that's not what you meant, and you're looking more to replicate grep, then follow Joachim's advice.
    Edited by: jverd on Mar 29, 2010 1:33 PM

Maybe you are looking for

  • Error 6 when trying to restore.  Phone is stuck in restore mode

    I have an iphone in front of me which is stuck in restore mode. I plug it into iTunes, choose restore, choose a firmware (3.1.2) and begin the restore process. I get the following message: The iPhone 'iPhone' could not be restored. An unknown error o

  • How to set an empty JPanel to maximum size?

    Hello! I created class extends JFrame. I want this maximum size so I set the minimum size as screen size: setSize(screenWidth,screenHeight); Now I added an empty JPanel, and I want it to be the maximum size. But the problem is - I don't know what is

  • SQL Performance and Security

    Help needed here please. I am new to this concept and i am working on a tutorial based on SQL performance and security. I have worked my head round this but now i am stuck. Here is the questions: 1. Analyse possible performance problems, and suggest

  • Is there any way to password protect my Contacts folder?

    Is there any way to password protect my Contacts folder on iPad2?

  • Very Slow Launch of Gecko Based Programs Like Firefox

    I am having a serious problem with launching Firefox 2.0.0.3 or Bon Echo 2.0.0.3 on out of the 4 G4 computers I use between home and office. Previously, the program would launch in between 1.5 and 2 minutes. In the past month or so, lanch time and th