Resizing a window containing a graph

I have created a class that plots points on a graph using two arrays passed to the class. One array is for the x-values, the other is for the y-values. Initially, the graph is fine. When I minimize or maximize the window, the values in the arrays change and causes the points to disappear. If I restore the window to the original size, the points are still gone. Why are the values in my array changing? Here is the code:
//Graph_Lin.java
//Graphs thermodynamic properties
import java.util.Scanner;
import java.awt.Graphics;
import javax.swing.JPanel;
public class Graph_Lin extends JPanel
  private int x1, y1, x2, y2;
  public double x[], y[];
  public double xpoint[], ypoint[];
  private double xmax = 0;
  private double ymax = 0;
  private double xmin, ymin, xrange, yrange;
  //constructor sets coordinates of axes
  public Graph_Lin( double xdata[], double ydata[] )
    x = xdata;
    y = ydata;
    xpoint = xdata;
    ypoint = ydata;
      xmin = x[0];
      ymin = y[0];
      int j = 0;
      while ( x[j] > 0)
        if ( x[j] > xmax)
       xmax = x[j];
     if ( y[j] > ymax)
         ymax = y[j];
        if ( x[j] < xmin)
       xmin = x[j];
     if ( y[j] < ymin)
         ymin = y[j];
     j++;
      yrange = ymax - ymin;
      xrange = xmax - xmin;
    public void paintComponent( Graphics g )
      super.paintComponent( g );
      x1 = getx1();
      x2 = getx2();
      y1 = gety1();
      y2 = gety2();
      g.drawLine(x1, y1, x2, y1);
      g.drawLine(x1, y1, x1, y2);
//*****create the points for plotting*************
      int diam = 10;  //diameter of data point in pixels, should be an even number
      for ( int i = 0; i < x.length; i++ )
     xpoint[i] = (x[i]-xmin)/xrange*(x2-x1)+x1 - diam/2;
     ypoint[i] = y1 - (y[i]-ymin)/yrange*(y1-y2) - diam/2;
      for ( int i = 0; i < x.length; i++ )
       g.drawOval( ((int) xpoint),((int) ypoint[i]),diam,diam);
//*****get values for the x and y axes****************
public int getx1()
return x1 = (int) (.05 * getWidth());
public int gety1()
return y1 = (int) (.95 * getHeight());
public int getx2()
return x2 = (int) (.95 * getWidth());
public int gety2()
return y2 = (int) (.05 * getHeight());
//*****end get values for the x and y axes************

