Scrollpane to applet size urgent!!!

Hi,
I have 2 issues in my project.
1. I want JScrollPane container in my applet to take the size of applet.
2. I want applet to take the size of browser.
Applet might be run on different computers with different resolutions. So, I want the applet to adjust its size to the browser and the scrollpane to adjust its size to the size of applet.
Please help me in resolving this problem. as my project is looking ugly without the above features.
Thanks in advance.
with regards,
Dawood.

851102 wrote:
I have 2 days to complete the applet.That is not our concern.
I have an attendance system application.Is that even relevant?
I've heard that its not a big-complicated job to convert it to an applet.Heard where? Not that it is not correct - but you should probably ask the person who told you for more information.
But I dunno how to do it.I just need a few guidelines.Google ( [url http://www.google.com/search?q=convert+swing+application+to+a+applet]convert swing application to a applet ).

Similar Messages

  • Applet Size/Object Size

    hello,
    why does the applet size / the object size when viewed in windows and linux is different. If the user uses Windows as the client PC the size is correct but when the same is viewed in Linux workstation its totally different. everything seems to be small. All the modules were created in windows but compiled and generated the fmx using linux and they are deployed in the linux server. Since the modules were developed in windows i understand there is some conflict with DPI and what we did was put a new parameter in the forwsweb.cfg and it worked. but that parameter has effect only if the browser is Internet Explorer. If i run the same using mozilla or firefox bcos linux workstation uses either mozilla or firefox. so what ever the values i specify for clientDPI no effect at all bcos the browser is not internet explorer. You might suggest me to develope everything in linux and set all the size there itself. But i cannot do that bcos we have more than 400 forms and developing or making changes is very very time consuming and its not practical for my situation.
    If you suggest me how to play around with the motiff settings in linux then I dont think the linux(fedora core1) is using those setting anymore.
    If any one can give me suggestions how to work around it that will be great.
    Thanks
    Blesson

    Blesson,
    is your client Linux, or the server. Linux as a client is not certified yet. For server issues, please contact customer support at metalink.oracle.com
    Frank

  • GetAudioClip() and applet size-related questions

    Hello everyone,
    I have coded a small animation and wanted to use audio file (.au) to add sound to my applet. But for some reasons it does not want to read my .au file. I tried different .au files, but with no result.
    I am using eclipse and while it (eclipse) compiles it creates 2 directory: src and bin and saves file.java and file.class in them respectively. I placed my .au file(s) in both of them......nothing happened. Though I added a .jpg file to these directories for the background to test how it works and it works fine with it. And not forget to mention that these .au files play fine without using java.
    Well, here is a bit of that code:
    public void init()
                   setBackground (Color.red);     
                   au = getAudioClip( getCodeBase(), "ecky.au"); //this does not play, though it plays in media player
                   im = getImage (getCodeBase(), "stars.jpg"); //this works, though both are in the same folder
    public void run ()
                   Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
                   while(y_pos != 200)
                        au.play(); //it should play here
                        y_pos ++;
                        repaint();
                        try
                             Thread.sleep (10);
                        catch (InterruptedException ex)
                             Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
    public void paint (Graphics g)
                   g.drawImage (im, 0, 0, this);
    }And one more thing, do you know where can I change the applet size? I mean as you know, eclipse take care of setting applet size. So where can I find this html code and resize the applet? Thank you in advance and appreciating your help....

    I wanted this .au file to play as long as the y_pos does not reach the point 200So, play() it before the while loop, and stop it afterwards (or whenever y reaches 200).
    To begin with you should just write some code to make the sound play - and if there is a problem with the size of the file, resolve that first.
    By the way, can anyone tell me where eclipse saves the html code for the applet? I don't think there is any html code. Eclipse uses an applet viewer. Try putting the html <aplet> information as a comment near the start of your file.

  • Applet size width and height = 100%

    Hello All.
    I am using the large font in windows. So I’ve change the applet size in formsweb.cfg file to width=100% and height=100%. Now the applet area fills the browser windows when I maximize it. But if I try to resize it using the mouse from the lower right corner. The form will be busy and never respond to any event and staying like this forever.
    Is there any one come across the problem?
    I am using
    Application server 10g (9.0.4)
    Form 9i
    Client PC (windows 2000)

    Ooookay ..... then how come I've got an demo of
    someone's applet here that does exactly this, i.e.
    draws outside of it's original size ?
    Show us the demo.
    How might they do it ? (dont really want to decompile
    someone else's class file, coz that's rude :-)Maybe someone will do it for you; the impossible has always attracted the human mind.

  • Problem: Applet Size

    Hello,
    We have developed an applet to be used on J3A080 JCOP31 v2.4.1 cards. The EEPROM size of the card is 80kb, and our applet size is around 40kb. If the applet size goes to 41kb. we are not being able to install it. There are no other applets in the card and this also happens with the simulator. It gives 6A80 (Wrong Data) error. However, if we try to install the applet as 40kb, it is installed successfully. What do we miss here, is it not possible to install an applet larger than 40kb into the 80kb EEPROM card ?
    Thanks in advance for your answers.

    I think that if the size of at least one component of the applet is geater then 32 K, then the upload is rejected. The cap contains the next components:
    Header
    Directory
    Applet
    Import
    Constant Pool
    Class
    Method
    StaticField
    Reference Location
    Export
    Descriptor
    Debug
    Total
    Most probably, the biggest component is Method component.

  • How to get Applet size in my form ?

    I'm running Oracle forms 11g, I want to center my window use the code below :
      v_app_width := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH));
      v_app_height := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,HEIGHT));
      v_win_width := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,WIDTH));
      v_win_height := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,HEIGHT));
    -- message("width" ||v_app_width);
      SET_WINDOW_PROPERTY(p_window_name,POSITION,(v_app_width- v_win_width) / 2,(v_app_height - v_offset - v_win_height) / 2);This works for 6i but not working for 11g. As
    GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH)returns 0.
    But once that message line is uncommented, the next form calling this center window procedure works fine.
    My problem is similar with this one : http://www.orafaq.com/forum/t/149809/2/ But it has no solution.
    I also found this : http://docs.oracle.com/cd/B14099_19/winitan.1012/relnotes.1012/relnotes/forms.htm
    5.1.4.1 GET_WINDOW_PROPERTY Returns 0 on Microsoft Windows
    GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_HANDLE) returns zero even with separateframe=true. Oracle Forms Online Help states that this should work on windows platform. This is incorrect as this Built-in does not support MDI. [Edited on 3/12 4:50pm] Today I found this code does work for my first form (login form) when the application launches. After login, the rest forms can be centered very well. Don't know what's the reason.
    So if this doesn't work, how could I get the applet size and center my window ?
    Edited by: frank1018 on Mar 12, 2013 4:53 PM

    If you want to center your window when MDI is maximized..
    first create timer.. under when-new-forms-intance..
    Declare
         timer_id   Timer ;
    Begin     
      timer_id := Create_Timer( 'laf_timer', 50, NO_REPEAT ) ;
    end ;use this in when time expired.. because it will not run this procedure in when-new-forms-instance or pre-form triggers..
    declare
         mh number;     rh number;     mw number;     rw number;
    begin     
                      If lower(Get_Application_Property( TIMER_NAME )) = 'laf_timer' Then
                             mh     :=     get_window_property(forms_mdi_window,height);
                        mw     :=     get_window_property(forms_mdi_window,width);
                        rh     :=     get_window_property('yourwindowname',height);
                        rw     :=     get_window_property('yourwindowname',width);     
                        set_window_property('yourwindowname',position,(mw/2)-(rw/2),0);  /* i make 0 for the value of Y.. for i liked it on the top but you can change it too */
              end if;
    end ;Edited by: ck on Mar 14, 2013 2:44 AM

  • Setting applet size

    I know the answer to this question is possibly no, but I just thought of asking it anyway.
    Is there anyway in which an applet size can be set and remain static when the user tries to resize the applet by the use of the cursor?If this could be done it would save me alot of time.
    Thanks in advanced
    Dave

    ok a possible way
    try this
    <script language="JavaScript">
    function openWindow() {
    var newWin;
    newWin =
    window.open("abtest3.htm",
    "win1",
    "WIDTH=400,HEIGHT=400,screenX=100,screenY=100,left=100,top=100");
    newWin.focus();
    </script>
    put this in an html
    "abtest3.htm" is the html-file which contains the applet
    <body>
    click
    </body>
    this is to call the JS-function
    when you done this the window w/ the applet only will be iconifiable and closable
    regards

  • DAC APPLET DEPLOYMENT(urgent)

    Iam getting problem when deploying DAC APPLET
    .iam getting exception of :
    cannot instantiateclass JboInitialContextFactory
    detail:DAC405:sessionInfo:oracle.jbo.common.jboInitialContextFactory
    applicationModuleCrationfailed
    pls Respond Immediately
    this is urgent

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joe Martine ([email protected]):
    I have a similiar situation deploying to Visibroker. What are you trying to do? Maybe we can help each other????<HR></BLOCKQUOTE>
    Type 'Deplying a Java From' in Help. Under 'Deplying an Infobus Java applet' is a paragraph (maybe the second) which says that its not possible to use DAC Applet clients for EJBs, etc. (if that is what ur trying to do). However, it says that DAC applet client deployment is possible with Visibrobroker objects. Joe, what exactly is it that ur trying to do? I'm working on the
    applet --> servlet --> EJB --> Oracle
    walkaround for the applet --> EJB problem. If anyone had any success on this using JDeveloper or any leads please reply here or e-mail to [email protected]
    null

  • Problem with ScrollPane and JFrame Size

    Hi,
    The code is workin but after change the size of frame it works CORRECTLY.Please help me why this frame is small an scrollpane doesn't show at the beginning.
    Here is the code:
    import java.awt.*;
    public class canvasExp extends Canvas
         private static final long serialVersionUID = 1L;
         ImageLoader map=new ImageLoader();
        Image img = map.GetImg();
        int h, w;               // the height and width of this canvas
         public void update(Graphics g)
            paint(g);
        public void paint(Graphics g)
                if(img != null)
                     h = getSize().height;
                     System.out.println("h:"+h);
                      w = getSize().width;
                      System.out.println("w:"+w);
                      g.drawRect(0,0, w-1, h-1);     // Draw border
                  //  System.out.println("Size= "+this.getSize());
                     g.drawImage(img, 0,0,this.getWidth(),this.getHeight(), this);
                    int width = img.getWidth(this);
                    //System.out.println("W: "+width);
                    int height = img.getHeight(this);
                    //System.out.println("H: "+height);
                    if(width != -1 && width != getWidth())
                        setSize(width, getHeight());
                    if(height != -1 && height != getHeight())
                        setSize(getWidth(), height);
    }I create frame here...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    public class frame extends JFrame implements MouseMotionListener,MouseListener
         private static final long serialVersionUID = 1L;
        private ScrollPane scrollPane;
        private int dragStartX;
        private int dragStartY;
        private int lastX;
        private int lastY;
        int cordX;
        int cordY;
        canvasExp canvas;
        public frame()
            super("test");
            canvas = new canvasExp();
            canvas.addMouseListener(this);
            canvas.addMouseMotionListener(this);
            scrollPane = new ScrollPane();
            scrollPane.setEnabled(true);
            scrollPane.add(canvas);
            add(scrollPane);
            setSize(300,300);
            pack();
            setVisible(true);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        public void mousePressed(MouseEvent e)
            dragStartX = e.getX();
            dragStartY = e.getY();
            lastX = getX();
            lastY = getY();
        public void mouseReleased(MouseEvent mouseevent)
        public void mouseClicked(MouseEvent e)
            cordX = e.getX();
            cordY = e.getY();
            System.out.println((new StringBuilder()).append(cordX).append(",").append(cordY).toString());
        public void mouseEntered(MouseEvent mouseevent)
        public void mouseExited(MouseEvent mouseevent)
        public void mouseMoved(MouseEvent mouseevent)
        public void mouseDragged(MouseEvent e)
            if(e.getX() != lastX || e.getY() != lastY)
                Point p = scrollPane.getScrollPosition();
                p.translate(dragStartX - e.getX(), dragStartY - e.getY());
                scrollPane.setScrollPosition(p);
    }...and call here
    public class main {
         public main(){}
         public static void main (String args[])
             frame f = new frame();
    }There is something I couldn't see here.By the way ImageLoader is workin I get the image.
    Thank you for your help,please answer me....

    I'm not going to even attempt to resolve the problem posted. There are other problems with your code that should take priority.
    -- class names by convention start with a capital letter.
    -- don't use the name of a common class from the standard API for your custom class, not even with a difference of case. It'll come back to bite you.
    -- don't mix awt and Swing components in the same GUI. Change your class that extends Canvas to extend JPanel instead, and override paintComponent(...) instead of paint(...).
    -- launch your GUI on the EDT by wrapping it in a SwingUtilities.invokeLater or EventQueue.invokeLater.
    -- calling setSize(...) followed by pack() is meaningless. Use one or the other.
    -- That's not the correct way to display a component in a scroll pane.
    Ah, well, and the problem is that when you call pack(), it retrieves the preferredSize of the components in the JFrame, and you haven't set a preferredSize for the scroll pane.
    Please, for your own good, take a break from whatever it is you're working on and go through The Java&#8482; Tutorials: [Creating a GUI with JFC/Swing|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]
    db

  • Applet size to 100% of frame

    We have a Swing JApplet containing a JTree in a JScrollPane that's part of an HTML frameset. The applet needs to fill 100% of its frame on loading and then resize with the frame. I figured then the best way to do this would be to set width and height to 100% so the browser could handle it. This works great for Netscape, but IE seems to either add a vertical scrollbar or leave whitespace for it to the right of the applet and not fill the frame completely.
    Is there some way around this or some better way to make JApplet size and resize correctly?
    Thanks!

    Sure! FYI, we use JavaScript document.write() calls to output the HTML for the frameset, but I removed so it would fit here better. The code in question is part of navigation.jsp (see below):
    <FRAMESET id="MainFrameLayout" name="MainFrameLayout" rows="60,*" border="0" frameborder="0">
    <FRAME name="banner" id="banner" src="banner_ae.html" scrolling="no" frameborder="0" marginheight="0" marginwidth="0">
    <FRAMESET id="FrameLayout" name="FrameLayout" border="0" frameborder="0" cols="180,*">
    <FRAME name="menu" id="menu" src="navigation.jsp" frameborder="0" marginheight="0" marginwidth="0" style="border: 1px solid #acacac;">
    <FRAMESET id="RtFrameLayout" name="RtFrameLayout" rows="0,0,*" border="0" frameborder="0">
    <FRAME name="ssh" id="ssh" src="/blank.html" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0">
    <FRAME name="wiz" id="wiz" src="/blank.html" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0">
    <FRAME name="text" id="text" src="action/homePage" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0">
    </FRAMESET>
    </FRAMESET>
    </FRAMESET>

  • Is there a way to adjust popup applet size according to applet contents so that I dont have to scroll ever?

    Hello,
    Could anyone please let me know if there is any way to adjust the popup size according to contents displayed in the popup so that I dont have to scroll in the applet.
    Thanks.
    Nanta

    Sorry mate, cant post a screenshot as the site is client confidential...can get me in trouble.
    its just that default width of the popup is 300px(using inspect element); but when the popup opens, some of the buttons are not visible and I have to scroll horizontally to see these.
    I was looking for something wherein I can permanently set the popup width to 700px.
    Any help is appreciated. Thanks.

  • Applet size

    How to optimize size of applet to be loaded on sim?

    Hi
    FIrst of all define all arrays ,variables,object delaration in constructor only.
    One Tool os avilable for debugging aspects developer , evalution version of this tool is freely available ,download it from net.
    With this tool,u can debug that whether there is any memory leak or not in your applet.
    Regards
    Divyesh.

  • Applet size question

    <applet code="file.class" height=400 width=300>
    </applet>
    This is my html file related to a generic "file.java".
    If I wanted that size to remain unaltered while the applet is running (basically if I want to fix the height and width of the applet, so that once it is displayed I cannot resize the window), I guess there is an instruction to handle this... Is there?
    Tnx

    The Java applet is an embedded object in your HTML page. This means that Java does not have direct controll over the browser window. In other words: there's no easy way to make Java stop people from resizing the browser window. There are two solutions for your 'problem'.
    You could make your applet pop up a Java window (either AWT or Swing). Java has full controll over its own windows, so that will allow you to allow and disallow users any particular action. The downside is that -especially when using Swing- this is going to increase the filesize of your applet (and when using Swing, you also need to make sure visitors have the Swing libraries).
    The other solution is making JavaScript pop up a child browser window in which you load the HTML page containing your applet. You can make JavaScript prevent people from resizing the child window.

  • Pls answer my three questions: custom install : web cache applet support: Urgent

    we are using 9iAS v 10200 in win2000 server.
    Here are my queries:
    1: Does 9iAS v 10200 support custom installation ? For example I
    want to install only web server,webcache,forms & reports support.
    If custom installation of individual components is not available
    on v 10200 then in which version it is supported ?
    2. whenever I try installs 9iAS v 10200 from network,then after
    rebooting(during start of installation)it gives JRE error. is
    this a limitation of 9iAS v 10200 ?
    3. 9iAS v 10200 web cache does not support applet. In which
    version of 9iAS web cache would support applet ?
    Its urgent. Thanks in Advance
    yogesh

    Custom installation is not supported for iAS but we have four
    different install types & you can select according to yor need
    these are all available with iAS10221 onwards.You check for
    installation docs related to the version you are using.

  • Clustered Servers and Applet (Very URGENT Please)

    Hi,
    I'm using win2k/CF application server 4.5/IPlanet web server/NN4.79/JRE1.4.1/.
    I have an applet in one of my web page which downloads a file from the web server(stored in http://www.abc.net/doc/zip directory on the server).
    Now when I run this code on the development server, everything works fine.
    But in production environment, we have 3 clustered web servers controlled by a controller (Local Cisco Director) machine. The applet code looks like this:-
    strURL = "http://www.abc.net/doc/Zip/"; //the URL from which the zip is to be downloaded. Basically it hits the Controller first
         strZipFileName=getParameter("zipFileName");
         strURL = strURL+strZipFileName;
              //Get Connection to Server and Download the file
              try{
              objUrl = new URL(strURL);
              httpCon = (HttpURLConnection) objUrl.openConnection();
                   //DownLoad the File
                   InputStream fileInputStrm = httpCon.getInputStream();
                   // create a file object which will contain the directory structure to copy in the local machine
                   localZipFile = new File(strLocalFilePath+strZipFileName);
                   FileOutputStream fileOutStrm = new FileOutputStream(localZipFile);
                   int ch;
              while ((ch = fileInputStrm.read()) != -1) {
                        fileOutStrm.write(ch);
                   // Close the InputStream, HTTP connection , File stream
              fileInputStrm.close();
              httpCon.disconnect();
              fileOutStrm.close();
    Now when the home page of the site is loaded it makes the connection and controller redirects this request to one of the web servers (say 1) which is least loaded.
    Now when the applet is loaded, the new connection is established to the controller and it may redirect the request to any one of the 3 web servers (not necessarily to 1 which is required). Now sometimes it hits the right web server on which the required zip file is stored, and sometimes it doesn't hit the correct server.
    Any clue what we can do in this scenario so that the applet downloads the correct file from the right server?
    Please help it is very urgent....
    Thanks

    Did you ever get a response to this or figure out how to run in a clustered environment? I am now running into the same issue and would be interested in whatever you learned.

Maybe you are looking for

  • Epson stylus CX5500 - scanning size

    Hi, I having problems with my all in one printer and scanner (Epson stylus CX5500). I can open the scanning program in both printers and faxes and image capture, and the 'overview scan' is fine and captures the whole document/image but when it does t

  • Can I have two versions of OSX running on same machine?

    Hi - since upgrading from Snow Leopard to Mountain Lion recently I have run into an unexpected problem (though I'm sure there would have been a warning that I missed). Some of my older applications, such as Adobe Creative Suite version 1, no longer r

  • Use of Recovery disks

    Hi, I am trying to reload a Satellite 1415-S173. I have the startup disks but no way to install them. The DVD-ROM is broken and the computer won't read an external DVD player on a USB port. Can the startup disks be broken down into floppies? Is there

  • Subcontracting challan reconciliation error

    hiii when i m using j1ifq for reconcile the subcontracting challan qty. than system showing a error.... "Challan 0000000001  Material SFG200KPLP009 is assigned more quantity by 20,000 NOS" how it will be reconcile?

  • GRPCRTA_PC shortdumps on dropdown "Regulation ID"

    Hello,      I have set up everything (at least from teh documentations) on the GRC PC side.  But, I am having an issue with getting anything to return to an automated control.  Here is our info: On the ECC this is the RTA: GRCPCRTA    -    300_700