Dynamically changing windows size

Hi Folks,
Is it possible to dynamically change the dimensions of windows i.e. Main and Secondary windows.

Hi,
See the fallowing link
Smart forms - Dynamic sizing of the windows.
Regards,
Vijay.

Similar Messages

  • Changing window size of script  in Non original language

    Hi Gurus,
    Is there any option to change the window sizes of a script in NON ORIGINAL language. Generally it wont allow to change window sizes in NON ORIGINAL language.Is there any workaround.Please help.
    Thanks & Regards,
    Sam.

    It is not possible to change the window size in non-original language.. only changes of windows paragraph formats are possible in original languages...
    If your form is global templet.. make sure you inform the user and on there approval do customise your form and do the respective changes..
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Why is CS6 Zoom change window size is different then previous versions?

    Why in CS6 when zoom changes window size and a folating window fits in Photoshop window or on other display screen do I get scroll bars where a select all selection marching ants are not visible on all four sides till I drag out the window to get rid of the scroll bars so I can see all of marching ants.  In preious versions of Photoshop space for scroll bars is present but there are no scrool bar, select all marching ants are visible on all four sides when an image's window fits in Photoshop window or on second display. Is there a way to make CS6 work like previous versions? Also if I just open a document and Photoshop fits it to Photoshop window or second display the floating window is correct without scroll bars. Zoon add then even when not needed....

    Without manually resizing each open document window on my Mac, Photoshop 13.x would be simply unusable.
    I hadn't posted anything on the subject because the system on which I run Ps 13.0.1 is based on a laptop (MacBook) literally rescued from the trash and with minimal specs.  The graphics card is not even involved in processing.
    I put up with it because I'm basically using it to run ACR 7.2RC1, then bring the converted and ACR-adjusted onto my regular working machine running CS4.
    In a nutshell, nothing will make the window fit the main monitor, not Fit To Window, nor 100% view, nor any shortcut.
    I need to drag the window manually from the lower right-hand corner in order for it to fit the monitor.  Otherwise, there are substantial gaps on the right and at the bottom.  I never run in tab view.
    For the sake of thoroughness:
    2007, 2GHz MacBook 2,1, Intel Core 2 Duo, 4 GB of RAM (can use 3 GB), 160 GB internal boot disk, dedicated FireWire400 external HD for Ps scratch disk, external Time Machine HD.  Dual external monitors + built-in laptop screen Snow Leopard 10.6.8.
    The Mac-Intel is used for no other purpose than running ACR 7.2RC1 and the only other application I occasionally run on said Mac-Intel is TextEdit.
    My main working machine is a Power Mac (PPC) G5 Quad with 16 GB of RAM, on which 11.0.2 is the last version of Photoshop to run, so I have the Mac-Intel system described above just to run ACR 7.x under Photoshop 13.0.1.  I convert my raw files in ACR7.x open them in Ps 13.0.x and save them via Ethernet to an external HD connected to the G5 Quad for further processing in CS4.
    2.5 GHz Power Mac (PPC) G5-Quad; 16GB RAM; mutant, flashed 550MHz nVidia GeForce 7800GTX 1,700MHz 512MB VRAM; ATTO ExpressPCI UL5D LP SCSI card; Mac OS X Tiger 10.4.11 and Leopard 10.5.8 boot drives; intrusive Spotblight, Dashboard and Time Machine permanently disabled; dual 22" CRT monitors; USB wireless 'n' available but connected to the Internet via wired Ethernet; FW flatbed scanner; 2 SCSI scanners (one tabloid-size transparency scanner and a film scanner); various internal & external HDs; FW Epson 2200 and Ethernet Samsung ML-2850ND printers; 2 X Back-UPS RS 1500 XS units.

  • How to change window size dynamicalyy in scripts

    HI,
       how to change window size dynamicalyy in sap scripts.pls suggest me.

    You acnnot do that but what you can do is to have two layouts, having two windows with different sizes and calling one of them conditionally.
    using start_form end_form functions:
    open_form.
    if cond 1.
    call start_form. "pass form 1
    call end_form.
    endif.
    if cond 2.
    call start_form. "pass form 2
    call end_form.
    endif.
    close_form.
    Regards,
    ravi

  • Dynamically change in size of the custom container using ALV GRID (OOPS)

    Hi Gurus!!!!
    I have an issue with the output of the report which is developed using ALV GRID (OOPS). I have used the custom container occupying full screen (Screen painter). When I execute the report using my PC the output displays report as expected in full screen. The problem is when we execute this report in 19 INCH monitor then there is always gap below the report.
    As per my understanding we should have a code to change the size of custom container dynamically.
    Please suggest some help on this.
    Thanks,
    Hemal Shah

    Hi,
    If you set the attributes, Resizing - Vertical and Horizontal for the customer container, than system will resize the size of the custome continer as per the resolution.
    Hope it helps,
    Sumana

  • Dynamic main window size

    hi all,
    Mian window size should vary based on the value.
    This is my situation ... if my footer window is not printed the space is left blank, but my scenerio is to cover the blank space with my main window when my footer window is not displayed.
    for example when the data exceeds first page then my footer window willbe printed only in the next page, so space left by the window should be filled by main window .
    how to dynamically chage teh main window size based on the footer window...
    Please provide me the details.
    Thanks in advance.
    Suresh RR

    Hi Suresh,
    Theres no need to use a dynamic main window. All you have to  do is to print the footer on the last page if theres no content in the main window. I will explain how.
    Just create a main window that fills up the page to the end. Use a text element for printing the main window content. Once that is done check &PAGE& equal to &SAPSCRIPT-FORMPAGES& (This field contains a number representing the total number of pages of the currently formatted form). Once that is done it means that the last page is reached. Then you call another text element having the footer text or data. that way you cqan print the footer in the last page without modifying the main window.
    Reward if helpful.

  • How to change window size?

    My top level ancestor is a JFrame and I want to change my application window size. I found that there is a ComponentEvent.COMPONENT_RESIZED event but how I can fire this event?
    thanks

    JFrame f = (JFrame)this.getTopLevelAncestor();
    f.setSize(newX, newY);Of course, if the resize is according to a child component resizing..
    f.pack();..should do the trick.

  • Can't use letter A - it changes window size

    Whenever I use the letter A, upper or lower case, it changes the window size - first small and then big. Its driving me nuts. I can't type a word using "a", and my windows keep changing size whenever I use it. I'm obviously typing this on another computer.
    I've rebooted, and I checked preferences and there is not a keyboard shortcut accidentally assigned to "a".
    any ideas?

    you could try another account; see if it has the same issue. (if it still happens its not settings)
    you could enable the keyboard viewer; and see if pressing a is being registered as pressing another key
    (apple menu, system preferences, language, input source, check keyboard & character viewer, click on thhe us flag on the menu bar, chose show keyboard viewer)

  • Dynamically change stage size on runtime

    Hi everyone,
    I need to change the stage size dynamically.
    When i try to do this............
    size_mc.onRelease = function(){
        trace(Stage.height);
        Stage.height += 100;
        trace(Stage.height);
    it comes always the current stage size.
    Thanks in advance

    You cannot change the width and height properties of the Stage using code--it must be done in the editor.  The width and height values can represent different things depending on the value you set for the scale mode, but you cannot reassign them to different values dynamically.
    The solution just offered to you is under the same rules, the stageWidth and stageHeight values cannot be assigned using code, but that code is AS3 code so it will not fit in your AS2 design in any case.
    The same goes for the followup offered in AS2.  You will notice the stage size is not being changed... it cannot be.  This is just a full screen design solution, but is not a soltuion to changing the stage size.  The stage size can only be changed manually in the authoring environment.  I don't know that the offering is answering what you are really trying to do, but it is not answering the titled task of dynamically changing the stage size

  • CS5.5 Mac crashes every time I change Window Size in Design View

    I'm using DW CS5.5 (version 11.5 build 5344) in Lion 10.7.3.  I added in a couple of window sizes (in Preferences) that correspond to iPhone and Android phones - 320x480, 480x320, 480x800, 640x960.  The 640x960 one works, as does a 592w one that came with Dreamweaver.  Any of the other ones, though, cause the app to hang in this one particular file I'm editing.  However, in the simple jQuery Mobile starter page DW creates, these resolutions work fine.  This appears to be related to some CSS code that I have inside of a CSS media selector:
    @media screen and (max-width:480px)
    There is also a corresponding
    @media screen and (min-width:481px)
    in the CSS.
    To test this, I created a window size of 481x320, and that seemed to work completely fine without crashing DW. The 480x320 one crashes DW.  I assume that's because it's using the different CSS section.
    Pasted below is the CSS code that goes along with the section that seems to cause the crashing:
    @media screen and (max-width:480px) {
      .column {
        margin: 1em 0;
        border-bottom: 1px dashed #7b96bc;
      #visit, #points, #main {
        width: 100%;
        .taplist li {
        width:50%;
      #map {
        display:none;
      .header {
        display:none;
    To further test this out, I commented out all of the code within that block.  The window sizes did not cause it to crash then.  I then started to add back in pieces of code to see when it began to crash.  The crashing seemed limited to the bottom two (#map and .header), although it wasn't consistent.  In some situations the window sizes would work and in others they would crash.  I didn't test every combo just because it took a lot of time.  With both of those in place, though, every one of the 480 or less sizes crashed.
    Notable, the #map section is commented out in the HTML, however including that in the CSS still causes intermittent crashing.
    I also deleted my cache file to see if that was it, and no luck.
    Full code of the two files below (one HTML, one CSS)
    ontap.html
    <!DOCTYPE html>
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> 
        <title>On Tap Now at The Splendid Walrus</title>
      <link rel="stylesheet" type="text/css" href="taps.css" />
    </head>
    <body>
    <div class="navigation">
          <ul>
          <li><a href="/">Home</a></li>
          <li><a href="ontap.html">On Tap Now</a></li>
          <li><a href="about.html">About Us</a></li>
        </ul>
    </div>
    <div class="header"><p>[The splendid walrus surveys his domain!]</p></div>
    <h1>On Tap Now at The Splendid Walrus</h1>
    <div id="ontap" class="column">
      <h2>On tap this month:</h2>
      <ul class="taplist">
        <li><img src="brews_images/bensons_bubbler.jpg" alt="Bensons Bubbler"></li>
        <li><img src="brews_images/chapman_lownsdale.jpg" alt="Chapman Lownsdale"></li>
        <li><img src="brews_images/crystal_springs.jpg" alt="Crystal Springs"></li>
        <li><img src="brews_images/hoyt.jpg" alt="Hoyt"></li>
        <li><img src="brews_images/mill_ends.jpg" alt="Mill Ends"></li>
        <li><img src="brews_images/milo_mciver.jpg" alt="Milo McIver"></li>
        <li><img src="brews_images/mount_tabor.jpg" alt="Mount Tabor"></li>
        <li><img src="brews_images/omsi.jpg" alt="OMSI"></li>
        <li><img src="brews_images/oxbow.jpg" alt="Oxbow"></li>
        <li><img src="brews_images/pittock.jpg" alt="Pittock"></li>
        <li><img src="brews_images/powells.jpg" alt="Powells"></li>
        <li><img src="brews_images/sandy_river.jpg" alt="Sandy River"></li>
        <li><img src="brews_images/sauvie_island.jpg" alt="Sauvie Island"></li>
        <li><img src="brews_images/the_grotto.jpg" alt="The Grotto"></li>
        <li><img src="brews_images/tryon_creek.jpg" alt="Tryon Creek"></li>
        <li><img src="brews_images/wells_fargo.jpg" alt="Wells Fargo"></li>
      </ul>
    </div>
    <div id="visit" class="column">
      <h2>Visit Us!</h2>
      <dl>
        <dt>Location</dt>
        <dd>1543 SW Pretend Street<br />
        Portland, OR 97201</dd>
        <dt>Hours</dt>
          <dd>
            <dl>
              <dt>M-F</dt>
              <dd>Until midnight</dd>
              <dt>Sa-Su</dt>
              <dd>Until 1AM*<p><em><small>*At least</small></em></p></dd>
            </dl>
          </dd>
        <dt>Call us</dt>
        <dd>+1 (503) 555-1212</dd>
      </dl>
      <!--
      <iframe id="map" width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=334+NW+11th+Ave,+Portland,+OR+ 97209&aq=&sll=37.0625,-95.677068&sspn=58.164117,80.332031&vpsrc=0&ie=UTF8&hq=&hnear=334+NW +11th+Ave,+Portland,+Oregon+97209&t=m&ll=45.525472,-122.68218&spn=0.01804,0.025749&z=14&ou tput=embed"></iframe>
      -->
    </div>
    <div class="footer">
      <p>See you soon! Love, The Splendid Walrus</p>
    </div>
    </body>
    </html>
    taps.css
    /* Everything Fluid */
    /* Simple reset */
              margin: 0;
              padding: 0;
    * Color, typography and basic layout
    * (Shared for all devices and clients)
    * Colors:
    * - #f9f3e9 -> light cream (background)
    * - #594846 -> Dark brown (body text, rules)
    * - #42628F -> Dark blue (link text)
    * - #7b96bc -> Medium-light blue (navigation and footer background)
    body {
              background: #f9f3e9;
              color: #594846;
              font: 100% "Adobe Caslon Pro", Georgia, "Times New Roman", serif;
    a, a:visited {
      color: #42628f;
    p {
      margin: 0.5em 0.25em;
    h1 {
      font-size: 1.75em;
              border: solid #594846;
              border-width: 2px 0;
              padding: 0.25em;
      text-align: center;
      font-variant: small-caps;
    h2 {
      text-align: center;
      font-variant: small-caps;
    dl {
      margin: 0 0.5em;
    dt {
      font-weight: bold;
      margin: 0.5em 1em 0.5em 0;
      border-bottom: 1px dashed #7b96bc;
    .intro {
      font-size: 1.15em;
      line-height: 1.3em;
      text-align: justify;
      margin: 0.5em;
      font-weight: bold;
    .navigation {
      background-color:#7b96bc;
      border-bottom: 2px solid #594846;
    .navigation ul li {
      text-align: center;
      display: block;
      float: left;
      padding: 0.25em 0;
    .navigation li a {
      color: #f9f3e9;
      font-variant: small-caps;
      text-decoration: none;
    .header p {
      margin-left: -1000px;
      margin-top: 0;
    #points ul {
      list-style-image: url('images/point.png');
      margin: 0.5em 0 1em 0.5em;
      padding-left: 1em;
    #points ul li {
      margin: 0.5em 1em;
    .footer {
      background-color: #7b96bc;
      color: #f9f3e9;
      text-align: center;
      padding: .5em 0;
      font-style: italic;
    /* Structure */
    /* Common Structural Rules */
    .header, .footer {
      clear: both;
    .header {
      background:url('images/taps.jpg') repeat-x;
      height: 300px;
    .navigation {
      min-height: 25px;
    img, object {
      max-width: 100%;
    .navigation ul li {
      width: 33.333%;
    .header, .footer, .navigation {
      width: 100%;
    /* Brews List */
    .taplist li {
      display:block;
      float:left;
      text-align:center;
      width:33%;
    .taplist img {
      width:100%;
      margin-bottom:5px;
    #ontap, #ontap ul, #ontap ul li {
      background:#fff;
    /* Wider viewports/higher resolutions (e.g. desktop)  */
    @media screen and (min-width:481px) {
      .column {
        margin: 10px 1.04166667% 0 0;
      #visit {
        width: 31.25%;
        float: left;
      #points {
        width: 25%;
        float: right;
      #main {
        margin: 10px 27.0833333% 0 26.0416667%;
      #ontap {
        margin: 10px 0 0 32%;
    /* Mobile/lower-resolution devices */
    @media screen and (max-width:480px) {
      .column {
        margin: 1em 0;
        border-bottom: 1px dashed #7b96bc;
      #visit, #points, #main {
        width: 100%;
      .taplist li {
        width:50%;
      #map {
        display:none;
    /*  .header {
        display:none;

    Thanks very much Chris for pointing me in the right direction.  I downloaded FontDoctor, and it found one questionable font which I deleted.  However CS5 continues to crash when selecting the Design Workspace. So I followed the steps outlined in the Adobe document you linked.  When I got to the point of downloading the FontTest.jsx file and ran it, CS5 crashed right away without writing any log file.  I turned on app.displayDialogs = DialogModes.YES, and CS5 is crashing with a TypeError: undefined is not an object. So I don't know if this is related to my original problem, or not.  Any thoughts on how to proceed to get the FontTest script to run properly?  I took all of the normal defaults when I installed CS5 (e.g., didn't select any alternate paths, don't have any add-ons installed, etc.).

  • Dynamically change the size of a text field.

    Is it possible to change the size of a text field depending on the amount of text in the field?
    Thanks,
    Chad

    You can find the answer from this post.
    jimmypham, ""Shrink to Fit" - Text Field capability?" #1, 18 Jul 2005 10:36 pm

  • Problem with title bar icons to change window size

    i am running v 2.6 on vista 64 bit with a dual core processor. the window opens full screen on my Eizo 24" monitor set at 1900x1200 but there are no choices in the top right of my menu bar to shrink, move the window. i therefore cannot shrink the window or move it to my second monitor. if i right click on the lightoom icon in the taqsk bar, there are no choices to move, size, minimize,etc.  other applications including photoshop work fine with easy control of window size so i do not think it is my system or graphics card. contol-Q does not close the program and the only way i can do so is from the file menu.
    help please.

    Jerome,
    Hit 'F' enough times to get the title bar back.
    Hal

  • How to change window sizes dynamically in smartform

    Hi,
    Dear ABAP Experts,
            I need to show different materials current sales by comparing previous year’s sales (month wise) as a table and their difference in the form of chart( diagram). Can anyone share how to draw chats(rectangular boxes) in smartform.
        Please can any one tell me how to pass dynamic coordinates (left margin, width, upper margin and height) to create window. If I know this one I can solve my problem.
    Thanks in advance,
    Meeravali Shaik.

    hi Raju,
    You can do onething. Create a variable in global defination of charcter lenth 1.
    when you are selecting your address on the basis of address number. suppose we have two address add1 and add2.
    if you get add1 set this variable 'X'.
    otherwise set it 'Y'.
    Now create two text node.
    in one text node put your add1 and in other one put add2. in text node yyou will get tab conditions.
    Put the condition varible = 'X' for add1.
    and 'Y' for add2.
    so it will execute one the basis of that condition and print the one of the addresses u have.
    Hope this will help you out.
    Reward if useful.
    Regards,
    Azad.
    do remember to clear the variable after printing.

  • Changing window size

    Hi there!
    I want to change the number of the buttons displayed and the size of the window depending on the selected difficulty level (which is selected in a JMenu of the JMenuBar; look at the ActionListener at the end), but it does not work. If I set the difficulty manually and recompile it works, but i want this to be possible any time, by clicking on the JMenuItem.
    This is suppossed to be the fundament of a minesweeper clone.
    I hope you can help me. Where/What is the problem?
    Thanks in advance,
    Floesch
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class test extends JFrame {
    JButton[][] buttons;
    final Dimension buttonSize = new Dimension(16, 16);
    JPanel panel = new JPanel();
    public static final int DIFFICULTY_BEGINNER = 0;
    public static final int DIFFICULTY_ADVANCED = 1;
    public static final int DIFFICULTY_EXPERT = 2;
    public static final int DIFFICULTY_ULTRA = 3;
    public static int difficulty = 2;          
         public test(String title){
              super(title);
              JMenuBar menubar = new JMenuBar();
                   JMenu file = new JMenu("File");
                   menubar.add(file);
                        JMenuItem beginner = new JMenuItem("Beginner");
                        beginner.addActionListener(new Menubarlistener());
                        file.add(beginner);
                        JMenuItem advanced = new JMenuItem("Advanced");
                        advanced.addActionListener(new Menubarlistener());
                        file.add(advanced);
                        JMenuItem expert = new JMenuItem("Expert");
                        expert.addActionListener(new Menubarlistener());
                        file.add(expert);
                        JMenuItem ultra = new JMenuItem("Ultra");
                        ultra.addActionListener(new Menubarlistener());
                        file.add(ultra);
              setJMenuBar(menubar);
              switch (difficulty){
                   case DIFFICULTY_BEGINNER:
                        buttons = new JButton[9][9];
                        for (int x = 0; x < 9; x++){
                             for (int y = 0; y < 9; y++){
                                  buttons[x][y] = new JButton("");
                                  buttons[x][y].setPreferredSize(buttonSize);
                                  panel.setLayout(new GridLayout(9, 9, 1, 1));
                                  panel.add(buttons[x][y]);
                        break;
                   case DIFFICULTY_ADVANCED:
                        buttons = new JButton[16][16];
                        for (int x = 0; x < 16; x++){
                             for (int y = 0; y < 16; y++){
                                  buttons[x][y] = new JButton("");
                                  buttons[x][y].setPreferredSize(buttonSize);
                                  panel.setLayout(new GridLayout(16, 16, 1, 1));
                                  panel.add(buttons[x][y]);
                        break;
                   case DIFFICULTY_EXPERT:
                        buttons = new JButton[30][16];
                        for (int x = 0; x < 30; x++){
                             for (int y = 0; y < 16; y++){
                                  buttons[x][y] = new JButton("");
                                  buttons[x][y].setPreferredSize(buttonSize);
                                  panel.setLayout(new GridLayout(16, 30, 1, 1));
                                  panel.add(buttons[x][y]);
                        break;
                   case DIFFICULTY_ULTRA:
                        buttons = new JButton[35][20];
                        for (int x = 0; x < 35; x++){
                             for (int y = 0; y < 20; y++){
                                  buttons[x][y] = new JButton("");
                                  buttons[x][y].setPreferredSize(buttonSize);
                                  panel.setLayout(new GridLayout(20, 35, 1, 1));
                                  panel.add(buttons[x][y]);
                        break;
              getContentPane().add(panel);
         public static void main(String args[]){
              test Test = new test("Test!");
              Test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Test.pack();
              Test.setResizable(false);
              Test.setLocation(200, 150);
              Test.setVisible(true);
         public class Menubarlistener implements ActionListener{
              public void actionPerformed(ActionEvent e){
                   String title = e.getActionCommand();
                   if (title.equals("Beginner")){
                        System.out.println("Beginner");
                        difficulty = DIFFICULTY_BEGINNER;
                   else if (title.equals("Advanced")){
                        System.out.println("Advanced");
                        difficulty = DIFFICULTY_ADVANCED;
                   else if (title.equals("Expert")){
                        System.out.println("Expert");
                        difficulty = DIFFICULTY_EXPERT;
                   else if (title.equals("Ultra")){
                        System.out.println("Ultra");
                        difficulty = DIFFICULTY_ULTRA;
    }

    I rewrote the test-file (first example at the top of the thread). Now there are no static variables, panel is final, and Difficulty is an inner class. But how can I put pack() into setDifficulty() now. I tried several things, but the error is the same as before. here is my code
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class test extends JFrame {
    JButton[][] buttons;
    final Dimension buttonSize = new Dimension(16, 16);
    final JPanel panel = new JPanel();
    final Difficulty DIFFICULTY_BEGINNER = new Difficulty ("Beginner", 9, 9);
    final Difficulty DIFFICULTY_ADVANCED = new Difficulty ("Advanced", 16, 16);
    final Difficulty DIFFICULTY_EXPERT = new Difficulty ("Expert", 30, 16);
    final Difficulty DIFFICULTY_ULTRA = new Difficulty ("Ultra", 35, 20);
    Difficulty difficulty;     
    public void setDifficulty(Difficulty difficulty){
         if (this.difficulty != difficulty){
              panel.removeAll();
              buttons = new JButton[difficulty.width][difficulty.height];
              for (int x = 0; x < difficulty.width; x++){
                   for (int y = 0; y < difficulty.height; y++){
                        buttons[x][y] = new JButton("");
                        buttons[x][y].setPreferredSize(buttonSize);
                        panel.add(buttons[x][y]);
         panel.setLayout(new GridLayout(difficulty.height, difficulty.width));
         public test(String title){
              super(title);
              setDifficulty(DIFFICULTY_EXPERT);
              JMenuBar menubar = new JMenuBar();
                   JMenu file = new JMenu("File");
                   menubar.add(file);
                        JMenuItem beginner = new JMenuItem(DIFFICULTY_BEGINNER);
                        file.add(beginner);
                        JMenuItem advanced = new JMenuItem(DIFFICULTY_ADVANCED);
                        file.add(advanced);
                        JMenuItem expert = new JMenuItem(DIFFICULTY_EXPERT);
                        file.add(expert);
                        JMenuItem ultra = new JMenuItem(DIFFICULTY_ULTRA);
                        file.add(ultra);
              setJMenuBar(menubar);
              getContentPane().add(panel);
         public static void main(String args[]){
              test Test = new test("Test!");
              Test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Test.setResizable(false);
              Test.pack();
              Test.setLocation(200, 150);
              Test.setVisible(true);
         public class Difficulty extends AbstractAction{
         final int width;
         final int height;
              public Difficulty(String label, int width, int height){
              super(label);
              this.width = width;
              this.height = height;
              public void actionPerformed(ActionEvent e){
                   setDifficulty(this);
    }

  • Change window size when clicking link?

    I recently converted a WinHelp project in RH5 that used
    secondary windows and I'm trying to stick with one window in
    HTMLHelp (and still learning a bit).
    In some parts of our app, pressing F1 opens a small window
    (not a popup) with a short description of a feature. There's a link
    at the bottom of the topic that will open a longer overview
    description. When clicking the link, I'd like to use the same
    window, but resize (make it wider) it to accomodate the bigger
    topic. In other words, I want the window to be narrow initially (so
    I don't cover the app) but change size when the link is clicked, so
    I can show the longer text without scrolling multiple pages.
    Do you folks do anything like this?
    Thanks in advance for any help,
    - Tom

    Tom -
    You could always use the ResizeTo function in your larger
    topic, something like this:
    <body onLoad="window.resizeTo(400, 500);">
    Or, something like that....

Maybe you are looking for