What is an SSCCE? Here are the other files. I think I got them all.
//LiquidDensity.java
//This class calculates and returns density for water vapor
//First, it calculates specific volume.  Then it returns the reciprocal as density
public class LiquidDensity
  public double getv(double T)
      double kv = 1;          //kv represents specific volume x 10^3
      double Th, Tl, kh, kl;     //kh is spec vol at Th, kl is spec vol at Tl
     if (T >= 645 && T <= 647.3)
          Th = 647.3;
          Tl = 645;
            kh = 3.170;
          kl = 2.351;
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 640 && T <= 645)
          Tl = 640;
          Th = Tl+5;
            kl = 2.075;
          kh = 2.351;
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 635 && T <= 640)
          Tl = 635;
          Th = Tl+5;
            kl = 1.935;
          kh = 2.075;
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 630 && T <= 635)
          Tl = 630;     //mod
          Th = Tl+5;
            kl = 1.856;     //mod
          kh = 1.935;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 625 && T <= 630)
          Tl = 625;     //mod
          Th = Tl+5;
            kl = 1.778;     //mod
          kh = 1.856;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 620 && T <= 625)
          Tl = 620;     //mod
          Th = Tl+5;
            kl = 1.705;     //mod
          kh = 1.778;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 610 && T <= 620)
          Tl = 610;     //mod
          Th = Tl+10;
            kl = 1.612;     //mod
          kh = 1.705;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 600 && T <= 610)
          Tl = 600;     //mod
          Th = Tl+10;
            kl = 1.541;     //mod
          kh = 1.612;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 590 && T <= 600)
          Tl = 590;     //mod
          Th = Tl+10;
            kl = 1.482;     //mod
          kh = 1.541;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 580 && T <= 590)
          Tl = 580;     //mod
          Th = Tl+10;
            kl = 1.433;     //mod
          kh = 1.482;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 570 && T <= 580)
          Tl = 570;     //mod
          Th = Tl+10;
            kl = 1.392;     //mod
          kh = 1.433;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 560 && T <= 570)
          Tl = 560;     //mod
          Th = Tl+10;
            kl = 1.355;     //mod
          kh = 1.392;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 550 && T <= 560)
          Tl = 550;     //mod
          Th = Tl+10;
            kl = 1.323;     //mod
          kh = 1.355;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 540 && T <= 550)
          Tl = 540;     //mod
          Th = Tl+10;
            kl = 1.294;     //mod
          kh = 1.323;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 530 && T <= 540)
          Tl = 530;     //mod
          Th = Tl+10;
            kl = 1.268;     //mod
          kh = 1.294;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 520 && T <= 530)
          Tl = 520;     //mod
          Th = Tl+10;
            kl = 1.244;     //mod
          kh = 1.268;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 510 && T <= 520)
          Tl = 510;     //mod
          Th = Tl+10;
            kl = 1.222;     //mod
          kh = 1.244;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 500 && T <= 510)
          Tl = 500;     //mod
          Th = Tl+10;
            kl = 1.203;     //mod
          kh = 1.222;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 490 && T <= 500)
          Tl = 490;     //mod
          Th = Tl+10;
            kl = 1.184;     //mod
          kh = 1.203;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 480 && T <= 490)
          Tl = 480;     //mod
          Th = Tl+10;
            kl = 1.167;     //mod
          kh = 1.184;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 470 && T <= 480)
          Tl = 470;     //mod
          Th = Tl+10;
            kl = 1.152;     //mod
          kh = 1.167;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 460 && T <= 470)
          Tl = 460;     //mod
          Th = Tl+10;
            kl = 1.137;     //mod
          kh = 1.152;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 450 && T <= 460)
          Tl = 450;     //mod
          Th = Tl+10;
            kl = 1.123;     //mod
          kh = 1.137;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 440 && T <= 450)
          Tl = 440;     //mod
          Th = Tl+10;
            kl = 1.110;     //mod
          kh = 1.123;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 430 && T <= 440)
          Tl = 430;     //mod
          Th = Tl+10;
            kl = 1.099;     //mod
          kh = 1.110;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 420 && T <= 430)
          Tl = 420;     //mod
          Th = Tl+10;
            kl = 1.088;     //mod
          kh = 1.099;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 410 && T <= 420)
          Tl = 410;     //mod
          Th = Tl+10;
            kl = 1.077;     //mod
          kh = 1.088;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 400 && T <= 410)
          Tl = 400;     //mod
          Th = Tl+10;
            kl = 1.067;     //mod
          kh = 1.077;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 390 && T <= 400)
          Tl = 390;     //mod
          Th = Tl+10;
            kl = 1.058;     //mod
          kh = 1.067;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 385 && T <= 390)
          Tl = 385;     //mod
          Th = Tl+5;
            kl = 1.053;     //mod
          kh = 1.058;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 380 && T <= 385)
          Tl = 380;     //mod
          Th = Tl+5;
            kl = 1.049;     //mod
          kh = 1.053;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 375 && T <= 380)
          Tl = 375;     //mod
          Th = Tl+5;
            kl = 1.045;     //mod
          kh = 1.049;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 373.15 && T <= 375)
          Tl = 373.15;     //mod
          Th = 375;
            kl = 1.044;     //mod
          kh = 1.045;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     else if (T >= 370 && T <= 373.15)
          Tl = 370;     //mod
          Th = 373.15;
            kl = 1.041;     //mod
          kh = 1.044;     //mod
          kv = (((kh-kl)/(Th-Tl))*(T-Th)+kh)*Math.pow(10, -3);
     return 1/kv;          //returns liquid density for specified temperature
}Next file
//A Test program
//John Abbitt
//November 29, 2006
import javax.swing.JFrame;     //import class JOptionPane
public class Test
  public static void main( String args[] )
    double array1[] = new double[200];
    double array2[] = new double[200];
    LiquidDensity dl = new LiquidDensity();
    //Conductivity c = new Conductivity();
    //SpecificVolumeG g = new SpecificVolumeG();
    double T = 370;
    for (int i = 0; i <56; i++)
      array1[i] = T;
      array2[i] = dl.getv(T)  ;
      T=T+5;
    //Test the graph
    JTabbedPaneSetUp application = new JTabbedPaneSetUp(array1, array2);
    application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    application.setSize( 400, 400 );
    application.setVisible( true );
}Next file
//A Test program
//John Abbitt
//November 29, 2006
import javax.swing.*;     //import class JOptionPane
public class JTabbedPaneSetUp extends JFrame
  public double x[], y[];
  public JTabbedPaneSetUp(double array1[], double array2[])
    super( "Graph Program" );
    x = array1;
    y = array2;
    Graph_Lin graph1 = new Graph_Lin(x, y);
    Graph_Log graph2 = new Graph_Log(x, y);
    JTabbedPane tabbedPane = new JTabbedPane();
    //set up panel1 and add it to JTabbedPane
    JPanel panel1 = new JPanel();
    tabbedPane.addTab( "Linear", null, graph1, "Displays a liner graph");
    //set up panel2 and add it to JTabbedPane
    JPanel panel2 = new JPanel();
    tabbedPane.addTab( "Semi-log", null, graph2, "Displays a semi-log graph");
    add( tabbedPane );
}

