Setting the Line size at runtime

Hi All,
    I am printing a classical report. Usually we set the
Page width statically ie by using Line-Size.
    But I need a way to change this value at runtime.
Is there a way out to this problem?
Thanks & Regards,
Abhijeet.

Hi Abhijeet,     
You cannot change the width of individual pages within a list level. You can only change the width of all pages of a new list level. To do so, use the NEW-PAGE statement:
Syntax
NEW-PAGE LINE-SIZE <width>.
All list levels starting from the new page have a width of <width> instead of the one specified in the REPORT statement. If you set <width> to 0, the system uses the width of the standard list .
If you set <width> to SY-SCOLS, you can adapt the width of the new list level to the window width, even if the window is smaller than the standard window. The SY-SCOLS system field contains the number of characters of a line of the current window.
Within a list level, that is, if the next page is not the beginning of a new list level, the system ignores the LINE-SIZE option.
Regards,
vidya.

Similar Messages

  • How do I set the frame size

    I am Making a program for purchasing games, with the basic layout alsot done, except on problem. When the purchase button is pressed, a dialog shows up but nothing is seen until i resize it. How would i set the frame size so that i do not need to resize it each time? below is the code for the files. Many thanks in advance.
    CreditDialog
    import java.awt.*;
    import java.awt.event.*;
    class CreditDialog extends Dialog implements ActionListener { // Begin Class
         private Label creditLabel = new Label("Message space here",Label.RIGHT);
         private String creditMessage;
         private TextField remove = new TextField(20);
         private Button okButton = new Button("OK");
         public CreditDialog(Frame frameIn, String message) { // Begin Public
              super(frameIn); // call the constructor of dialog
              creditLabel.setText(message);
              add("North",creditLabel);
              add("Center",remove);
              add("South",okButton);
              okButton.addActionListener(this);
              setLocation(150,150); // set the location of the dialog box
              setVisible(true); // make the dialog box visible
         } // End Public
         public void actionPerformed(ActionEvent e) { // Begin actionPerformed
    //          dispose(); // close dialog box
         } // End actionPerformed
    } // End Class
    MobileGame
    import java.awt.*;
    import java.awt.event.*;
    class MobileGame extends Panel implements ActionListener { // Begin Class
         The Buttons, Labels, TextFields, TextArea 
         and Panels will be created first.         
         private int noOfGames;
    //     private GameList list;
         private Panel topPanel = new Panel();
         private Panel middlePanel = new Panel();
         private Panel bottomPanel = new Panel();
         private Label saleLabel = new Label ("Java Games For Sale",Label.RIGHT);
         private TextArea saleArea = new TextArea(7, 25);
         private Button addButton = new Button("Add to Basket");
         private TextField add = new TextField(3);
         private Label currentLabel = new Label ("Java Games For Sale",Label.RIGHT);
         private TextArea currentArea = new TextArea(3, 25);
         private Button removeButton = new Button("Remove from Basket");
         private TextField remove = new TextField(3);
         private Button purchaseButton = new Button("Purchase");
         private ObjectList gameList = new ObjectList(20);
         Frame parentFrame; //needed to associate with dialog
         All the above will be added to the interface 
         so that they are visible to the user.        
         public MobileGame (Frame frameIn) { // Begin Constructor
              parentFrame = frameIn;
              topPanel.add(saleLabel);
              topPanel.add(saleArea);
              topPanel.add(addButton);
              topPanel.add(add);
              middlePanel.add(currentLabel);
              middlePanel.add(currentArea);
              bottomPanel.add(removeButton);
              bottomPanel.add(remove);
              bottomPanel.add(purchaseButton);
              this.add("North", topPanel);
              this.add("Center", middlePanel);
              this.add("South", bottomPanel);
              addButton.addActionListener(this);
              removeButton.addActionListener(this);
              purchaseButton.addActionListener(this);
              The following line of code below is 
              needed inorder for the games to be  
              loaded into the SaleArea            
         } // End Constructor
         All the operations which will be performed are  
         going to be written below. This includes the    
         Add, Remove and Purchase.                       
         public void actionPerformed (ActionEvent e) { // Begin actionPerformed
         If the Add to Basket Button is pressed, a       
         suitable message will appear to say if the game 
         was successfully added or not. If not, an       
         ErrorDialog box will appear stateing the error. 
              if(e.getSource() == addButton) { // Begin Add to Basket
    //          GameFileHandler.readRecords(list);
                   try { // Begin Try
                        String gameEntered = add.getText();
                        if (gameEntered.length() == 0 ) {
                             new ErrorDialog (parentFrame,"Feild Blank");
                        } else if (Integer.parseInt(gameEntered)< 0
                                  || Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
                             new ErrorDialog (parentFrame,"Invalid Game Number");
                        } else { // Begin Else If
                             //ADD GAME
                        } // End Else
                   } catch (NumberFormatException num) { // Begin Catch
                        new ErrorDialog(parentFrame,"Please enter an Integer only");
                   } // End Catch
              } // End Add to Basket
         If the Remove From Basket Button is pressed, a  
         a suitable message will appear to say if the    
         removal was successful or not. If not, an       
         ErrorDialog box will appear stateing the error. 
         if(e.getSource() == removeButton) { // Begin Remove from Basket
              try { // Begin Try
                        String gameEntered = remove.getText();
                        if (gameEntered.length() == 0 ) {
                             new ErrorDialog (parentFrame,"Feild Blank");
                        } else if (Integer.parseInt(gameEntered)< 1
                                  || Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
                             new ErrorDialog (parentFrame,"Invalid Game Number");
                        } else { // Begin Else If
                             //ADD GAME CODE
                        } // End Else
                   } catch (NumberFormatException num) { // Begin Catch
                        new ErrorDialog(parentFrame,"Please enter an Integer only");
                   } // End Catch
              } // End Remove from Basket
         If the purchase button is pressed, the          
         following is executed. NOTE: nothing is done    
         when the ok button is pressed, the window       
         just closes.                                    
              if(e.getSource() == purchaseButton) { // Begin Purchase
                   String gameEntered = currentArea.getText();
                   if (gameEntered.length() == 0 ) {
                        new ErrorDialog (parentFrame,"Nothing to Purchase");
                   } else { // Begin Else If
                        new CreditDialog(parentFrame,"Cost � 00.00. Please enter Credit Card Number");
                   } // End Else               
              } // End Purchase
         } // End actionPerformed
    } // End Class
    RunMobileGame
    import java.awt.*;
    public class RunMobileGame { // Begin Class
         public static void main (String[] args) { // Begin Main
              EasyFrame frame = new EasyFrame();
              frame.setTitle("Game Purchase for 3G Mobile Phone");
              MobileGame purchase = new MobileGame(frame); //need frame for dialog
              frame.setSize(500,300); // sets frame size
              frame.setBackground(Color.lightGray); // sets frame colour
              frame.add(purchase); // adds frame
              frame.setVisible(true); // makes the frame visible
         } // End Main
    } // End Class
    EasyFrame
    import java.awt.*;
    import java.awt.event.*;
    public class EasyFrame extends Frame implements WindowListener {
    public EasyFrame()
    addWindowListener(this);
    public EasyFrame(String msg)
    super(msg);
    addWindowListener(this);
    public void windowClosing(WindowEvent e)
    dispose();
    public void windowDeactivated(WindowEvent e)
    public void windowActivated(WindowEvent e)
    public void windowDeiconified(WindowEvent e)
    public void windowIconified(WindowEvent e)
    public void windowClosed(WindowEvent e)
    System.exit(0);
    public void windowOpened(WindowEvent e)
    } // end EasyFrame class
    ObjectList
    class ObjectList
    private Object[] object ;
    private int total ;
    public ObjectList(int sizeIn)
    object = new Object[sizeIn];
    total = 0;
    public boolean add(Object objectIn)
    if(!isFull())
    object[total] = objectIn;
    total++;
    return true;
    else
    return false;
    public boolean isEmpty()
    if(total==0)
    return true;
    else
    return false;
    public boolean isFull()
    if(total==object.length)
    return true;
    else
    return false;
    public Object getObject(int i)
    return object[i-1];
    public int getTotal()
    return total;
    public boolean remove(int numberIn)
    // check that a valid index has been supplied
    if(numberIn >= 1 && numberIn <= total)
    {   // overwrite object by shifting following objects along
    for(int i = numberIn-1; i <= total-2; i++)
    object[i] = object[i+1];
    total--; // Decrement total number of objects
    return true;
    else // remove was unsuccessful
    return false;
    ErrorDialog
    import java.awt.*;
    import java.awt.event.*;
    class ErrorDialog extends Dialog implements ActionListener {
    private Label errorLabel = new Label("Message space here",Label.CENTER);
    private String errorMessage;
    private Button okButton = new Button("OK");
    public ErrorDialog(Frame frameIn, String message) {
    /* call the constructor of Dialog with the associated
    frame as a parameter */
    super(frameIn);
    // add the components to the Dialog
              errorLabel.setText(message);
              add("North",errorLabel);
    add("South",okButton);
    // add the ActionListener
    okButton.addActionListener(this);
    /* set the location of the dialogue window, relative to the top
    left-hand corner of the frame */
    setLocation(100,100);
    // use the pack method to automatically size the dialogue window
    pack();
    // make the dialogue visible
    setVisible(true);
    /* the actionPerformed method determines what happens
    when the okButton is pressed */
    public void actionPerformed(ActionEvent e) {
    dispose(); // no other possible action!
    } // end class
    I Know there are alot of files. Any help will be much appreciated. Once again, Many thanks in advance

    setSize (600, 200);orpack ();Kind regards,
      Levi
    PS:
        int i;
    parses to
    int i;
    , but
    [code]    int i;[code[i]]
    parses to
        int i;

  • How to set the heap size of JVM

    please let me know that how to set the heap size of JVM

    C:\>java -X
        -Xmixed           mixed mode execution (default)
        -Xint             interpreted mode execution only
        -Xbootclasspath:<directories and zip/jar files separated by ;>
                          set search path for bootstrap classes and resources
        -Xbootclasspath/a:<directories and zip/jar files separated by ;>
                          append to end of bootstrap class path
        -Xbootclasspath/p:<directories and zip/jar files separated by ;>
                          prepend in front of bootstrap class path
        -Xnoclassgc       disable class garbage collection
        -Xincgc           enable incremental garbage collection
        -Xbatch           disable background compilation
        -Xms<size>        set initial Java heap size
        -Xmx<size>        set maximum Java heap size
        -Xss<size>        set java thread stack size
        -Xprof            output cpu profiling data
        -Xrunhprof[:help]|[:<option>=<value>, ...]
                          perform JVMPI heap, cpu, or monitor profiling
        -Xdebug           enable remote debugging
        -Xfuture          enable strictest checks, anticipating future default
        -Xrs              reduce use of OS signals by Java/VM (see documentation)look at the -Xm? lines
        -Xms<size>        set initial Java heap size
        -Xmx<size>        set maximum Java heap sizeThis can be used e.g. like this:java -Xms8M -Xmx32M MyProgwhich runs MyProg in a java VM with the initial heap size of 8 MB and a maximum heap size of 32 MB.
    - Marcus

  • How can I set the minimum size the location bar should automatically resize to

    I have moved all of my navigation buttons, location bar and tabs to be in line. This has been done to maximise the available space on screen.
    This works perfectly with two or three tabs open, but once more tabs are opened the location bar automatically shrinks to allow for more tabs and becomes unusable. I want to set the minimum size the location bar should shrink to but I do not know how to do this.
    [http://www.mediafire.com/imgbnc.php/eed5749531b3081c43186f59492500e5f089c498c0372fb6fa797b7d697826806g.jpg Screen shot displaying automatically resizing location bar]
    Any help would be appreciated.
    Thanks.

    FBZP seems to be the only way to do the minimum amout setting in standard SAP.
    You can check the BTE (Business transaction event) 00001820 for excluding the low amount items in F110. Please search SDn on how to use the BTEs.
    Regards,
    SDNer

  • Increase the line size in ABAP Editor

    Hai experts,
    I write  ABAP code  one  line upto 73 charcters only in ABAP editor, how to increase the line size in ABAP editor.
    please its urgent.
    thanks and regards
    sitaram

    Hi,
    Go to se38.
    then in menu -> Utilities->setting.
    In that Go to ABAP Editor Tab ->>>>Editor tab.
    then uncheck the Downwards-Comp Lne Length.
    regards,
    Santosh Thorat

  • Setting the selectOneChoice value at runtime

    Hi,
    I need to set the selectOneChoice value at runtime. On Page Load I am creating object of RichSelectOneChoice and currencyCode.setValue("USD");
    When I check on runtime it is not showing "USD" as selected item in dropdown where as in background it is sending USD to downstream application.
    How to get the show the value in SelectOneChoice which is selected at runtime in code?
    Thanks in advance.

    Hi,
    Selected value will be taken from the value property of selectOneChoice component, I guess you don't have specified value property. Create a String instance variable in bean and then set the value 'USD' to this variable and then bind it to value property of selectOneChoice component.
    Sample:
    //inside bean
    private String selectedValue;
    //Getter and Setter methods
    //Replace the currencyCode.setValue("USD"); line with the below code
    this.selectedValue = "USD"
    //Finally in jspx page bind this selectedValue to value property of bean
    <af:selectOneChoice value="#{bean.selectedValue}" ... />Sireesha

  • How to set the heap size in adminstrative console

    Hi All,
    Please let me know how to increase heap size in weblogic Adminstrative console.
    Regards
    Madhu

    The answer to this depends on whether you're trying to set the heap size for a manager server which is managed by NodeManager, or the admin server.
    First click on "Lock and Edit".
    If the former, go into "Environment"->"Servers", then click on the server you want to configure. This should start you on the "Configuration"->"General" tab. Now click on the "Server Start" tab. Find the "Arguments" field. Assuming this is blank, put something like the following in the field value:
    -Xmx1536m
    Then click "Save", then "Activate Changes". When you restart the managed server the next time, it should use those new settings.
    If, however, you're trying to set this on the admin server, you can't do this in the admin console at all. In that case, go into $DOMAIN_HOME/bin and edit the "setDomainEnv.{sh,cmd}" script (".sh" if on Unix/Linux, ".cmd" on Windows). Find the line that sets the "MEM_ARGS" variable, like the following on Windows:
    set MEM_ARGS=-Xms256m -Xmx512m
    Change this line to whatever you want, then restart the admin server.

  • Need help setting the exact size of my JSlider

    Hello everyone. I'm trying to build a small program to help people learn a about RGB colour values, and at the same time teach myself a bit more about Java. Things have been going fine so far until I came to setting my JSlider's size. The intention is to have three JSliders with a JPanel next to each. The I need the track of the slider to be exactly 256 pixels tall (one pixel per gradient value painted into the adjacent JPanel) plus whatever extra padding and spacing the Look And Feel dictates.
    I've got the height set to 256 pixels in the following code, but it makes the JSlider as a whole 256 pixels tall and so squishes the track. I've set the minor tick spacing to 2 so that if the track was actually 256 pixels tall, the ticks would alternate over each screen pixel. If you compile and run the code, you will notice that a few ticks appear next to each other without a one-pixel gap between them. I've also verified it by taking a screen capture, pasting it into the GIMP and then using the measure tool to check the size.
    I've tried searching through the API documentation to find ways of doing it, or to see if some ideas I've had so far were possible, but so far, I've not found anything particulairly satisfactory. I even tried to see if I could set the JSlider size to current JSlider size minus the track size, plus 256, but I couldn't find a way of getting the current size of the track.
    Can anyone help me out here? I'm rather stuck.

    Here's the code with all but the JSliders stripped out. Sorry about having to put it in a seperate post; the forum wouldn't allow it.
    Here's the code I have so far:
    package com.stephenphilbin.colourcoder;
    import java.awt.Color;
    import java.awt.Dimension;
    import javax.swing.GroupLayout;
    import javax.swing.GroupLayout.Alignment;
    import javax.swing.GroupLayout.ParallelGroup;
    import javax.swing.GroupLayout.SequentialGroup;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSlider;
    import javax.swing.UIManager;
    import javax.swing.border.LineBorder;
    import javax.swing.border.TitledBorder;
    public class Colourcoder extends JFrame {
        private void initComponents() {
            String colourcoderTitle = "Colourcoder";
            String lightsPanelBorderText = "Lights";
            // Create the lights panel, set the borders and set up layout references
            JPanel lightsPanel = new JPanel();
            TitledBorder lightsPanelBorder = new TitledBorder(LineBorder.createGrayLineBorder(), lightsPanelBorderText);
            lightsPanel.setBorder(lightsPanelBorder);
            GroupLayout lightsPanelLayout = new GroupLayout(lightsPanel);
            lightsPanel.setLayout(lightsPanelLayout);
            // Initialize each light slider
            JSlider[] lightSliders = new JSlider[3];
            for (int i = 0; i < lightSliders.length; i++) {
                lightSliders[i] = new JSlider(JSlider.VERTICAL, 0, 255, 0);
                lightSliders.setPaintTrack(false);
    lightSliders[i].setMajorTickSpacing(16);
    lightSliders[i].setMinorTickSpacing(2);
    lightSliders[i].setPaintTicks(true);
    lightSliders[i].setSnapToTicks(true);
    // Loop through the light sliders and add them to the lights panel
    SequentialGroup horizontalLightGroup = lightsPanelLayout.createSequentialGroup();
    for (int i = 0; i < lightSliders.length; i++) {
    horizontalLightGroup.addGroup(lightsPanelLayout.createParallelGroup().addComponent(lightSliders[i]));
    SequentialGroup verticalLightGroup = lightsPanelLayout.createSequentialGroup();
    ParallelGroup parallelLightsGroup = lightsPanelLayout.createParallelGroup();
    verticalLightGroup.addGroup(parallelLightsGroup);
    for(int i = 0; i < lightSliders.length; i++) {
    parallelLightsGroup.addComponent(lightSliders[i], 256, 256, 256);
    lightsPanelLayout.setHorizontalGroup(horizontalLightGroup);
    lightsPanelLayout.setVerticalGroup(verticalLightGroup);
    // Final window/frame configuration
    setTitle(colourcoderTitle);
    setResizable(false);
    setLocationRelativeTo(null);
    GroupLayout frameLayout = new GroupLayout(getContentPane());
    getContentPane().setLayout(frameLayout);
    frameLayout.setAutoCreateContainerGaps(true);
    frameLayout.setHorizontalGroup(
    frameLayout.createParallelGroup(Alignment.LEADING)
    .addGroup(
    frameLayout.createSequentialGroup()
    .addComponent(lightsPanel))
    frameLayout.setVerticalGroup(
    frameLayout.createParallelGroup(Alignment.LEADING)
    .addGroup(
    frameLayout.createSequentialGroup()
    .addComponent(lightsPanel))
    pack();
    public Colourcoder() {
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    UIManager.put("swing.boldMetal", Boolean.FALSE);
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception ex) {
    System.exit(1);
    initComponents();
    * @param args the command line arguments
    public static void main(String[] args) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new Colourcoder().setVisible(true);
    Edited by: S_Philbin on Sep 29, 2008 11:18 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • JTextField - Setting the column size doesn't work. Help, please.

    Hi,
    I want to set the column size of a text field from another text field by the input from the user. However, it just doesn't work. The following is my code. Just check out the last anonymous inner class action listener. Somehow i can get the user text, but it just doesn't work.
    Thanks for any helpful inputs.
    * Introduction to Java Programming: Comprehensive, 6th Ed.
    * Excercise 15.11 - Demonstrating JTextField properties, dynamically.
    * @Kaka Kaka
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    import javax.swing.border.LineBorder;
    import javax.swing.border.TitledBorder;
    public class Ex15_11 extends JFrame{
        // Create two text fields and three radio buttons
        private JTextField jtfUserText = new JTextField(10);
        private JTextField jtfColumnSize = new JTextField(new Integer(10));
        private JRadioButton jrbLeft = new JRadioButton("Left");
        private JRadioButton jrbCenter = new JRadioButton("Center");
        private JRadioButton jrbRight = new JRadioButton("Right");
        public static void main(String[] args){
            Ex15_11 frame = new Ex15_11();
            frame.pack();
            frame.setTitle("Excercise 15.11 - Text Field Property");
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        // Start of Constructor
        public Ex15_11(){
            // Set the the frame layout
            setLayout(new BorderLayout(5, 5));
            // Create three panels and two labels
            JPanel jpText = new JPanel();
            JPanel jpHorizontalAlignment = new JPanel();
            JPanel jpColumn = new JPanel();
            JLabel jlblTextField = new JLabel("Text Field");
            JLabel jlblColumn = new JLabel("Column Size");
            // Create a button group for the radio buttons to be grouped
            ButtonGroup group = new ButtonGroup();
            // Group the radio buttons
            group.add(jrbLeft);
            group.add(jrbCenter);
            group.add(jrbRight);
            // set a titled border for a panel
            jpHorizontalAlignment.setBorder(new TitledBorder("Horizontal Alignment"));
            // Create a line border
            Border lineBorder = new LineBorder(Color.BLACK, 1);
            // the all the components to their corresponding panels
            jpText.add(jlblTextField);
            jpText.add(jtfUserText);
            jpHorizontalAlignment.add(jrbLeft);
            jpHorizontalAlignment.add(jrbCenter);
            jpHorizontalAlignment.add(jrbRight);
            jpColumn.setBorder(lineBorder);
            jpColumn.add(jlblColumn);
            jpColumn.add(jtfColumnSize);
            // add the panels to the frame
            add(jpText, BorderLayout.NORTH);
            add(jpHorizontalAlignment, BorderLayout.WEST);
            add(jpColumn, BorderLayout.EAST);
            jrbLeft.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.LEFT);
            jrbCenter.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.CENTER);
            jrbRight.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.RIGHT);
            // Register the listener for the coloum size
            jtfColumnSize.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    System.out.println(Integer.parseInt(jtfColumnSize.getText()));
                    jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
    }Edited by: ChangBroot on Dec 16, 2008 6:13 PM

    don't forget to revalidate the JPanel after changing the components it holds:
        jtfColumnSize.addActionListener(new ActionListener()
          // Handle event
          public void actionPerformed(ActionEvent e)
            System.out.println(Integer.parseInt(jtfColumnSize.getText()));
            jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
            jpText.revalidate();
        });This will tell the jpText JPanel's layout manager to relayout the components that this JPanel holds. It should resize your JTextField. Note that in order to call this from within the anonymous inner ActionListener jpText will need to be declared "final". Either that or declared as a class field.

  • How do I set the Page size default in Adobe Reader using Window 8?

    I need to set the page size everytime I go to print from my Adobe Reader in my windows 8. Is there a way to set the page I want letter (8.5 by 11) as a default? So I do not have to do this everytime I print something?

    I can't help but wonder why Adobe doesn't respond to this - at this point there are 464 views of this item and still no answer. I have the same problem and it's a big irritation to have to set the duplex mode everytime I want to print!

  • How can I set the font size of a form field in the fdf file?

    I need to dynamically set the font size of a field to accommodate text of varying length, automatic font size won't work in this case. It seems like this can be done in the FDF but I have tried several variants without success. Could someone help out with a real example of what the syntax in the fdf should look like.
    I am using Acrobat Professional 8.1 but the created fdf will need to work with Reader also.

    I think that the font size has to be set in the form itself, not the FDF.

  • How do I set the default size of a new folder?

    I have finder sized the way I want for existing folders and if I do Finder > New Finder Window. These preferrences, however, do not seem to apply to new folders. Everytime I create a new folder on my desktop, and open that folder for the first time, the window size is really small and the sidebar is narrow. This is incredibally annoying. How do I set the default size for all new folders? Is there a plist file I can edit to fix this? Or an AppleScript I can run automatically in the background that fixes this? I am running Mavericks 10.9.1.

    If you use the Finder's New Finder Window command (command N) to create a new window, resize it, place it where you want, and set it for icon view or however you want it. Then close it. Closing it is what sets these as the default. That should become the default for every new Finder window you create using the new window command. But if you have lots of windows open at once and then close them, the last window you close will set a new default.
    There are lots of utilities that control Windows - their size and placement. I use one called Moom but there are many more.

  • HT5639 I am attempting to install windows 7 ultimate on a mid2012 production macbook pro using Bootcamp 5 in Mountain Lion. Whenever I set the partition size and tell it to continue, the program quits unexpectedly. I have done this about 5 times now. Sugg

    The lead-in above pretty much states the problem. I am attempting to install Windows 7 from a disk, but that is not the issue. Boot Camp 5 just quits and reopens. I then repeat. Help.

    I am about to run specialized GIS software that may or may not need the full machine resources. I am an attorney who uses QuickBooks for my accounting. The Mac version does not do as much as the Windows version. This is from both Apple and Quick Books professionals. I am using Parallels Desktop version 8 at this time. It does not support QuickBooks Windows version per Parallels. Any other questions? I am a highly competent PC user who is new to Macs. I am entitled to my own configuration choices. That said, I know when I need help which is now.
    As to the free space issue I have 665.18 GB free space out of 749.3 GB on the drive. I am not trying to run the 32 bit version. I know that it requires the 64 bit version. Besides, it does not get that far in the process. As I said Boot Camp asssitant terminates unexpectedly as soon as you hit the continue button after setting the partition size. Therefore I conclude that it does not have a chance to see which version of Windows that I am using. I am using Windows 7 Ultimate 64 bit version in the virtual engine (to use Parallels speak), but again Boot Camp would not see that since it is not running. It can't run at the momenet because Apple just installed a new hard drive and I have just restored the data from TIme Machine and Parallels needs reactivated, which I have not done yet deliberatley. With all of this addtiional information do you have any further suggestions? Thanks for your time and interest my issue.

  • Hi, I am using Indesign CS6, How to set the page size in Inches.

    Hi, I am using Indesign CS6, How to set the page size in Inches.

    All fields in InDesign can be entered in any measurement system. So, if you want to make an 8"x10" document and go to File>New Document and the window looks like this:
    …you can type either 8 in or 8" into the Width field like this:
    …and when you move to the next field, it will convert the eight inches into the equivalent number in the unit of measure that it is using at the moment, like this:
    … (203.2 milimeters is the same as 8 inches). You can also enter a different measurement unit into other fields once the file is created, such as the width or height of a frame, or the position of an object in the X and Y coordinates.
    If you would rather just work in inches instead of having to type the inches mark or abbreviation, go to InDesign>Preferences>General and select the Units & Increments tab. There you will see Ruler Units for Horizontal and Vertical at the top of the window. Set them to Inches and all of the fields will display in inches. If you do that to an open document, you will change the unit of measure for that document. If you do it while no documents are open, it will change the unit of measure for any new documents you create. To change the unit of measure for existing documents, you will have to open each and make the change.

  • How to set the page size and the margins programatically

    Hello,
      I am working with crystal report XI Release2 and asp.net.
    One of my report is having 4 graphs in a single report.In order to display all the graphs in one page i have set  the paper size as A3.(Via Crysta report ->File->Page set up)
    But the page size A3 is not provided by all printers.So problem comes when the application is diployed on a machine which does not support A3 Printer.All the graphs will not be shown on a single page.
    Also Each and Every time ,when the application is diployed on a machine,user has to open the crystal report and adjust the page size accordingly to get all the reports on a single page.
    This is a kind of usability issue also.
    Is it possible to set the page size and the margins programatically say for eg 11 X 17.so that with out doing anything all the 4 graphs will get displayed on a single page ?
    Please let me know if you require more information regarding this issue.
    Thanks in advance.
    smitha.

    Hi Ludek,
    i could solve the issue by using the follwing code.
    report = new ReportDocument();
    PageMargins customPageMargin = report.PrintOptions.PageMargins;
    report.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
    report.PrintOptions.PaperSize = PaperSize.Paper10x14;
    customPageMargin.rightMargin = 1;
    customPageMargin.topMargin = 0;
    customPageMargin.bottomMargin = 0;
    report.PrintOptions.ApplyPageMargins(customPageMargin);
    Thanks for you help.
    Regards,
    smitha.

Maybe you are looking for