Dynamically set the size of the VIEW

Hello,
I am looking to set the size of my VIEW which is called in following way:
IF iv_show_in_pop_up EQ abap_true.
    wd_this->raise_simulation_pop_up( ).
I want to set of the size of the VIEW if it a pop-up.
ENDIF.
How can i get access to the view and set the size. Please Help.
Regards,
Piyush

Hi Piyush,
Check what Anzy has to say in [here|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=3289078]:
"You have to go to specific view , which will be embedded in the pop up window.In the view go to ROOTUIELEMENTCONTAINER and set the width and height.This way you can restrict the size of the pop up window."
This is [another approach|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=5836334] suggested by Abhimanyu Lagishetty for dynamically setting the size of your window:
"Pass the URL like this to the create_external_window
javascript:window.moveTo(0,0);window.resizeTo(screen.width,screen.height);window.location.href="http://google.co.in";
Instead of http://google.co.in write your URL it will maximize the window"
Regards,
Uday

Similar Messages

  • How in Discoverer 4i viewer (Web) to set the size of the Chart(Graph)?

    Hello all,
    How in Discoverer 4i viewer (Web) to set the size of the Chart(Graph) by default?
    Thanks very much for any help.
    Dmitriy Zhabrovets

    Hi,
    I had a look and don't ask me why but it seems that you can't add extra rectangles in a sub table. But weirdly, it seems possible to add tables.
    I mean you can't add a rectangle using
    app.activeDocument.textframes.tables.tables.cell.insertionpoint.rectangles.add
    //remove any reference, that's conceptual at this time.
    The idea I had at the first place but put aside cause to its heaviness is to cheat.
    Instead of adding the rectangle, we are going to copy & paste it.
    So let's keep all the things you need (rectheight & rectwidth).
    But this time, let's use
    var oRect = app.activeDocument.rectangles.add({geometricBounds:[0,0,rectheight,rectwidth]});
    //You may need to use app.activeDocument.pages[x]... if you have a multi pages doc.
    app.select(oRect);
    app.cut()
    app.select(oInsertionPoints.item(-1));
    app.paste();
    heavy but it works.
    Loic

  • I need to change the size of the view for easier reading.  Is there a way to make the page view larger without affecting the form?

    Hi Guys, good product beginning however it's not as good as many of the other Adobe product's workspaces.  I cannot change the size of the view during form design work, so it's a visual strain to work in Forms Central.  Is there a way to modify the view (not affecting the width, size or font when presented on website or on paper)?

    In Photoshop CC 2014 (Windows only) it is possible to use a setting of 200% to scale the UI. On some monitors it improves readability and on others it cuts part of the application screen. To give it a try go to:
    Edit >> Preferences >> Experimental Features
    Put a check-mark in the box and click OK
    Then close PS and re-start for the change to take effect.

  • 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

  • Don't know how to reduce the size of the view on screen.

    HELP! My kids have been mucking around and now my entire screen view is magnified and I can't seem to find how they did it nor how to go back to the default view. Regardless of what application I open, the window contents is twice the size of the default settings. I have searched topics in help but no success. Can anyone help?

    Open the Displays pane of System Preferences and set the resolution corrctly, and turn off Zoom from the Universal Access and Keyboard & Mouse panes.
    (44309)

  • How can I set the size of the font so I don't have to change every new word?

    How can I set the size of the font so I don't have to change every new word?

    In what application?

  • How to set the size of the frame in the decoration controls

    Hi,
    I am drawing some frames or boxes using the patterns in the "Decorations" control in labview.
    Is there other way to set the size of the frames or boxes rather than to drag them? also how can I change the color of the borders?
    Thanks,
    Joyce
    Solved!
    Go to Solution.

    Select the item.  Go to the Resize Objects button on the toolbar.  Pick the last one which shows a resize within a dialog bubble.  Now a dialog pops up which lets you define the height and width.
    To color something, Shift right click to bring up the toolbox.  Pick the paint brush.  Click on the thing you want to change such as the border.  It might now be the wrong color, so right click which brings up the color picker.  Now select the color you actually want.  If you want something to be transparent, pick the T at the upper right corner of the color dialog box.

  • How to set the size of a JTabbedane to the size of the frame

    I have a tabbed pane in a frame, I would like to know how to set the size of the tabbed pane, so that it occupies the whole of the frame which has been set to screen size.
    Thanks

    Is it not possible to use it with a GridBagLayout?Your question was "How do I get a tabbed pane to take all the space of the frame"?
    You where given the answer. Did you try it? Did it work? Then why are you questioning the suggestion?
    Its one line of code if you use a BorderLayout which by the way was specifically designed for this purpose.
    Yes you can do it with a GridBagLayout with about 5 lines of code.
    So the question is why would you want to write 5 lines of code when you can use one?
    If your question was "How do I waste my time forcing the GridBagLayout to size a component to take up all the space of the frame", then you would have received a different answer. (Although most people would have told you to use a BorderLayout anyway, since its easier).

  • FREE SPACE : To find the size of the report on INFO VIEW.

    Hello,
    We have recently started using BO XI R2.Could anybody please let us know how to find the size of reports from INFO VIEW ?
    Please find a brief of the situation we are currently encountering
    We use the web portal " INFOVIEW PROD " to access all the reports in BO. However, the all these reports are stored on the E drive of a production machine . Now the  E drive has reached 80% of its capacity and we need to free some space . We cannot delete files directly from E drive of the machine as it stores reports merely on the basis of numbers .The other option is to delete the unused reports from web portal. However , we are talking about 1000's of reports.Also , from the INFO VIEW we are not able to determine the size of the report to delete based on size and unusability.
    We would like some input on how to tackle this issue.
    Regards,
    BO USER R2

    Hello,
    Well that's really surprising to see that you have recently started using XIR2 since this is already an end of life product from SAP Business Objects.
    Well nevertheless there is an option to check these details.
    There is tool known as "Query Builder" in BOE
    The direct URL to start this is: - http://<servername>:<port>/AdminTools/querybuilder/ie.jsp
    and provide below query: -
    select SI_ID, SI_NAME,SI_FILES,SI_SIZE from CI_INFOOBJECTS where SI_KIND='Webi' Order BY SI_SIZE DESC
    SI_ID: - ID of the infoobject.
    SI_NAME: - name of the object
    Under SI_FILES you will get SI_PATH which will tell you the location from IFRS
    SI_SIZE: will tell you the size.
    But I would like to highlight one thing you need to check the instances of the document as well.
    Don't just start deleting everything, it can create more problems with the system.
    Take the backup of IFRS, OFRS and CMS DB as well.
    My reply is just to tell how you can find the webi document according to size and IFRS path
    Thanks,
    Vivek
    Edited by: Vivek Chauhan on Sep 12, 2011 1:50 PM

  • 11gR2 OLAP - How to define or set the  size of the OLAP PAGE?

    Hi,all!
    Could you help me? How to define or set the size of the OLAP PAGE in 11gR2?
    Edited by: [email protected] on 25.01.2010 8:36
    Edited by: [email protected] on 25.01.2010 8:36

    Hi there,
    The size of an OLAP AW page is automatically derived from the block size of the tablespace in which it is stored (which in turn is typically derived from the db_block_size initialisation parameter)
    Do you have a particular concern about this setting?
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • To adjus the size of the box in the RMMAINgrapdhical view.

    Hi,
    Can anybody know how to adjust the size of the box in the RMMAIN graphical view.  I need to adjust the size of the boxes for evert actity so that all the phases can be seen at a shot.
    Regards,
    Srilu.

    Hello,
    Let supose that:
    create table size_test (
      a number,
      b varchar2(20)
    )If you need the amount of data (in bytes) stored in the table:
    >
    select sum(vsize(a) + vsize(b)) data_size
    from size_test;If you need to know how many bytes are actually stored on disk, you can make use of user_segments
    >
    select bytes
    from user_segments
    where segment_name = 'SIZE_TEST';Regards,

  • When does a JTabbedPane set the size of the component inside a tab?

    I would like to know how big a component inside a tab is directly after I've added it to a tab in a JTabbedPane.
    I thought once I've "added" a component via the JTabbedPane.add(String, Component) method, the Component would be realized with correct sizes.
    Where or when should I request the information about how big a component has become inside a tab??
    Example:
    1. "Add" a tab via the menu.
    2. Notice that the size of the panel has not changed even though we see it on the screen.
    -Js
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    public class TabbedPaneShowingTest extends JFrame
         //GUI
         private JTabbedPane tabbedPane;
              private JPanel tabPanel;
         //MENU
         private JMenuBar mainMenuBar;
              private JMenu actionMenu;
                   private JMenuItem addTabMenuItem;
         public TabbedPaneShowingTest()
              this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
              this.setContentPane(getTabbedPane());
              this.setJMenuBar(getMainMenuBar());
              this.pack();
              this.setVisible(true);
         //GUI
         private JTabbedPane getTabbedPane()
              if(tabbedPane == null)
                   tabbedPane = new JTabbedPane();
                   tabbedPane.setPreferredSize(new Dimension(100,100));
              return tabbedPane;
         private JPanel getTabPanel()
              if(tabPanel == null)
                   tabPanel = new JPanel();
                   tabPanel.setBackground(Color.GREEN);
              return tabPanel;
         //MENU
         private JMenuBar getMainMenuBar()
              if(mainMenuBar == null)
                   mainMenuBar = new JMenuBar();
                   mainMenuBar.add(getActionMenu());
              return mainMenuBar;
         private JMenu getActionMenu()
              if(actionMenu == null)
                   actionMenu = new JMenu("Action");
                   actionMenu.add(getAddLineMenuItem());
              return actionMenu;
         private JMenuItem getAddLineMenuItem()
              if(addTabMenuItem == null)
                   addTabMenuItem = new JMenuItem("Add Tab");
                   addTabMenuItem.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             System.out.println("BEFORE TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
                             getTabbedPane().add("Tab",getTabPanel());
                             System.out.println("AFTER TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
              return addTabMenuItem;
         public static void main(String args[])
              new TabbedPaneShowingTest();
    }

    Once again... a little experimenting is a good thing. Just use SwingUtilities.InvokeLater() to retrieve the proper size.
    -Js
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.SwingUtilities;
    public class TabbedPaneShowingTest extends JFrame
         //GUI
         private JTabbedPane tabbedPane;
              private JPanel tabPanel;
         //MENU
         private JMenuBar mainMenuBar;
              private JMenu actionMenu;
                   private JMenuItem addTabMenuItem;
         public TabbedPaneShowingTest()
              this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
              this.setContentPane(getTabbedPane());
              this.setJMenuBar(getMainMenuBar());
              this.pack();
              this.setVisible(true);
         //GUI
         private JTabbedPane getTabbedPane()
              if(tabbedPane == null)
                   tabbedPane = new JTabbedPane();
                   tabbedPane.setPreferredSize(new Dimension(100,100));
              return tabbedPane;
         private JPanel getTabPanel()
              if(tabPanel == null)
                   tabPanel = new JPanel();
                   tabPanel.setBackground(Color.GREEN);
              return tabPanel;
         //MENU
         private JMenuBar getMainMenuBar()
              if(mainMenuBar == null)
                   mainMenuBar = new JMenuBar();
                   mainMenuBar.add(getActionMenu());
              return mainMenuBar;
         private JMenu getActionMenu()
              if(actionMenu == null)
                   actionMenu = new JMenu("Action");
                   actionMenu.add(getAddLineMenuItem());
              return actionMenu;
         private JMenuItem getAddLineMenuItem()
              if(addTabMenuItem == null)
                   addTabMenuItem = new JMenuItem("Add Tab");
                   addTabMenuItem.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             System.out.println("BEFORE TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
                             getTabbedPane().addTab("Tab",getTabPanel());
                             SwingUtilities.invokeLater(new Runnable()
                                  public void run()
                                       System.out.println("AFTER TAB SIZE: " + getTabPanel().getWidth() + "," + getTabPanel().getHeight());
              return addTabMenuItem;
         public static void main(String args[])
              new TabbedPaneShowingTest();
    }

  • Apple Mail (Mavericks), Viewing size of list is too small.how do you increase the size of the email message list.  The font is too small, I can hardly read them.

    In Apple Mail, using Mavericks, how do you increase the size of the email message list that displays on the left side of the screen?
    The font size is so small.
    Thanks.

    Thank you for responding.  After investigating and checking further, it was clear that only one of your suggestions changes the font size of the list of emails, also called the In-box.  And that is the display resolution.
    However, changing the display resolution affects the dots per inch of everything, everywhere and makes it larger.
    Given the high end fee Apple charges for their products, and the generally well developed software they provide, it is hard to imagine they have not corrected this obvious slight of effort on the inbox text. At times Apple's "one-size-fits-all" and "it's our way or no way" mentality astounds me and makes me want to run back to Microsoft.
    Evidently this is a well known mistake, which has yet to receive any attention.
    Again, thank you for your effort and assistance on my behalf.

  • File size of corrected jpegs expands to half the size of the original

    Using a Canon 1Dx, I have an option of utilizing both slots and assigning different file types to each.  In one slot I shoot RAW, and on the 2nd slot I shoot a JPG backup.  Typically though I'll do all my work on the RAW file in Lightroom 5.  The unimported JPG shot on the second slot expands to approx. 51MB.  But the CR2 file, imported to Lightroom 5 and then exported as a corrected JPG, only expands to 28MB.  Am I missing something on import/export that would reduce the filesize of the corrected JPG?  I cannot find a setting that is toggled that augments import/export size.  Is this a bits per channel issue?   Similarly, I have the same issue with Bridge.  When converting a CR2 file to JPG it expands to the same 28MB filesize.  My client wants his JPG to expand closer to that 50MB number.

    dean5432 wrote:
    When the JPG file is opened, it shows as 51MB.  When the CR2 file is opened it's 28MB.  I was under the mistaken impression that the files would produce equally sized JPGs, and that somehow in the output from Lightroom it was constraining the size of the finished image.
    When you say "opened" what  'MB' reading are you reffering to? Lightroom can show the image file's Resolution (5184 x 3456), File Size (MB), and Megapixels. What does LR show for these three reading, in particular you should be interested in the image 'Resolution' value.
    When viewed in PS your Canon 1Dx raw image files should show a 'Document Size' of:
    5184 x 3456 x 3 (RGB) x 2 (16 bit data) = 107,495,424 Bytes ÷ 1,048,576 (# of Bytes in MB) = 102,515,625 Bytes = 102.5 MB
    Your full-size Camera JPEG images should be exactly 1/2 since they are 8bit images = 51.3 MB
    I can confirm these numbers with my Canon 600D, which also uses a 5184 x 3456 resolution sensor.
    You may have your camera set to shoot M-Raw (3888 x 2592) or S-Raw (2592 x 1728) with full-size JPEG (5184 x 3456).

  • How to change the size of the caret in a JTextPane

    I have text of different font sizes and the default caret height is the height of the text with the maximum font size. How do I change the caret height so that it matches the height of the text with the specified font size ?

    This has been a real pain in the butt to figure out, but I think I finally got it. If you create your own caret (subclass of DefaultCaret) then you override its paint() and damage() methods. I was having all kinds of problems with this though. I was getting pieces of carets left behind when I moved with the arrow keys, etc... from the helps I found. The arrow keys were my big problem.
    I think I finally figured out that the damage() simply does need to specify an area a little bigger than the old caret so it can blank it out. Then I think others had a logic problem, and Sun does not make this problem clear. What happens it that I think repaint() calls paint() who then uses the bigger x, y, height and width parameters that got set in damage(), which was causing my problems because the damage size was bigger than the size I wanted to create my caret with. What I do is figure out my area from the font I am using (another trick) and make them (the charWd and charHt) variables class variables. I calculate them in damage, use a bigger area to blank out my old caret in damage, and then used the correct caret size I calculated in damage() in paint(), instead of the rectangle values that seem to get passed from damage() to paint(). That was the problem in other examples.
    Here is my code:
    run with java caretPain
    run with java caretPain -1 to see my fixed version
    run with java caretPain -2 to see some problems
    // written by: Stan Towianski
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Hashtable;
    import java.util.ArrayList;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import javax.swing.undo.*;
    import javax.swing.plaf.basic.*;
    import javax.swing.text.*;
    import javax.swing.plaf.*;
    import java.net.URL;
    import java.io.*;
    import java.beans.*;
    public class caretPain extends JFrame {
    static caretPain CRTP2;
    JPanel contentPane;
    JTextPane textPane;
    JTextPane textPane2;
    JScrollPane scrollPane;
    JSplitPane splitPane;
    String newline = "\n";
    static final int MAX_CHARACTERS = 300100;
    static int FrameWidth = 500;
    static int FrameHeight = 300;
    String caretType = "blockOutline";
    static int useSpecialCaret = 0;
    DefaultCaret useCaret = new MyCaret();
    public caretPain() {
    textPane = new JTextPane( new DefaultStyledDocument() );
    textPane2 = new JTextPane( new DefaultStyledDocument() );
    if ( useSpecialCaret == 1 )
    System.out.println( "using special caret 1" );
    textPane.setCaret( useCaret );
    else if ( useSpecialCaret == 2 )
    System.out.println( "using special caret 2" );
    textPane.setCaret( new WsCaret() );
    textPane.setCaretPosition(0);
    textPane.setMargin(new Insets(5,5,5,5));
    scrollPane = new JScrollPane(textPane);
    textPane.setPreferredSize(new Dimension(FrameWidth, FrameHeight));
    JScrollPane scrollPane = new JScrollPane(textPane);
    //Create a split pane for the change log and the text area.
    splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT,
    textPane, textPane2 );
    splitPane.setOneTouchExpandable(true);
    //Add the components to the frame.
    contentPane = new JPanel(new BorderLayout());
    contentPane.add(splitPane, BorderLayout.CENTER);
    setContentPane(contentPane);
    class MyCaret extends DefaultCaret
    int charWd = 30;
    int charHt = 30;
    // draw the caret
    public void paint(Graphics g)
    System.err.println( "entered MyCaret.paint()" );
    if ( ! isVisible() )
    System.err.println( "exiting because not visible" );
    return;
    try {
    JTextComponent c = getComponent();
    int dot = getDot();
    Rectangle r = c.modelToView(dot);
    System.err.println("caret: text position: " + dot +
    ", view location = [" +
    r.x + ", " + r.y + "]" +
    newline);
    g.setColor(c.getCaretColor());
    //g.drawLine(r.x, r.y + r.height - 1, r.x + 14, r.y + r.height - 1);
    System.err.println( "caretType =" + caretType ); //+ " component =" + c.toString() );
    if ( caretType.equals( "blockOutline" ) )
    g.drawRect( r.x, r.y, charWd, charHt );
    else if ( caretType.equals( "block" ) )
    g.fillRect( r.x, r.y, charWd, charHt );
    else if ( caretType.equals( "bar" ) )
    g.drawLine( r.x, r.y, r.x, r.y + charHt );
    catch (BadLocationException e) {
    System.err.println( "bad caret loc" + e);
    // specify the size of the caret for redrawing
    // and do repaint() -- this is called when the
    // caret moves
    //protected synchronized void damage(Rectangle r)
    public synchronized void damage(Rectangle r)
    System.err.println( "entered MyCaret.damage()" );
    System.err.println("caret.damage(): text position: " + getDot() +
    ", view location = [" +
    r.x + ", " + r.y + "]" +
    newline);
    //FontMetrics fm = g.getFontMetrics();
    //System.out.println( "textPane getfont =" + textPane.getFont() );
    //System.out.println( "\n\n read in attribs font size =" + textPane.getInputAttributes().getAttribute(StyleConstants.FontSize) + "\n\n" );
    //int ii = Integer.parseInt( (String) textPane.getInputAttributes().getAttribute( StyleConstants.FontSize ) );
    int ii = Integer.parseInt( String.valueOf( textPane.getInputAttributes().getAttribute( StyleConstants.FontSize ) ) );
    //System.out.println( "textPane input attrib font size =" + ii );
    Font f = new Font( "ff", Font.PLAIN, ii );
    //System.out.println( "textPane input attrib font =" + f );
    FontMetrics fm = getFontMetrics( f );
    //FontMetrics fm = g.getFontMetrics();
    //FontMetrics fm = getFontMetrics( textPane.getInputAttributes().getAttribute( StyleConstants.FontSize ) );
    //MutableAttributeSet inputAttributes = getInputAttributes();
    //String fs = textPane.getAttribute( "FontSize" );
    //System.out.println( "\n\n read font size =" + textPane.getCharacterAttributes().getAttribute(StyleConstants.FontSize) + "\n\n" );
    charWd = fm.charWidth( 'k' );
    charHt= fm.getHeight();
    //System.out.println( "font width =" + charWd + " font height =" + charHt + " font =" + fm.toString());
    if ( r == null )
    System.err.println( "caret.damage() return on rectangle == null" );
    return;
    x = r.x - 2;
    y = r.y - 2; // + r.height - 2;
    width = charWd + 4; //textPane.getColumnWidth();
    height = charHt + 4; //textPane.getRowHeight();
    System.err.println("caret.damage(): set caret width, height, x, y =" + width + "," + height + "," + x + "," + y );
    repaint();
    //repaint();
    public class WsCaret extends DefaultCaret {
    transient private int[] flagXPoints = new int[3];
    transient private int[] flagYPoints = new int[3];
    public WsCaret() {
    this.setBlinkRate(500);
    public void paint(Graphics g) {
    if(isVisible()) {
    JTextComponent component = this.getComponent();
    TextUI mapper = component.getUI();
    Rectangle r = null;
    try {
    r = mapper.modelToView(component, this.getDot());
    catch(BadLocationException exc) {}
    //System.out.println( "rect r =" + r.toString() );
    //g.drawLine(r.x, r.y, r.x, r.y + r.height - 1);
    //g.drawLine(r.x+1, r.y, r.x+1, r.y + r.height - 1);
    g.drawRect( r.x, r.y, 10, r.height );
    Document doc = component.getDocument();
    if (doc instanceof AbstractDocument) {
    Element bidi = ((AbstractDocument)doc).getBidiRootElement();
    if ((bidi != null) && (bidi.getElementCount() > 1)) {
    // there are multiple directions present.
    flagXPoints[0] = r.x;
    flagYPoints[0] = r.y;
    flagXPoints[1] = r.x;
    flagYPoints[1] = r.y + 4;
    flagYPoints[2] = r.y;
    flagXPoints[2] = (true) ? r.x + 5 : r.x - 4;
    System.out.println( "going g.fillPolygon" );
    g.fillPolygon(flagXPoints, flagYPoints, 3);
    protected synchronized void damage(Rectangle r) {
    if (r != null) {
    this.x = r.x - 4;
    this.y = r.y;
    //there must be a better way to doing this, but for now you
    //just increase the width so that it will cover the new caret's size
    this.width = 20; // the original width is 10
    this.height = r.height;
    //this.height = r.height + 20;
    //this.height = 10;
    repaint();
    //The standard main method.
    public static void main(String[] args) {
    if ( args.length > 0 )
    System.out.println( "found arg so will use special caret." );
    if ( args[0].equals( "-1" ) )
    useSpecialCaret = 1;
    else if ( args[0].equals( "-2" ) )
    useSpecialCaret = 2;
    else
    System.out.println( "found no arg so will standard caret." );
    System.out.println( "give arg: -1 to get Stan\'s working caret" );
    System.out.println( "give arg: -2 to get another example\'s caret" );
    try
    CRTP2 = new caretPain();
         catch (Exception ex)
    System.out.println("Error creating CRTP2: " + ex);
    ex.printStackTrace();
    System.exit(0);
    CRTP2.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    public void windowActivated(WindowEvent e) {
    CRTP2.textPane.requestFocus();
    CRTP2.setTitle( "This is my title you" );
    CRTP2.pack();
    CRTP2.setVisible(true);

Maybe you are looking for

  • Why doesn't the App Store Flag go away?

    This is a small thing, but the details are where it is at. I have a new iPhone 6 running iOS 8.02 and the App Store flag says I have four new app updates to download. This was true before I downloaded all the updates in iTunes and synched with my pho

  • Customer master list report

    Hi, 1) How can I generate the customer master report? 2) How can I generate the blocking/deletion customer mater list report? Can I get any standard report as mentioned above. Thanks Devendra

  • How does one set up a file sharing password?

    Hi, My wife and I use the same Airport Extreme station to access the Internet and each other's machine. Every time one of us wants to connect to the other machine via AFP, a dialog box springs up that has radio buttons, giving the choice of 'Register

  • CS 5 free hand trace and cut ?

    Hi all- I feel dumb already but I've fooled around long enough. Since upgrading from CS 3 to CS 5 I cant seem to freestyle trace and cur pieces of images and drag them to another picture and drop them in. I did it easily in PS 3 and I'm just not seei

  • Unable to view locked data in Data Forms

    Hi, Does anyone know why we are not able to view locked data (it just shows empty orange cells) in Data Entry Forms? We added a column to the Data Form with the prior quarter information. This is just for information purposes and not for entering dat