Similar Messages

  • Viewing Window for Large Graphs

    Hi! I'm looking for pointers on how to develop a viewing window for large graphs, otherwise called 'reference maps' or 'reference diagrams'. For instance, you might have a very large diagram that does not fit in your screen with a very small version of it to one side. Over the small graph, there would be a square box that you move around to focus over to section of the graph. As you move the box, the large diagram on the other side moves around to show that "enlarged" area covered by the box. I'm trying to avoid reinventing the wheel. I've found plenty of information on graphs and diagrams, but nothing close to what I need. Please help? Thanks!

    Here's something I played with for a while.import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class Test extends JFrame {
        String text = "Hi! I'm looking for pointers on how to develop a viewing\n"+
                "window for large graphs, otherwise called 'reference maps'\n"+
                "or 'reference diagrams'. For instance, you might have a\n"+
                "very large diagram that does not fit in your screen with a\n"+
                "very small version of it to one side. Over the small graph\n"+
                ", there would be a square box that you move around to\n"+
                "focus over to section of the graph. As you move the box,\n"+
                "the large diagram on the other side moves around to show\n"+
                "that \"enlarged\" area covered by the box. I'm trying to\n"+
                "avoid reinventing the wheel. I've found plenty of\n"+
                "information on graphs and diagrams, but nothing close to\n"+
                "what I need. Please help? Thanks!";
        JTextArea jta = new JTextArea(text);
        JScrollPane jsp = new JScrollPane(jta);
        JPanel p = new ReferencePanel(jsp);
        public Test() {
         setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
         Container content = getContentPane();
         content.setLayout(new GridLayout(1,2));
         content.add(jsp);
         content.add(p);
         setSize(300,200);
         show();
        public static void main( String args[] ) { new Test(); }
    class ReferencePanel extends JPanel {
        JScrollPane jsp;
        JScrollBar horiz, vert;
        Image img;
        public ReferencePanel(JScrollPane JSP) {
         jsp = JSP;
         horiz = jsp.getHorizontalScrollBar();
         vert = jsp.getVerticalScrollBar();
         jsp.getViewport().addChangeListener(new ChangeListener() {
             public void stateChanged(ChangeEvent ce) { updateView(); }
         jsp.getViewport().getView().addComponentListener(new ComponentAdapter() {
             public void componentShown(ComponentEvent ce) { updateView(); }
             public void componentResized(ComponentEvent ce) { updateView(); }
         addMouseListener(new MouseAdapter() {
             public void mousePressed(MouseEvent me) { setScrolls(me); }
        public void paint(Graphics g) {
         if (img!=null) g.drawImage(img, 0, 0, this);
        private void setScrolls(MouseEvent me) {
         vert.setValue(me.getY()*(vert.getMaximum()-vert.getVisibleAmount()/2)/getHeight());
         horiz.setValue(me.getX()*(horiz.getMaximum()-horiz.getVisibleAmount()/2)/getWidth());
        private void updateView() {
         Component c = jsp.getViewport().getView();
         if (c== null || c.getWidth()==0) return;
         Image i = c.createImage(c.getWidth(), c.getHeight());
         c.printAll(i.getGraphics());
         img = i.getScaledInstance(getWidth(), getHeight(), Image.SCALE_SMOOTH);
         repaint();
    }

  • Text runs of the page / doesn't resize with window

    Hi,
    I have seen this before but cant figure out how to fix this:
    In Mail and other applicaitons that involve typing text the sentenses run off the "page".
    When I resize the window the lines dont' adapt to the window.
    I am stumped, please help :-)
    Rogier

    Howdy. See if this helps:
    https://discussions.apple.com/thread/5298047?tstart=150

  • How do webpage developers get Firefox to use the windows.resize or windows.moveTo javascript functions that seem to now be passed over?

    Before V7, this code worked and did as requested every time the page was run. Now, it does not work and no error is reported. Google Chrome and Internet Explorer are able to produce th correct result.
    <script type="text/javascript">
    window.resizeTo(325,700);
    window.moveTo(1150,10);
    </script>
    I have a site where I use window.open to create a login window with minimum chrome.
    On successful login, the window that created the login window updates itself to another page. The login window is supposed to resize itself and move to create a console panel to the right of the screen.
    I have tried to update the window from its parent at the point of successful login (flagged by a database change, checked frequently). I have also included code in the new window itself to resize itself to no avail.
    The new code seems to be failing on both the conditions laid out!

    Some conditions were added in 7.0 to avoid abuse of the resize and move functions:
    #Can't resize a window/tab that hasn't been created by window.open.
    #Can't resize a tab if the tab is in a window with more than one tab.
    * https://bugzilla.mozilla.org/show_bug.cgi?id=565541#c24
    There's still some discussion on the bug - including some solutions and troubleshooting for pages that were affected that shouldn't be - and it's being tracked to make sure it doesn't have any adverse effects.

  • Using javascript to resize the window

    I've got a project that I would like to resize depending on which slide the learner is viewing.
    I' aware that the javascript method:
    window.resizeTo(width,height)
    can be used to resize a window.
    In my case I want it to be for the tall window:
    window.resizeTo(1016,650)
    and for the short window;
    window.resizeTo(1016,165)
    I'm also aware that you can tell a button (or anything else) to execute javascript.
    I'm having trouble making it work, tough.
    I've tried putting the method directly into the Script_Window for the button.
    I've tried writing a function in the published file, then having the button call that function.
    Can you paste javascript snippets into the Script_Window? Or do you need go the whole 9 yards and write the entire function, name the button instance, and tell the Captivate button to call that function?
    I'm just now sure how much Captivate knows how to do and how much I need to tell it.
    Thanks in advance!
    Joe           

    Thanks for your response, Jim.
    My window was created by a previous window using the code:
    <script language="JavaScript">
    function newWindow() {
    TheNewWin = window.open("main.htm","newWin","status=no,resizable=yes,left=0,top=0,width=1014,height=6 50");
    TheNewWin.focus()
    </script>
    I tried the code above in the ScriptWindow of a Captivate button (running in a Captivate SWF in the new window). It didn't work.
    I also tried:
    TheNewWin.resizeTo(1016,165);
    and
    newWin.resizeTo(1016,165);
    neither of which worked.
    Any other guidance would be appreciated.

  • Create a hyperlink that does not open a new window if a window containing the url is already open?

    Is there a way to create a hyperlink to a url that "jumps to" the URL's window if it is already open in the browser?  Therefore a new window is not opened and the existing window containing the hyperlink would not change either.
    If the target url is not already open, then yes the link could either open in a new window or in its existing window.
    Does anyone know if there is a command/code for this? 

    Ok, so to be clear, I should add all of the following:
    Header 1
    function getCookie(c_name) {
    if (document.cookie.length>0)   {
    c_start=document.cookie.indexOf(c_name + "=");
    if (c_start!=-1)     {
        c_start=c_start + c_name.length+1;
        c_end=document.cookie.indexOf(";",c_start);
        if (c_end==-1) c_end=document.cookie.length;
        return unescape(document.cookie.substring(c_start,c_end));
    return "";
    function wOpen () {
    var cookiename = getCookie ('winFlag');
    newWin = window.open("YOURPAGE.html","myWin'","height=200, width=200");
    newWin.blur();
        document.cookie = "winFlag=1";
    into 1 file?  And that is the file that links to the music page?
    I don't know if my Flash music page creates a cookie onto the user's browser.  That would be necessary for this to work, right?

  • Resizing IE window makes game errors

    I am running Windows Vista and the latest Java Run Time, If I open up runescape in full screen the game plays with no problems, if I then resize the window (smaller) visually it looks fine until I try to click somewhere with the mouse, and I end up clicking an inch or so under where I wanted, if I resize back to full screen it is fine again.
    Conversely if I open the screen window in small the game works fine, if I then resize (larger) I get the image the same size as the small screen and the rest of the screen is white and once again the mouse does not click in the right place.
    I have the latest driver from NVIDEA, however this may have something to do with it, I updated the driver because the older driver kept failing and closing the game window down, I no longer get that problem, just replaced it with a new one.
    Any suggestions would be appreciated, thanks for reading.
    Edited by: Athelstan1 on Sep 23, 2008 8:27 AM

    Hi Isla
    Your message is really, very, very long. I think its too long to read it twice ;)
    . Regarding all your issues on this notebook well. it looks like you have installed many 3rd party programs and applications. In such case its not easy to say if such issues are software or hardware related. But I presume its software.
    I checked your screenshot pic but I have never seen such error message. But it looks like something wrong with the graphic card driver. The message says something about Live Kernel Event
    A kernel's services are requested by other parts of the operating system like graphic card driver for example.
    In such case I would recommend updating the graphic driver. According to you message its a Intel GPU. So you could check the Intel page for the compatible graphic chip driver.
    Regarding the FN key issue;
    The Toshiba FlashCard utility controls the FN key functionality. I have read in this forum that this application does not run smoothly and in some cases it causes some issues. The new update should solve the problems. You should check the Toshiba driver page. The FlashCard Utility is a part of the Toshiba Value added package.
    So finally one more hint:
    You should always check for the Vista updates on the Microsoft page. This OS is not perfected and Microsoft releases very often patches and fixes
    Hope it could helps a little bit.
    If necessary just ask for more info :)
    Regards

  • Cannot resize safari window

    i can't resize the safari window by hovering over the bottom right corner of the window. I am working on a Macbook Pro and Yosemite.
    thanks!

    When you hover over the corner do you not see the cursor change to a slanted heavy line with arrows at each end? Do you then click down and then resize the window?

  • Cannot move or resize any window

    Hello there,
    I have a brand new rMBP which I could be very happy with ... unless for whatever reason I cannot move or resize any window at all.
    Cannot resize/move Finder, Safari, Preview, ... anything !!!
    How the **** is that ?
    I have googled a bit but found nothing.
    Anybody can help ?
    It's OSX Lion 10.7.4
    Thanks

    ok found it
    preferences > universal access > mouse & trackpad > trackpad options > dragging
    I had to check that box !!
    I really wonder why it was not checked by default, but anyway I am happy now.

  • Cannot Resize Finder Windows

    Since  a couple of days I have sometimes trouble resizing Finder windows in Lion (10.7.1).
    Clicking on the green plus-icon does not change anything and trying to resize by going to the edges or corners does not work either. The curser changes to an arrow but nothing happens when dragging.
    The other two icons (red and yellow) still work as normal. Closing the window an re-opening the same directory "solves" the problem. The new window is fully resizable again.
    Any idea what causes this issue?

    I have a feeling SMB might have something to do with it. I used to have problems with permissions behaving correctly when accessing SMB servers in the past. but this is a kind of difficult problem to further diagnose.
    On the other hand maybe it is just .DS_Stores making mischief... would it be any harm to delete all the .DS_Stores on the network volumes?
    I used to do this periodically with a script because OS X has a habit leaving a trail of both these and apple double files behind for non HFS volumes.

  • Resizing labview window that has been converted

    I just would if it is possible to resize a labview window once it has been converted to a different version. I have labview 7.1 and converted to 6.1 and I am trying to resize the window but it doesn't let me. Is there another way around this?

    You should be able to resize any vi even though it has been converted.  Go to the File Menu and select VI Properties.  Then select Window Size in the Catagory box.  Make sure that zeros are entered for the Minimum Panel Size, and that the "Set the Front Panel to the width and height of the entire screen" checkbox is unchecked.
    - tbob
    Inventor of the WORM Global

  • How can i refer to the parent window of the window containing an applet ?

    Hi all,
    I m stuck up with something. I have a web page say 'page1' which has a link that opens up a popup window. This popup say 'page2' window has an applet. On clicking particular pins on the applet i need to
    direct page1 to another URL & close the popup window. i hv tried this code.
    URL url = new URL(applet.getCodeBase(), path);
    AppletContext appletcontext = applet.getAppletContext();
    appletcontext.showDocument(url, "content");
    JSObject win = JSObject.getWindow(applet);
    win.eval("alert(\"Do u wnat to close!\");");
    win.eval("window.close()");
    This code opens up another window on click of the pin, & shows an alert before closing the popup window. On using
    appletcontext.showDocument(url, "_parent"); or
    appletcontext.showDocument(url, "_top");
    The window containing applet gets refreshed with the URL but not page1.
    How can i refer so to page1 from the applet.

    You don't show your code for what parent or top are, but in an
    applet, you must stick with relative links. Once you have the
    appletcontext, use a relative path from there:
    In the snippet below, docName is a relative path, i.e. ../up/above
       * Displays the specified document in the Web browser.
       * @param docName String pathname of document to download from Webserver
       * @return void
      private void fetchDocument(String docName) {
         AppletContext ctx = getAppletContext();
         java.net.URL serverURL = getDocumentBase();
         java.net.URL codeURL   = getCodeBase();
         java.net.URL docURL = null;
         try {
            docURL = new java.net.URL(codeURL, docName);
         catch (java.net.MalformedURLException err) {
            System.out.println("unable to compute URL from (" + serverURL + ", " +
                               docName + ")");
         if(this.bDebug)
           System.out.println("Open document: " + docURL.toString());
         ctx.showDocument(docURL);
      }

  • Resize the window by some other place except corner

    hi,
    Is there any way to resize the window except by corner. like "realplayer10"
    in which when play video we can resize the window by right-bottom of video image this place not corner of that window

    I've chosen not to use the new Photos app, so I can't be of any help with it - I will ask the hosts to move this to the Photos forum where more knowledgeable people hang out.

  • How do U resize a window in start up

    Im making an applet that draws somehting and my drawing is bigger than my applet i want to only view it in a n applet viewer so how do i resize the window automaticly so at start up i get a big enough window to fit my drawing in.

    try n add this in ur html file.
    hope it helps.
    An applets width and height properties are only available in Internet Explorer 4 - and then they are only read only.
    The only possible way is to trap the resize event using the documents onResize event handler in Netscape Navigator 4 and Internet Explorer 4 to reload the page:
    <HTML>
    <body onResize="document.history.go(0)">
    <applet width="100%" height="100%">
    </applet>
    </body>
    </html>

  • Hi, i wanted to resize my windows partion. I was thinking of using the default backup system for windows. Then switching to mac partion, deleting the bootcamp and then restoring a new enlarged partion from the backup. Is this possible?

    hi,
    i wanted to resize my windows partition. I was thinking of using the default backup system for windows. Then switching to mac partion, deleting the bootcamp and then restoring a new enlarged partition from the backup. Is this possible?

    I see youhave gotten recommendatons for using WinClone or CampTune.  I have used both and they both work well.
    You have asked about using the WIndows 7 utility to backup your drive and restor it onto a larger partition.  I will tell you fro experience that this will probably not do what you want, and may do something that you don't want.  You can use the Windows 7 native backup tool to make a backup of your Windows 7 partition.  It will most liekly end-up making a dive image of the whole drive.  When yourestore that backup, it will try to re-create teh partitions of exactly the same size as they were when the backup was taken, so it won't increase your partition size for you.  Worse, since Windows doesn't natively know how to read./write HFS+ volumes, the backup will make a partition for your MacOS (replacing any you may have now), except that the copy restored by WIndows will be totally worthless, and you will not be able to boot MacOS from it, or even read it under MacOS.
    Now I will tell you that I've also had some fairly good success working with the free tool CloneZilla.  Since it hasn't been mentioned yet, and everything else mentioned does cost you money, I thought I would throw it out.  CloneZilla is not as easy to use as the tools mentioned, but it has worked for me int hte past, so it is something to consider.  I tend to use CampTune myself, but that was because I purchased a bundle deal for them and it was included in that deal.

Maybe you are looking for

  • Sharing itunes between users on one computer

    Hi, How do you share one itunes library between multiple users on one mac? At the moment each user on our computer has their own library which has lead to a lot of music being duplicated. Is there any way to have this all in one library?! Many thanks

  • Weblogic 10.0 Comatability with JDK1.6

    I have installed weblogic 10.0 on unix machine. And when i istalled it JDK1.5 will automatically installed with it inside weblogic folder. And when i create a new instance of weblogic with existing JDK1.5 the instace will start properly and applicati

  • How to update partner function in PO.

    Hi guys,   Please help me, How to update partner function in PO.(Transaction ME23N),BAPI_PO_CHANGE is not updating this.it gives error like partner roles not change.

  • Alternative unit of measure issue in PP in Food industry

    Hi, I want clarification regarding alternative units here sales order unit is master cartons,, production people will produce in pieces,, we are applying 40 strategy here,,,, so based on master cartons,,MRP will give planned orders in master cartons

  • Work flow - Event problem

    Hi, When I am executing Workflow-program, by calling function module <b>'SWE_EVENT_CREATE' and this function module returining EVENT ID always "00000000000000000002"</b> (always same). And also I am not able to see SAP mail in SO01. I think Workflow