How to change the direction text writen!

i will write a notepad in pure java. but i will make it like this: item is top to bottom, and line is left to right. This is mongolian. but i dont know how can change the direction of text writen.
please tell me!

Here's what you should do:
suppose your string is "abc" and you want to display that reversed:
1. reverse the string
2. find where your start point is (where you're going to draw 'a'
3. Use FontMetrics to calculate the offset from the start point you need to make to print the string where it should be

Similar Messages

  • How to change the default text title of Detached table/treetable

    Hi,
    Is anybody know How to change the default text title of Detached table/treetable.
    I have already read the post on "http://vtkrishn.com/2010/07/28/how-to-change-the-default-text-title-of-detached-tabletreetable/"
    as per this post It will change the title throughout the application.
    I wanted to change only for one particular table.
    Thanks,
    Charu
    Edited by: Charu on Sep 13, 2012 4:14 AM

    Hi,
    please don't double post and instead continue with your original threat. In the previous post you got the correct answer to use skinning. You did not like the solution as it doesn't allow per-instance titles. I agree with this and a logical consequence is to file an enhancement request instead of re-posting the question. I'll file the ER, so no need to follow up for you anymore
    Frank

  • How to change the Short text of a GUI Status .

    Hi Guys ,
       Can any one guide me on how to change the short text of an already existing GUI Status .
    I have already tried doing these :Opened the GUI Status in change mode and changed the short texts of the Application tool bar ,
                               Menu Bar ,
                               Function Keys ,
    thinking that this will update in the Short text .. but that didnt happen ...
    Below is what I need ...
    Requirement :
    GUI Status : Status_001 .
    Short Text :  New GUI Status .
    Change the Short Text to " Changed GUI Status ' . 
    Regards,
    Ranjita

    Hi Ranjita,
    Do this...
    go to SE80
    Open the program.. open node GUI Status
    Double click on the status you want to change
    go to menu GOTO>ATTRIBUTES>STATUS
    click on continue or simply enter
    Here change the short text and continue or enter
    activate it
    Hope this helps..
    Regards,
    Kinshuk

  • How to change the direction of my application ?

    apex 4.0 , db11gxe , firefox 24 ,
    hi all,
    how to change the direction of my application from left to right to right to left of vice versa ?

    newbi_egy wrote:
    sure i did , i found nothing ,
    provide me with a link if you have one
    thanks
    Hi,
    That's strange.
    Search works just fine for me
    https://forums.oracle.com/search.jspa?view=content&resultTypes=&dateRange=all&q=rtl&rankBy=relevance&contentType=all&con…
    Regards,
    Jari

  • How to change the menu text for menu exit in Version 3.1i

    Hi,
    I am working on an enhancment in CJ02 transaction in 3.1i version. I have implimented menu exit for it , but I am unable to change the menu text for it.Please let me know how to change the menu text for that menu.
    Thanks
    Suman

    Hi Shree,
    Thanks for the response. Please find the Enhancement name here "CNEX0006".
    Thanks
    Suman

  • How to change the answer text within the review widget of iBooks Author?

    I want to change the answer text which appears after one has finished a test within the review widget of iBooks Author, but I can't figuere out how to do that.
    I also want to sum up the result of a couple of questions as a percentage. How does that work?
    Can anybody help?
    Thanks
    Reinhard

    Notice the answers inside the widget, each with a circle to the left - tap on one of those, which will then appear green with a checkmark in the center to indicate the correct choice.

  • How to change the Slection text of Standard  Program RFVEPBOOK

    Hello,
    I copied the standard program RFVEPBOOK , now I want to change the selection text as per the requirement. But in that three fields are inactive where we define the selection text so that I am not able to change the text for that field  and two fields  are not define in the program and that fields are appearing on selection screen. That two field are define in separate include but that include is not define in the program so it is difficult to change the selection text for those two fields also.
    Can anyone know how to do that?
    Thanks and Regards.
    Chetan.

    Hi Chetan,
    You cannot change the Selection text BECAUSE.....
    this program is using logical database selection screen.
    To see follow this...
    GOTO -> Attributes -> here u cab see in Logical database  there is 'BRM'...
    So it's not possible to change standard one.
    thats the reason u are not able to find parameters defined in program.
    <b>Kindly Reward if useful
    ROHIT G</b>

  • How to change the header text on output type in sapscript

    Dear All,
    In the sapscript, I would like to changes the header text from invoice number to sales number on the output type z001.
    Could someone can guide me?
    Thanks.

    Hi,
    Please go through following link :
    http://forums.adobe.com/thread/870081#870081
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • How to change the  short text in  a model service specification??

    Hi,
                I've tried changing a model service specification using the transaction code ML11 but couldnt change the  short text language from German to English.

    Hi
    One possibility is to Maintain the  languages in the Additional data tab  under description in the material master record for your Services . Please check wether both the languages are maintained or not . Please correct me if i am wrong .
    regards
    kp

  • How to change the links text color?

    could any one tell me if it's possible to change the link text's color? instead we stuck with the defaut theme asigned color.

    Ok Looking to do this manually I don't see all that you suggest I need to see.
    .Body {
    color: #181c01;
    font-family: 'Palatino-Roman', 'Palatino', 'serif';
    font-size: 14px;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    letter-spacing: 0;
    line-height: 19px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    opacity: 1.00;
    padding-bottom: 0px;
    padding-top: 0px;
    text-align: left;
    text-decoration: none;
    text-indent: 0px;
    text-transform: none;
    .Header {
    color: #6a6f75;
    font-family: 'Palatino-Bold', 'Palatino', 'serif';
    font-size: 29px;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    letter-spacing: 0.16em;
    line-height: 38px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    opacity: 1.00;
    padding-bottom: 0px;
    padding-top: 0px;
    text-align: center;
    text-decoration: none; NOTE THIS
    text-indent: 0px;
    text-transform: uppercase;
    .Normal {
    padding: 4px;
    .graphicgeneric_body_textbox_styledefault {
    background: transparent;
    float: none;
    margin: 0px;
    opacity: 1.00;
    .graphicgeneric_header_textbox_styledefault {
    background: transparent;
    float: none;
    margin: 0px;
    opacity: 1.00;
    .graphictextbox_layout_styledefault {
    padding: 4px;
    .graphictextbox_styledefault {
    background: transparent;
    float: none;
    margin: 0px;
    opacity: 1.00;
    div {
    overflow: visible;
    img {
    border: none;
    .InlineBlock {display: inline; }
    .InlineBlock {display: inline-block; }
    .tinyText {
    font-size: 1px;
    This is the welcome page css file, not the index file.
    On my page I have white background, black text, when the arrow points to the link text it turns light brown, I am not so concerned about anything except the link text standing out in a differnt color, initially.
    I am leaning quite abit.
    So what do I do now
    Thanks
    Moncrief

  • How to change the default text style?

    The MacOS system seems to maintain a collection of text 'styles' available in applications such as TextEdit, Bean, MacJournal, Notebook and DevonThink. This collection contains a default style, used by some (but not all) of these applications as the default text style for new documents.
    At my computers this default style is characterized in the 'favorite styles' panel as 'left aligned, spacing 0.0x' and it has strange tab stops (0.99, 1.98, 2.96, 3.95, 4.94, 5.93, 6.91, 7.90, 8.89, 9.89, 10.86, 11.85 cm).
    I prefer tab stops at 1.00, 2.00, 3.00 etc., and 1.2x line spacing.
    I guess I have changed the default style by accident, as I cannot imagine Apple putting such strange tab stops in a default style (0.0x spacing sounds a bit strange too). If so, it must somehow be possible to change the default style.
    I have tried to change the default style via TextEdit (which does not use the default style as default, but spacing 1.0x and tab stop at each centimeter) and several other applications (Bean, MacJournal, Notebook) in the following way: select a piece of text with the intended format, open the document styles panel, click 'Add to Favorites', enter 'Default' as the name for the style and click 'Replace'. Unfortunately, that doesn't work. Although I do not get an error message, the Default style hasn't changed. I can save my preferred style as, for example, 'Preferred' but that does not prevent MacJournal and other applications from using Default for every new document.
    Any idea how to change this default style, or, if that is not possible, reset it to its original state?

    I suggest you have a look at [https://addons.mozilla.org/en-US/thunderbird/addon/stationery/?src=api Stationery].
    It won't help you in defining styles, as such, but will give you templates wherein you can set up styles.

  • How to change the default text "There are no items to show in this view" in the visual webpart

    Hi,
    I am using a visual webpart and in that if there are no items in the list it is showing the default text "There are no items to show in this view." I want to change this default text. 
    I checked the forums here there are multiple ways are shown but no one is working for me.
    Kindly help me to change this text.
    Thanks in advanced.

    It seems you're retrieving items inside a specific you.. why not having a <div> inside you're visual web part and check to see if the count of items retrieved is > 0 then insert that in the div, otherwise, insert your custom message and not rendering
    the web part itself. What you're describing is the default message from SharePoint which comes from default views, and this can be changed from xslt in SP 2010 or in JSLink in SP 2013, here's a link how to do so in JSLink :
    http://www.idubbs.com/blog/2015/jslink-csr-to-override-there-are-no-items-to-show-in-this-view/ .
    But as said, since you're doing a visual web part, keep your stuff in the visual web part and check for the count of items before adding the rendered data to your div.  
    Mohamed Derhalli
    SharePoint Consultant
    Blog: SharePoint Thoughts
       Twitter:
    LinkedIn:
      

  • How to change the direction of a moving object

    I am trying to make a connect four program for class, and i am trying to make it so the red check piece move down. But instead it move left n right -.-, ive tried changing the coordinates but then the piece would just spin in circle or spins out of control. Here is the code i have right now, can someone help me please =D .
    import java.awt.*;*
    *public class Circle{*
    *private int centerX, centerY, radius;*
    *private Color color;*
    *private int direction, velocity;*
    *private boolean filled;*
    *public Circle(int x, int y, int r, Color c){*
    *centerX = x;*
    *centerY = y;*
    *radius = r;*
    *color = c;*
    *direction = 0;*
    *velocity = 0;*
    *filled = false;*
    *public void draw(Graphics g){*
    *Color oldColor = g.getColor();*
    *g.setColor(color);*
    *// Translates circle's center to rectangle's origin for drawing.*
    *if (filled)*
    *g.fillOval(centerX - radius, centerY - radius, radius*  2, radius  *2);*
    *else*
    *g.drawOval(centerX - radius, centerY - radius, radius*  2, radius  *2);*
    *g.setColor(oldColor);*
    *public void fill(Graphics g){*
    *Color oldColor = g.getColor();*
    *g.setColor(color);*
    *// Translates circle's center to rectangle's origin for drawing.*
    *g.fillOval(centerX - radius, centerY - radius, radius*  2, radius  *2);*
    *g.setColor(oldColor);*
    *public boolean containsPoint(int x, int y){*
    *int xSquared = (x - centerX)*  (x - centerX);
    int ySquared = (y - centerY)  *(y - centerY);*
    *int radiusSquared = radius*  radius;
    return xSquared  +ySquared - radiusSquared <= 0;+
    +}+
    +public void move(int xAmount, int yAmount){+
    +centerX = centerX+  xAmount;
    centerY = centerY  +yAmount;+
    +}+
    +public int getRadius(){+
    +return radius;+
    +}+
    +public int getX(){+
    +return centerX;+
    +}+
    +public int getY(){+
    +return centerY;+
    +}+
    +public void setVelocity(int v){+
    +velocity = v;+
    +}+  
    +public void setDirection(int d){+
    +direction = d % 360;+
    +}+
    +public void turn(int degrees){+
    +direction = (direction+  degrees) % 360;
    // Moves the circle in the current direction using its
    // current velocity
    public void move(){
    move((int)(velocity  *Math.cos(Math.toRadians(direction))),*
    *(int)(velocity*  Math.sin(Math.toRadians(direction))));
    public void setFilled(boolean b){
    filled = b;
    import javax.swing.*;*
    *import java.awt.*;
    import java.awt.event.*;
    public class ColorPanel extends JPanel{
    private Circle circle;
    private javax.swing.Timer timer;
    public ColorPanel(Color backColor, int width, int height){
    setBackground(backColor);
    setPreferredSize(new Dimension(width, height));
    // Circle with center point (25, 100) and radius 25
    circle = new Circle(25, height / 2, 25, Color.red);
    circle.setFilled(true);
    // Aim due west to hit left boundary first
    circle.setDirection(90);
    // Move 5 pixels per unit of time
    circle.setVelocity(5);
    // Move every 5 milliseconds
    timer = new javax.swing.Timer(5, new MoveListener());
    timer.start();
    public void paintComponent(Graphics g){
    super.paintComponent(g);
    circle.fill(g);     
    private class MoveListener implements ActionListener{
    public void actionPerformed(ActionEvent e){
    int x = circle.getX();
    int radius = circle.getRadius();
    int width = getWidth();
    // Check for boundaries and reverse direction
    // if necessary
    if (x - radius <= 0 || x + radius >= width)
    circle.turn(90);
    circle.move();
    repaint();
    }with that code my circle just spins back n forth rapidly. How can i make it so it drop to a certain location everytime i click the mouse?

    lilkenny1337 wrote:
    I am trying to make a connect four program for class, and i am trying to make it so the red check piece move down.
    How can i make it so it drop to a certain location everytime i click the mouse?Try this:
    public class ColorPanel extends JPanel {
        private Circle circle;
        private Timer timer;
        private int stepX, stepY, xM, yM;
        public ColorPanel(final Color backColor, final int width, final int height) {
            setBackground(backColor);
            setPreferredSize(new Dimension(width, height));
            // Circle with center point (25, 100) and radius 25
            circle = new Circle(25, height / 2, 25, Color.red);
            circle.setFilled(true);
            // Aim due west to hit left boundary first
            circle.setDirection(90);
            // Move 5 pixels per unit of time
            circle.setVelocity(5);
            // Move every 5 milliseconds
            final MoveListener ml = new MoveListener();
            timer = new Timer(5, ml);
            addMouseListener(new MouseAdapter() {
                @Override
                public void mousePressed(final MouseEvent e) {
                    if (timer.isRunning()) {
                        return;
                    xM = e.getX();
                    yM = e.getY();
                    int xC = circle.getX();
                    int yC = circle.getY();
                    stepX = (xM - xC) / 10;
                    stepY = (yM - yC) / 10;
                    timer.start();
        @Override
        public void paintComponent(final Graphics g) {
            super.paintComponent(g);
            circle.fill(g);
        private class MoveListener implements ActionListener {
            public void actionPerformed(final ActionEvent e) {
                if ((stepX > 0 && circle.getX() >= xM)
                        || (stepX < 0 && circle.getX() <= xM)) {
                    stepX = 0;
                if ((stepY > 0 && circle.getY() >= yM)
                        || (stepY < 0 && circle.getY() <= yM)) {
                    stepY = 0;
                if (stepX == 0 && stepY == 0) {
                    timer.stop();
                    circle.setLocation(xM, yM);
    /* add this method in the class "Circle":
        public void setLocation(int xM, int yM) {
            centerX = xM;
            centerY = yM;
                } else {
                    circle.move(stepX, stepY);
                repaint();
    }

  • How to change the direction of movement in atable from left to right?

    As the title says i want to change the movement direction in the cells of a table in pages when i click tab key from "left to right" to "right to left", is that possible?

    It seams that we aren't using the same application.
    In mine, if the cell C3 is selected, pressing shift + tab select the cell B3 which is what you wanted in your original post (or I understood it wrongly).
    If what you want is the ability to insert a new row above the current one or at top of a table, you can't do that this way.
    Same response if you want to insert a new column to the left of the table.
    To do that, the soluce is to select the top row or the leftmost column.
    There is a funny bug in the menu items.
    If your table has a header row, entering the menu Format > Table, we get four items:
    Insert new header above
    Insert new header below
    if we are in the header row
    or
    Insert new row above
    Insert new row below
    Insert a column before
    Insert a column after
    These four menus items have shortcuts :
    option up arrow
    option down arrow
    option left arrow
    option right arrow
    If the table has no header, the menu items are :
    Insert new row above
    Insert new row below
    Insert a column before
    Insert a column after
    None of them display a shortcut *_but the shortcuts are active_*
    Yvan KOENIG (VALLAURIS, France) samedi 11 septembre 2010 23:52:27

  • How to change the column text of an ALV in WD?

    Hiya,
    I have an ALV and it displays this in the column headings:
    I'd like to change 'Name 1' to 'Name' and 'Boolean' to 'Selection', but I can't seem to figure out how to do this in the maze of all the classes and methods...
    Could someone give me a few pointers please.
    Thanks in advance!

    Hi ,
    We can change the column heading through if_salv_wd_column_settings interface. Please check the following code for changing the same.
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      data l_salv_wd_table type ref to iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      data l_table type ref to cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      data l_column type ref to cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'Name_1' ).
      data l_header type ref to cl_salv_wd_column_header.
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_text
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_text( `Name` ).
      l_column = l_table->if_salv_wd_column_settings~get_column( 'Boolean' ).
      data l_header type ref to cl_salv_wd_column_header.
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_text
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_text( `Selection` ).
    Regards,
    Harsha

Maybe you are looking for

  • Double quotes missing in CSV file but exist in text file from AL11

    Hi I am sending a file to AL11 with one of the fields having double quotes Like "field value" . When i download into Text file  i am seeing the quotes but not when download as CSV file from Al11. Any SAP notes for this . If i add  multiple quotes ' "

  • Backups are not working.

    Today when I attempted to back up my phone and put some new music on there it did not do it how it should. I connected my phone, opened itunes, selceted my songs and pressed sync. It starts backing up everything on my phone even though there is a res

  • Re-build Database from .DBF Files

    I have the set of .dbf files which Veritas backed up daily in my production environment. Can any body tell me the steps how I can rebuild my database from these .dbf files. i) ACCT.BAK ii)ISACCTB_01.DBF iii)RBS1ACCT.DBF iii)RBS2ACCT.DBF iv)SYSTEM1.DB

  • How to put BBC audio book CDs in to the Audiobook category

    I have inherited a 3rd generation iPod from my Dad who recently passed away. I have a lot of audio books on CD (BBC Radio 4 productions) that I have put onto my iPod, but despite many attempts, I can't make the imported audio books appear in the audi

  • Weblogic in JMC

    Hi, We are running an application on Java 1.7, for monitoring we configured JMC. We installed a pluging for weblogic in JMC but still we are not able to see the same. While in JRMC we were able to see the weblogic tab by following same steps.. Can so