[SOLVED]How can i change the orientation of a jcombobox

hi friends,
in a frame i put a jcombobox and i want that data it it becomes from the right to the left.
i tried the famous SetComponentOrientation() but really it didn't give me the solution because only the combobox changes direction howerer the data in the combo still from the left to the right.
i wish that you help me
Message was edited by:
7rouz

the solution is :
jComboBox1.setRenderer(new DefaultListCellRenderer() {
/** {@ineheritDoc}
@Override public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
setHorizontalAlignment(RIGHT); //voir commentaires plus bas.
return this;
});

Similar Messages

  • How can i change the orientation of different pages in a Pages document?

    How Can I change the orientation of a single page in a Pages document?

    You can't. It has never been an available feature in any Pages version. you have to rotate the content on the page.

  • How can I change the orientation (landscape) of my OneNote file to portrait when I export it as PDF?

    I am on Mac and using the version 15.4 one note
    After I've typed up my notes on OneNote, I want to export them as a PDF, however the PDF always comes out in landscape orientation and it is very frustrating. I tried many ways to solve this problem but I never succeeded.
    How can I export it into portrait orientation? Please help! 
    Thanks!

    Hi,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing devleoping issues about apps for Office. Since the issue is more realtive to end-user issue on mac, I suggest that you get more effective response from
    Office for Mac forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction
    with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can i set the orientation for a photo book (horizontal or vertical)

    how can i set the orientation for a photo book (horizontal or vertical)
    I like a photo book vertical format and i cant findet!!

    That was quick! Although my earlier search turned up nothing, when I posted my question the system immediately gave me a list of previous questions among which I found the following answer:
    This solved my question by LarryHN on Aug 18, 2010 6:01 PM
    select the photos and change the date/time - photo menu ==> adjust time and date to make a relative adjustment to a number of photos ==> batch change ==> time and date to set an absolute time date for them
    LN

  • How can I change the display of Inbox in my iPad's mail app- so that it takes up the full screen?

    How can I change the display of Inbox in my iPad's mail app- so that it takes up the whole screen, as opposed to just about one third; the other two thirds display the full text of the selected email?

    You can't change the display in the Mail app, if you are holding the iPad in landscape orientation then the left-hand third will be for navigation, and the right-hand two-thirds will be an email. If you hold the iPad in portrait orientation then the navigation section becomes a drop-down section.

  • When my husband and I first bought our iPhones, I was the only one with an Apple ID (since he never used iTunes). He used my apple id to get apps. Now he has his own ID, but my account keeps popping up on his phone. How can we change the ID on his phone?

    When my husband and I first bought our iPhones, I was the only one with an Apple ID (since he never used iTunes). He used my apple id to get apps. Now he has his own ID, but my apple ID email address keeps popping up on his phone when he tries to download an app. We do not want to have all of the same apps on our phones. How can we change the ID on his phone? I already tried going to Settings>iTunes &App Store> and changing the Apple ID to his account email and that did not solve the problem. To make things worse, I recently changed my Apple ID email address (without getting a new ID) and I do not remember my old password (and this is the address that is popping up on his phone). He does not have any music on his phone and all of the Apps that he has are free.  Any help you could offer would be great (-:

    All apps are forever tied to the Apple ID that bought them. To stop your id from popping up, you need to delete the apps on his phone, and then repurchase them under his account.

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can I change the e-mail address that shows when I try to order from iBooks?

    Hi.  I recently had to change my e-mail address, and successfully changed my Apple ID to reflect the new e-mail.  However, while trying to order a book through iBooks today, I noticed that I was asked for my password and that my old e-mail was showing.  How can I change the old address to the new one so that I can order from iBooks?  Thank you.
    janiekhi

    Hi, fromsouth, and thank you for your reply.  When I go to store, there is no place that says "sign out" so I can't do this.  My old email is showing, and when I click on it I am asked for my password.  I tried my old password that I used with that email, but was told it was incorrect.  This is so frustrating!  I can't do any ordering on my iPad until this problem is solved.  Thanks again.
    janiekhi

  • How can I change the email associated with my forum account?

    How can I change the email associated with my forum account?  I didn't provide my work email to you, but you put it in my account.  My forum postings have nothing to do with my personal PC at home.  There isn't an option to update it.
    This question was solved.
    View Solution.

    Hi:
    Log in and click on your user name, then look at the upper the right side of the page.
    Click on the triangle to the left of the "More Resources" section.
    This will drop down, and give you options.
    Select User Settings.
    This will now open a page, and in the light blue type on top, follow it along to Contact Information, click on that, and change your e-mail address to what you want, and hit the blue submit button on the bottom right side of the page.
    Paul

  • Array of clusters and in the cluster is a bar meter, how can I change the color individually?

    Array of clusters and in the cluster is a bar meter, how can I change the color of the bar meter individually for each element of the array?  I have just figured out that you can't change properties of one element of the array without all elements changing.  For the scaling I had to make numeric indicators for each tick of the scale so that each bar meter in the clustered array would have individual scales.  I also had to do some math to scale each barmeter to display correct proportions from 0 to 100%.  Now I'm stumped on the color of the bar meter.  Basically, if the value goes over a setpoint, the bar meter needs to turn red.  It has to be in an array to be infinitely scalable.
    Thanks
    Matt
    Solved!
    Go to Solution.

    You can't do that-
    without a little trick.
    You could consider laying a custom color box over the bar graph in the cluster you can set the color based on the value of the bar graph or even make a "Pseudo"- bar graph using a series of color boxes stacked to look lie a bar and changing values of the Color boxs from empty to full to red.
    Here is an example to demonstrate
    Jeff
    Attachments:
    Pseudo bar.vi ‏12 KB

  • Can you please tell me how can i change the parameter of Applet using Aspec

    Respect Members
    Can we apply Aspectwerkz on Applet? In our project we have to
    change the method parameters before its execution(Around Advice) , can we do this in applet using Aspectwerkz?
    Can you please tell me how can i change the parameter of Applet using Aspectwerkz or AspectJ ?
    I did it by for Java Application using the AspectJ And Aspectwerkz But not able to do for Applet.
    For Applet I Am setting the parameter in JAVA plug in for Aspectwerkz e.g. -Xdebug -Xrunaspectwerkz -Xbootclasspath & path for xml file in which pointcut is defined.
    If you any Friend working on it or any author who might be helpfull for me please Forward this mail to him/her
    THANKs in Advance
    [email protected]

    hello rodale, what you're seeing is probably a side effect of firefox not being able to save certain preferences into its profile folder.
    go to ''firefox > help > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there delete the file named '''user.js'''.
    in case this didn't solve the issue yet please also refer to [[How to fix preferences that won't save]].

  • Org Management - How can I change the start date of all the org units

    How can I change the start date of all the org unit objects and its relationships at one shot ?  I have created some 100 Org units with the wrong start date. Please suggest.
    Thanks in advance..
    Cheers
    Vijay

    Hello Archana,
    Thanks a lot... This has solved my issue...
    Cheers
    Vijay

  • How can I change screen orientation on my iPad air 2?

    How can I change the scrEen orientation on my new iPad Air 2? I do not see a lock device on the side like my old iPad has.

    Tap the padlock icon in Control Center.

  • How can I change the height of the input box in a...

    How can I change the height of the  input box in a new version of Skype?
    Solved!
    Go to Solution.
    Attachments:
    Skype_input_box.png ‏4 KB

    lucasbgme wrote:
    I've tried 6.1.0.129
    6.1.0.129 version is disabled. All Skype versions older than 6.14 are now retired and can no longer be used. You can try to install the 6.21.0.104 version:
    http://download.skype.com/msi/SkypeSetup_6.21.0.104.msi

  • :-)  How can we change the default file path for Bank file ( dmee ) ?

    Hi All,
    We encounter a problem.
    Electronic bank file ( created after a F110 run ) are created, in an automatic way to the DIR_TEMP directory. ( On the SAP server )
    How can we change the default file path for Bank files ( dmee ) ?
    We'd like to specify another path.
    Thx for your help.
    Erwan

    Hello,
    Make sure that you have created the directory in transaction code AL11 with the help of basis consultants.
    You can link your PC directory to the application server.
    You can maintain the path whether your file needs to get saved in OBPM4 against your DMEE structure example GB_BACS etc.
    If you do not maintain any path in OBPM4, then the file gets saved to temporary directory. If you give the directory path name in OBPM4, then the file gets saved to that directory with numbers 0001, 0002, 0003 etc till it reaches 9999 and reset from the beginning.
    If you give the path as well as file name as ABCD, then the file gets generated to that directory folder with ABCD0001, ABCD0002, ABCD0003 etc. till it reaches ABCD9999 and reset from the beginning.
    Hope this solves your problem.
    Regards,
    Ravi

Maybe you are looking for

  • How to add a dropdown menu to the search box (the 'search this site' box that appears on all subsites)

    Hello there, I know that in the search center you can add search verticals. Then you can configure the search box so it has a drop down menu so you can specify the result source you want to search.  But my question is about the 'search this site' box

  • 15-r006TU Hp Notebook, You do not have the compatible VGA hardware or driver to run youcam

    I recently purchased HP 15 R006TU Note book PC and installed Windows 7 Professional  32 bit on it. I installed all the recommended drivers for VGA but still find it difficult to run You cam on it and recieve an error message "You do not have compatib

  • Need Help in Smartforms - multiple pages

    Hi all, I have developed a Smartform in which i have 2 PAGES. in the First Page : there are many windows .                            Due to space crunch , i can only print a single line / first record alone in the Main       Window. the size of the

  • Proforma Invoice Document Type

    Hi, SAP SD Experts, Iam configuring the billing document type for PROFORMA INVOICE by copying F8 billing Document type. I will be copying as ZF8 form the F8. In that billing document type ZF8, wheather it is necessary to give the document pricing pro

  • Employee overtime hours calculation

    Hello everyone, I need some help with an ABAP code: Records coming in with Employee ID, Date and Worked hours along with some other fields. There will be multiple records with the same Employee id. I would like to have a count for all the hours for t