How to Specify the size of a new window

now that the window opens in a new page how do I specify a
size and to make it appear without the toolbars so that they can't
press the back button?
Note -I have no idea how to use code & I need to do this
in a quick & easy way

SuperNewUser wrote:
> now that the window opens in a new page how do I specify
a size and to make it
> appear without the toolbars so that they can't press the
back button?
>
> Note -I have no idea how to use code & I need to do
this in a quick & easy way
>
Why would you want to do this?
Bonnie
in California
8 ^ )

Similar Messages

  • How to reduce the size of winsxs in windows 7 ultimate x64

    Ok so first off there are some caveats to responding to this question
    1.) Im on windows 7, so DONT refer to some "winsxs is important" vista link...
    2.) i am well aware of what windows side by side is for, and appreciate dll ____ must be bad for some... but lets be honest, professional people like me know how to keep a system in shape and not remove DLL files willy nilly and should have some kind of
    "i know what im doing" option
    3.) i know its important system files blah blah blah
    4.) i know it MUST be possible to trim this... vsp1cln.exe and compcln.exe from vista sp1 and sp2 respectively shows it CAN be done
    so in light of that, as there is no vsp1cln.exe or compcln.exe included on windows 7 i need to know if they are compatible with windows 7 if i just pull down a version from vista.
    if not, there must be some kind of method to reduce winsxs size... mine is currently at 6.2GB and that... frankly... is too big, i can understand a few GB worth, but 6! thats a whole windows xp installation!
    now, if a utility could be written that would be detrimental to compatibility but acceptable in terms of limited damage then that would be good, perhaps removing the ability to uninstall updates if for example, your system has been stable since february
    i know i wont have problems and have the retail disk if it gets fubar.
    I cant see what all that folder is for... i mean if you dont want such compatibility or the ability to install extra components without finding the disk then you should be able to remove that... i dont use a lot of the server side components, so why cant
    i remove those.
    also winsxs uses a lot of hardlinks and junctions that are reporting hard drive usage that isnt actually used as explorer counts these files repeatedly, there must be a way to tell explorer not to count those files... it might be all well and good to say
    theres 2gb not actually being used, but if windows is throwing a fit because it thinks im out of space then those 2gb might as well be 2 TB for all the use they are to me.
    lets take for example the winsxs/backup folder, there are about 60% of that taken up with FONT BACKUPS... i mean SERIOUSLY! ... you backed up the FONTS!?
    WHY!?!?
    There must be more things like those that could go
    perhaps someone could get back in touch and explain why microsoft windows is the ONLY operating system that seems to think that if it doesnt have 80 hundred million backups and spares it wont work... linux does not have this side by side thing, nor does
    macosx

    Okay maybe some background on the root of the problem would help.
    Windows XP (and Windows 2000) used a fast and great mechanism called Hotfix Installer (Update.exe) to install updates. Updates installed in very little time. If you wanted to further reduce update times on Windows XP, you could just temporarily stop the
    System Restore service and updates would install at crazy speeds. Note that this is not recommended for novice users who don't know advanced recovery methods, as some updates can sometimes cause your system to stop booting so you cannot even uninstall them.
    The method the Hotfix Installer used was simple, it just installed a new version of files to be updated at %windir%\system32 and %windir%\system32\dllcache (the Windows File Protection cache). For files that were in use, a restart copied them from dllcache
    to the system32 folder. This is simple file-based servicing. The hotfix installer (Update.exe) also supported various command line switches like /nobackup which means not to backup files it patches. Again, this is not recommended for novice users as some updates
    can screw your system even after the comprehensive testing Microsoft does before releasing them. But if you won't be uninstalling any updates (usually one only requires uninstalling updates if they cause problems), you could save a ton of disk space by not
    backing up the files it patched. The Hotfix Installer backed up files to C:\Windows\$Uninstall$KBxxxxxx folders so even if you did back up the files at install time, they could be safely deleted after a few days if no stability issues were found after using
    Windows with the newest updates applied. Update.exe also supported the very important and convenient ability to slipstream a service pack or update into the original Windows setup files using the /s switch.    
    When Microsoft was developing Windows Vista, they realized that components had gotten too many interdepencies on each other and to service each file reliably without breaking another component that relied on it, Microsoft introduced what they called as Component
    Based Servicing (CBS). You can read all about it in a much more technical way at The Servicing Guy's blog. What CBS does basically is it installs all files of the entire operating system, including all languages into C:\Windows\WinSxS and then it hard-links
    files from there to C:\Windows\system32. This has the benefit of not having to insert the OS disc to add or remove any components, and some other advantages as well like offline servicing of a Windows Vista or Windows 7 image. But the design introduces a major
    disadvantage of taking up a lot of hard disk space. Whenever an update is installed, it no longer installs it to C:\Windows\system32 and C:\Windows\system32\dllcache like Windows XP's hotfix installer (Update.exe) did. Instead, it updates the files in C:\Windows\WinSxS.
    Now, Windows keeps multiple copies of the same file but with different version in WinSxS if it is used by more than one Windows component. The higher the number of components, that many number of times the file exists in C:\Windows\WinSxS. When a Windows Vista
    update (.MSU) is installed, the components get updated, each and every one, instead of the files and the worst part is it still maintains the older superseded previous versions of components in WinSxS so the user would be able to uninstall updates. Microsoft
    does say that some sort of "scavenging" or deleting older copies of components takes place but is scarce on the details. The scavenging seems to take place automatically at certain intervals in Windows 7 but not in Windows Vista. In Windows Vista, you have
    to add or remove any Windows component for the scavenging to take place. And Microsoft says the scavenging will free up some disk space but in practice, on my system, I see my free disk space only decreasing on Vista as I remove or add any component. Windows
    does not give the user an option to not backup the earlier versions of components like Windows XP's /nobackup switch in Hotfix Installer did. As as you install more and more updates on your system, they will take more and more disk space. This is one of the
    primary reasons Windows Vista and Windows 7 are so bloated. Another reason for them being so bloated is the DriverStore that these OSes store. All drivers that are shipped with the OS and the OEM ones which you download and which are installed for a particular
    system are staged in C:\Windows\System32\DriverStore. But let's not go there for now.
    Now, an important thing to note is that the size of the WinSxS folder is not what Explorer or the dir command report, it is far less but is misreported by Explorer because it counts the hard links more than once when calculating size. That does not mean,
    the size of WinSxS is not causing real-world disk space problems on numerous Windows Vista/7 systems in use today. Microsoft's ingenious recommendation to this problem of ever growing disk consumption is to install fewer updates to keep the size of the servicing
    store under control. Of course, users cannot deny installing security updates and leave their system open to security holes. What they can do is install less optional updates, the ones that Microsoft releases on the fourth Tuesday of every month and also install
    less of the hotfixes that are available by request from a Knowledge Base article. In short, you have to trade the number of bugs fixed in the OS by installing hotfixes at the cost of enormous amounts of disk space. The whole servicing stack is a total downgrade
    to Windows XP's update.exe method. It causes heavy disk thrashing and slow logoffs/logons while Windows configures these updates at the Welcome Screen. Many systems are unable to boot because of failed updates. Another disadvantage of the "new" servicing stack
    (and the redesigned Setup mechanism of Windows Vista) is the inability to do a true slipstream of service packs and hotfixes.
    The time it takes to actually install these hotfixes online compared to Windows XP is also completely unacceptable. When you start installing an MSU update, it spends a lot of time determining whether the update applies to your system. Then, the update itself
    takes much longer to install compared to Windows XP's Update.exe (hours instead of minutes if you are installing dozens of updates through a script). Finally, that post-installation process ("Configuring updates... Do not turn off your computer") takes several
    minutes before shut down followed by a second post-installation process (configuration) upon restart before logon that also takes also several minutes and thrashes the disk.
    I can install the entire SP3 for Windows XP in about 10 minutes after downloading the full installer. I can also install a slipstreamed-with-SP3 copy of Windows XP is about 45 minutes on a modern fast PC. In contrast, Windows Vista or Windows 7 do install
    relatively quickly (in just about 15-20 minutes) on a modern PC but installing the service packs and updates takes more time than anything on XP did. Not only can service packs not be slipstreamed, but Vista Service Packs are not even cumulative, which means
    if you clean install Windows Vista today, you have to install SP1 first which takes about 90 minutes, then SP2 which takes less time, then all the post-SP2 updates which do take hours to install. If you really HAVE to use Windows 7 or Windows Vista, you are
    stuck with this slow update non-sense as Microsoft does not even acknowledge that there is any slowdown or loss of functionality in the new servicing mechanism. The fact remains: MSU updates are slow as **** and take too much time and as Windows 7/Vista get
    older and Microsoft stops producing service packs, a clean install is going to take longer and longer to bring it up-to-date with all patches installed. Is is worth wasting your time on an OS whose servicing mechanism Microsoft completely screwed up? I once
    again recommend you read more about the servicing stack and how it operates at The Servicing Guy's blog:http://blogs.technet.com/b/joscon/. To fix this messed up servicing stack, Microsoft also offers a tool
    called CheckSUR for your system if it finds “inconsistencies in the servicing store”.
    Microsoft's Windows Vista and Windows 7 products are not engineered with disk space in mind. It causes a problem, especially for SSDs which are still low capacity and very expensive. The only hope is that Microsoft again completely redesigns this servicing
    mechanism in a future Windows release so it would not cause this growing disk space consumption issue, speed up installation of updates by an order of magnitude, not slow down logon and logoff, not prevent systems becoming unusable because of failed updates
    being stuck at a particular stage and allow true slipstreaming.
    Microsoft's response to this is vague - they simply state "Windows 7's servicing is more reliable than Windows XP" but they cannot acknowledge it is a million times slower and still unreliable...slow to the point of being unusable and sometimes leaving systems
    in an unbootable damaged state. Of course they know all this too but can't admit it since it makes their latest OSes look poor. Moving from a very simple and fast update mechanism that worked to a complex one that requires endless “configuring” and repair
    through CheckSUR is a product engineering defect.
    Take a look at servicing-related complaints in Microsoft's own forums:
    1.
    Very slow install of updates to Windows 7
    2.
    Windows 7 - Updates are very slow
    3.
    Windows 7 Ultimate, it takes long time configuring updates
    4.
    "Preparing To Configure Windows. Please Do Not Turn Off Your Computer"
    5.
    Very slow update install at shutdown (Windows 7 Home Premium)
    6.
    Why does my computer run so slow when installing updates?
    7.
    Every time the computer is shut down, it always says installing update do not turn off your computer
    8.
    Computer is working slow and wants to do windows updates all the time
    9.
    Windows 7 Update install time taking a very long time
    10.
    Windows wants to install 6 updates every time I log off or put the computer in sleep mode
    11.
    Problem In Configuring Windows Updates at the time of Startup
    12.
    Computer really slow after latest updates
    13.
    Windows hangs up in "configuring updates"
    14.
    Why can't windows 7 install updates?
    15.
    Every time computer is shut down, receive Installing updates, do not shut off....
    16.
    How long does it take for the Windows 7 Home Premium updates take?
    17.
    Windows 7 "Installing Update 2 of 2" for 12 hours now
    18.
    Updates causes endless reboots
    19.
    Updates stuck installing for over 24 hrs. Computer does not boot
    20.
    Cannot load Windows 7 after installing 2 critical updates
    A proper solution to this problem would be to completely re-engineer and rewrite the servicing mechanism so it operates with the speed, reliability and pain-free operation of the XP servicing mechanism.
    I don't see this situation improving in Windows 8 either. Good luck with your Windows tablet taking hours to install service packs and updates. Now, do iPads take that long to install updates?
    So fact is Microsoft understates or conveniently hides the real system requirements to keep a Windows 7/Vista system running. System requirements are install time may be 15 GB of free disk space but over time, this number increasing is unacceptable, especially
    for people's SSDs which are running out of disk space!

  • How to open the URL in a new window

    Hi,
    i have created a web template with hyperlinks in it. when i click the link in the browser it opens it in the same window.
    how can i open the link in a new browser. we are in BW 3.5
    Thanks
    Krishna

    Try adding this to your URL at the end:
    target=_blank
    Hope this helps...

  • How to post the data to a new window and control the new window's property?

    When we submit the form data to another page, we usually do the following:
    <form action="display.jsp" method="post"> will submit the form data and open
    display.jsp in the current browser
    <form action="display.jsp" method="post" target="_blank"> will submit the form data
    and open display.jsp in a new browser
    Now, what I want is to open display.jsp in a new browser, but control the window's size,
    and disable the status bar, title bar, and address bar of a new browser.
    If I do this, it can only open a html page, but not post the data to display.jsp.
    window.open('display.jsp', "newWin", "scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
    any ideas? thanks!!

    <html>
    <head>
    </head>
    <script language="JavaScript">
        function doSubmit() {
           displayWindow = window.open('', "newWin", "scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
           document.submitForm.submit();
    </script>
    <body>
    <form name="submitForm" action="display.jsp" method="post" target="newWin">
      <input type="text" name="param1"><br>
      <INPUT TYPE="button" NAME="button" Value="Click" onClick="doSubmit()">
    </form>
    </body>
    </html>

  • How to specify the location of a new created BPEL project

    Hello,
    When I create a new Oracle BPEL project with the Eclipse BPEL designer plugin, the new project "ProjectName" is located by default in the folder c:\eclipse\eclipse\workspace\ProjectName. (I suppose that the Eclipse is installed in c:\eclipse)
    The wizard doesn't allow the user to change the project location, the correspondin text field being disabled. Is there any possibility to specify a different location for the project?
    I ask this beacuse I want to create a new CVS module that will contain the projects that I create in BPEL designer and I don't want to place them in c:\eclipse\eclipse\workspace folder.
    Thank you in advance!
    regards,
    Marinel

    When you open the eclipse, it asks you the workspace location and takes the default as "eclipse\bpelz_install\bin\workspace". You can always change the workspace location to point anywhere you want.
    Else if you have already created the project and want to move to different location, then you can select the project and go to File->Move and move the project to any other location you want.

  • How to open the url link in new window or new tab in Sharepoint

    Hello,
        Am having one custom list and one column name  contains type (Hyperlink & picture).I want to open this in a new tab on click I tried but i didn't get any solution even I follow this link also.
    https://wb2-web.sharepoint.com/blog/Lists/Posts/Post.aspx?ID=9 
    and I didn't get this line of code:     <a
    onfocus="OnLink(this)" href="{$url}" >  
    Any Help

    You can do it one of two ways:
    1. Insert some CSS that will change the target to "_new".
    2. Change the field that the user enters information in to a single line of text, then create a calculated column that is:
    =CONCATENATE("<a href=",[URL Field]." target=new>Click here</a>")
    Format that as a number.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to reduce the size of a zoomed window

    Have tried the tapping on the mouse, but nothing happens.  Mail window takes up the entire screen.

    I guess I had never scrolled up to the top of the window.  Tried the other corners, to no avail!  WhenI did the upper heading appeared!!!! Never knew that!!!  :-) 
    Thanks
    Helen

  • How to specify logfile size at the time of adding to a member.

    Hi All,
    I am in the process of upgrading Oracle 9.0 to 10.1.
    I am following manual upgrad process.As per the recomendation from the pre-upgrade information script,i need to recreate redo-log files.
    Logfiles: [make adjustments in the current environment]
    --> E:\ORACLE\ORADATA\PRODB229\REDO03.LOG
    .... status="INACTIVE", group#="1"
    .... current size="1024" KB
    .... suggested new size="10" MB
    --> E:\ORACLE\ORADATA\PRODB229\REDO02.LOG
    .... status="INACTIVE", group#="2"
    .... current size="1024" KB
    .... suggested new size="10" MB
    --> E:\ORACLE\ORADATA\PRODB229\REDO01.LOG
    .... status="CURRENT", group#="3"
    .... current size="1024" KB
    .... suggested new size="10" MB
    WARNING: one or more log files is less than 4MB.
    Create additional log files larger than 4MB, drop the smaller ones and then
    upgrade.i can add redo member by the below command,but not able to specicy the size as 10M.I did some googling but no luck with that..
    SQL> ALTER DATABASE ADD LOGFILE MEMBER 'E:\oracle\oradata\prodb229\REDO01.rdo' T
    O GROUP 1;
    but it fails
    ALTER DATABASE ADD LOGFILE MEMBER 'E:\oracle\oradata\prodb229\REDO01.rdo' TO GROUP 2 SIZE 10M;
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ~Thnx

    If you add a logfile to an existing group, you cannot specify the size for that file.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1004.htm#i2079942
    <quote>
    ADD [STANDBY] LOGFILE MEMBER Clause Use the ADD LOGFILE MEMBER clause to add new members to existing redo log file groups. Each new member is specified by 'filename'. If the file already exists, it must be the same size as the other group members, and you must specify REUSE. If the file does not exist, Oracle Database creates a file of the correct size. You cannot add a member to a group if all of the members of the group have been lost through media failure.
    <quote>

  • Specifying the size of a file when creating a new file

    How do I go about doing this? I specifically need to create different file sizes (2mb's all the way up to 10mb). I was poking around through the File class and there doesn't seem to be a way to do this. There is a way to get the size of it in bytes, but no way to create an empty file straight off the bat with the file size specified. Does anyone know how to do this?
    Thanks.

    the reason I want to do this is because I need to pass certain file sizes over a network and see if the system can handle the sizes of the file under load. the files dont necessarily have to be empty, they can be filled with a bunch of jibberish, but I figured it would be easier to be able to just specify the size of the file rather than have a loop that loops and places over 2 million characters into a file. because a 2mb file is going to be the smaller of the files that needs passed through and that will take too long to create.
    and thanks for the link to randomaccessfile. im probably going to use that, just specify the file size and be done with it. unless theres a better way to do it, but i cant find anything.

  • 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);

  • How to change the size of control´s prompt?

    No matter the size of data to be displayed in the view suface prompt, the controls have the same size.
    Does anyone here know how to change the size of control in surface prompt?

    HI,
    In order to change the size of a radio button... one way you may consider is to Customise the Radio Button.
    Place a Radio Button (RB) on the FP of a VI, Right-Click the RB > Advanced > Customise...
    Click the Mode Button (most Left button) for Edit Mode
    Right-click the radio button (the round image) now, you will see a list of actions i.e. Copy to clipboard, import picture ...You will see Four images under the 'Picture Item', those are the images that you will need to replace.
    Prepare Four Images of the similar but larger expected size
    *** Copy the 1st new image to clipboard. Back to the Picture Item and select 1st image. Then, select Import Picture (to replace the existing image)
    Repeat *** for all four images.
    Once done, change the mode back to original. Save the *.ctl
    You are now ready to use the customised radio button!
    Quick sample attached (sorry for the poor images created )
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    IFK_RButton_Large.ctl ‏11 KB

  • How to change the size of the titel of  a picture in a diashow

    please answer the question.
    how to change the size and the possition of the titel of  a picture in a diashow

    You need to select it.  Copy that selection to a new layer, and use Free Transform to resize it.
    http://www.youtube.com/watch?v=qWpAGmwhllQ
    http://www.youtube.com/watch?v=Bi4jJnYLkUA

  • How to change the size of a particular object in the picture?

    How to change the size of a particular object in the picture?

    You need to select it.  Copy that selection to a new layer, and use Free Transform to resize it.
    http://www.youtube.com/watch?v=qWpAGmwhllQ
    http://www.youtube.com/watch?v=Bi4jJnYLkUA

  • How to specify the target name while deploying a code in OSB-- Plz Help

    Hi all,
    Am working in creating a cluster environment. For my testing i created a new managed server(OSB_Server) in 9001 port in the admin console itself and that server started running. The default managed server(Admin_Server) is in 7001 port. So when i deploy a code in 7001 sb console the WSDL gets exposed in 7001 because the default admin server port is 7001. While deploying a code in service bus admin console we are not specifying the target name. So how to specify the target name while deploying the code in service bus admin console. Plz help me.
    Regards
    Prabhu

    Hi Prabhu,
    There are three kind of server architecture possible for OSB -
    1. Single server - Everything gets deployed on Admin server itself
    2. Admin Server + Single Managed Server for OSB -- OSB configuration gets deployed on OSB managed server. OSB resources (proxy service, WSDL, Schema) will remain available on OSB managed server port only and NOT on admin server port
    3. Admin Server + OSB cluster -- OSB configuration gets deployed on OSB cluster. OSB resources (proxy service, WSDL, Schema) will remain available on OSB Cluster port(s) only and NOT on admin server port
    Converting one type of server architecture to any other type, requires a manual tedious process, so it is suggested that you create domain accordingly i.e. if you need clusters then while creating domain itself, create OSB cluster, so that all OSB applications gets deployed to OSB cluster. I will suggest you to create a clustered domain from scratch and import the configuration from your existing domian to this new clustered domain.
    You may refer-
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15022/toc.htm
    Regards,
    Anuj

  • How to determine the size of selected text

    Hi
    I'd like to draw a box around some selected text (a textRange), however I can't figure out how to detemine the size or position of the text.  The overall size of a textFrame is possible to find (not sure about position), but when you've got just a few characters selected I don't see any way to get the size or position.  Any ideas?

    You may have to do some testing of your own with this… I tested here and 'think' its OK but could have overlooked something… For me the best way to get this data is to outline the type store the info in a variable then undo the outlining process… You can then continue your script with info in hand… An example that draws a box over each selected character… I cheated with only the one text frame but you can resolve that? You could easy use math.min & math.max to draw around an array of bounds… I didn't bother with a load of tests it expects selected text range as is… have fun…
    #target Illustrator
    textBoxer();
    function textBoxer() {
              var i, doc, sel, start, end, spaceB4, spaceInc, mat, grp, count, boxes;
              doc = app.activeDocument;
              sel = doc.selection;
              start = sel.characterOffset-1; // Not zero based…
              end = start + sel.length;
              doc.selection = null;
              spaceB4 = doc.textFrames[0].contents.substr( 0, start );  // Cheated here you will need to find parent frame…
              mat = spaceB4.match( /\s/g ); // Resolve the lost of white space characters before selection
              mat != null ? spaceB4 = mat.length : spaceB4 = 0;
              spaceInc = doc.textFrames[0].contents.substr( 0, end );  // Here too…
              mat = spaceInc.match( /\s/g ); // Resolve the lost of white space characters in selection
              mat != null ? spaceInc = mat.length : spaceInc = 0;
              grp = doc.textFrames[0].createOutline(); // Items in new group are last to first order
              app.redraw();
              count = grp.compoundPathItems.length;
              boxes = Array();
              for ( i = 0; i < count; i++ ) {
                        boxes.push( grp.compoundPathItems[i].visibleBounds );
              boxes.reverse(); // Fix the order
              app.undo(); // Bounce back…
              app.redraw();
              start = start - spaceB4;
              end = end - spaceInc;
              for ( i = start; i < end; i++ ) {
                                  doc.pathItems.rectangle( boxes[i][1], boxes[i][0], boxes[i][2]-boxes[i][0], -boxes[i][3]- -boxes[i][1], false );
              app.redraw();

Maybe you are looking for

  • SQLite and PHP - Why doesn't this work?

    I've noticed that, with the bundled installs of SQLite3 and PHP, SQLite seems not to work. Checking phpinfo(), I noticed that the linked library is of version 2, but SQLite 2 is not bundled. I've tirelessly searched the net, but this issue seems larg

  • Video ichat with XL1

    From everything that I have read, I believe it should be possible to video ichat with my XL1. See old post: http://discussions.apple.com/thread.jspa?threadID=276831&tstart=30. I am connected via firewire, but under preferences>video, iChat AV 2.1 doe

  • Integrating MDG in Financial Self Service for Asset Master Data creation in CRM portal

    Hello Experts, I have a requirement in CRM box. If we navigate to SAP menu we have Self Service -> Financial Internal Self Services. Then a portal page will open in browser. There we have link Master Data Services. In that link we have standard subli

  • Issue viewing earlier messages on iPhone 4S?

    have had my 4S approx 1 month and am having a problem loading earlier messages on some msg threads. Sometimes I have a 'Load earlier messages' button at the top and other times I don't (but I know there are earlier msgs) - does anyone know why this i

  • NCS PI 1.2 Not showing Cleair Sensor as up?

    In troubleshooting some issues, I noticed that on monitoring a few 3602's, the CleanAir Sensor Status would report Down on some AP's, despite on the same controllers and floor, some would report up.  This seems to be only on the g radios as well.   I