How to change  panel's content ??

hi
i just tried to remove the older contents and repaint the panel then add the new contents ,but this try didnt work.
what do you think?
how can i change the contents?

After you add or remove components from a panel you need to revalidate() the panel.
Or, maybe a Card Layout is a better approach:
http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html

Similar Messages

  • How to change table of content font in captivate 6

    Hi There,
    Can somebody please suggest me how to change table of Content Text font English to Arabic in Captivate 6 and which font supports Arabic language.
    Please refer below image, highlighted text font should be changed.
    Looking forward for help.
    Thanks,
    Srikanth

    The weird sliding navigation is Apples pride and joy!
    That TOC allows you to slide between chapters, sections and pages.
    iBooks Authjor was designed to do what it does and what Apple wanted it to do.
    Some things can be changed during the books production,  but the " weird navigation"  is not something you can change to do what you want.
    iBooks Author is does not produce ePubs.. at least not as "ePub" is known from Pages, inDesign etc,.
    If you want what is available in ePubs.. then iBooks Author is not the application to produce it.
    You could drag a section page above chapter on and create an index type page using book marks for links - but whats the point? 
    People using iPads and familiar with iBooksAuthors special way of book presentation.. are quite happy its so easy to use.

  • How to change "Select a content category " text

    Hi folks,
    I really appreciate the support community, as I did deeper and deeper into the produce I've seen the same handful of names pop up across the board! Thanks for all your help!
    I was wondering how to change the "Select a content category>>" text that displays in a traditional skin next to your content categories upon generation. Specifically this:
    Is there a way to edit the text? Mine are focused on government levels and I'd like to make it easier for users.
    Thanks! Happy New Year!

    Hi there
    I believe you do it as follows:
    Click File > Project Settings.
    Ensure the General tab has focus.
    Click the Advanced... button.
    Click the LNG File tab.
    Scroll the list to the [WebHelp] section.
    Locate the item that reads: ContentCategoryList=Select a content category.
    Click on it to select it.
    Click the Edit button.
    Change the text following the equals sign it to what you want it to read.
    ContentCategoryList=Change this text
    Press Enter to accept the change.
    Click OK to dismiss the dialogs.
    Generate and test!
    Hope this helps... Rick

  • Change panel's content?

    Hi, All!
    I have JPanel (pC) with other JPanel(p1) and JButton. I want to change p1 to p2 on click button, but I don't see expected result.
    class testChange extends JFrame implements ActionListener {
         JPanel p1=new JPanel(),
              p2=new JPanel(),
              p3=new JPanel(),
              pC=new JPanel();
         static int count=0;
         testChange () {
              p1.add(new JLabel("Panel 1"));
              p2.add(new JLabel("Panel 2"));
              p3.add(new JLabel("Panel 3"));
              JPanel pC=new JPanel(new GridLayout(3,0));
              JButton b=new JButton("Next");
              b.addActionListener (this);
              pC.add(b);
              getContentPane().add(pC);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              pack();
              setVisible(true);
         public void actionPerformed (ActionEvent e) {
              switch (count) {
                   case 0:
                        pC.add(p1);
                        pC.repaint();
                        pC.validate();
                        count++;
                        break;
                   case 1:
                        pC.remove(p1);
                        pC.add(p2);
                        pC.repaint();
                        pC.validate();
                        count++;
              break;
                   case 2:
                        pC.remove(p2);
                        pC.add(p3);
                        pC.repaint();
                        pC.validate();
                        count++;
              break;
                   case 3:
                        pC.remove(p3);
                        pC.add(p1);
                        pC.repaint();
                        pC.validate();
                        count=0;
              break;
    public static void main (String [] argv) {
              new testChange();
    Who can hint me why after click button don't change panels (p1->p2->p3->p1) on JPanel pC?
    Thanks.

    The CardLayout looks like just the thing you need.
    Check http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html for examples.

  • My iphone 4 back side names and logo light how to change panel

    my iphone 4 back side names and logo light how to change panel

    The first time an iPhone is connected to iTunes that is used to sync with another iPhone or iOS device, you are prompted to transfer the backup for the other iPhone or iOS device or to set up the iPhone as a new iPhone.
    The former does as provided - it transfers the backup for the other iPhone or iOS device to the iPhone replacing all data on the iPhone that is included with the backup being transferred. The latter does nothing allowing you to make your various selections for the iPhone sync preferences with iTunes.
    This is designed to be done right away with a new iPhone.
    If you don't have a backup for the iPhone with iTunes on your computer and don't have an iCloud backup that hasn't been updated since choosing to transfer the backup for your iPod Touch to the iPhone, the data that was on the iPhone is gone.

  • How to change panel title

    I have a master/detail view based on code generated by the
    ColdFusion Application wizard. When a user selects a record in the
    top panel, the details get displayed in the bottom panel.
    What I want to do is to have the title of the bottom panel
    dynamically display one of the fields in the record (the patient's
    name), i.e., whenever a different record is selected the panel
    title should change.
    I tried giving the panel an ID (pendingDetailPanel). then
    referring to it in the file which contains the contents of the
    panel like this:
    <mx:Script >
    <![CDATA[
    pendingDetailPanel.title="{this.detailObject.CURR_NAME}";
    ]]>
    </mx:Script>
    But that gives me the following error:
    1120: Access of undefined property pendingDetailPanel.
    How should I go about it?
    Thanks

    First, you cannot do assignments like that outside of a
    script. Get in the habit of doing all work inside of an initialize
    or creationComplete handler. Only declare instance (global)
    variables outside of a function
    Next, you cannot use binding braces in AS.
    What you want to do is have the select operation set the
    value of a bindable instance variable:
    [Bindable] var _sPatientName:String = "";
    private function onChangePatient(oEvent:Event):void {
    _sPatientName = oEvent.target.selectedItem.patientName;
    And in the panel:
    <mx:Panel title="{_sPatientName }" .../>
    Tracy

  • How to change the Button content as CamelCasing in Windows phone 8.1 Message dialog

    This was already raised in
    Stack over flow, While showing the native Message dialog in Windows phone, i cant change the captions as camel case of command buttons. Is this a bug with windows phone 8.1(WinRT) are is there any workaround to fix this issue?
    Sankar

    This isn't recommended and violates the system style.
    If you want a custom dialog you need to use a different control. The MessageDialog always lower cases the buttons to match the system style and is not generally customizable.
    If you use a ContentDialog you can customize it fairly extensively, and it doesn't try to fix the case of its buttons. You'll probably want to create your own ContentDialog class (there's a template under Add.New Item...) with your desired contents, but here's
    a quick content-free example:
    ContentDialog cd = new ContentDialog();
    cd.Title = "My Title";
    cd.PrimaryButtonText = "CoNtInUe";
    cd.SecondaryButtonText = "sToP";
    await cd.ShowAsync();
    Also note that the guidelines
    for message dialogs suggest using clear and specific verbs rather than generic OK/Cancel.

  • How to change property file contents during run time?

    Hi everyone. First post so go easy on me please.
    I have a couple of properties that I want to read from a from a file. To achieve this I simply use:
    ResourceBundle.getBundle("my.package.MyItems").getString("MyProperty");
    This works like a wonder. The problem is, i want to change the property "MyProperty" during runtime. I've found the properties file (MyItems.properties) inside weblogic, but if a change its contents it does not reflect in the application.
    I can come up with a couple of justifications:
    * I'm not looking in the right folder/changing the wrong file in the server;
    * Weblogic caches the properties file, meaning that I have to redeploy the project (defeating the purpose of actually having a properties file).
    Can anyone help with this one?
    [EDIT] Forgot important info:
    * JDeveloper 11.1.1.4
    * Weblogic 11.3 (not 100% sure)
    * Both JDev and WebLogic running on Windows 7 64 bits
    Thank you in advance!
    Best Regards
    J. Peixoto
    Edited by: 868634 on Jul 12, 2011 9:37 AM
    Edited by: 868634 on Jul 12, 2011 10:21 AM
    JDeveloper 11.1.1.4, not 3

    I tried it all.
    Just an explanation of my context.
    I have 1 application with 2 projects in it. First project is called "CommonUI_ViewController" and the second one "FO_ViewController".
    The properties file I'm trying to change is located inside "CommonUI_ViewController", in package "PropertiesConfig" and the file is called "PhaseListener.properties".
    "FO_ViewController" is dependent on "CommonUI_ViewController". When I run "FO_ViewController" the integrated weblogic server log shows this (among other things):
    [10:25:55 AM] Wrote Web Application Module to D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\FO_ViewControllerWebApp.war
    [10:25:57 AM] Wrote Web Application Module to D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\CommonUI_ViewControllerWebApp.war
    Note: both lines above point to folders. "FO_ViewControllerWebApp.war" and "CommonUI_ViewControllerWebApp.war" are NOT war files, but folders that have that name.
    I tried changing the properties file in the following locations:
    * D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\FO_ViewControllerWebApp.war\WEB-INF\lib\adflibSPVCommonUI.jar > PropertiesConfig\PhaseListener.properties;
    * D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\CommonUI_ViewControllerWebApp.war\WEB-INF\lib\adflibSPVCommonUI.jar > PropertiesConfig\PhaseListener.properties;
    * D:\JDeveloper\dump\system11.1.1.4.37.59.23\o.j2ee\drs\SPV_BPM\CommonUI_ViewControllerWebApp.war\WEB-INF\classes\PropertiesConfig\PhaseListener.properties (no need to open any jar/war to get to this one).
    I changed all these files with different values but no change was shown in the application (using the method in the previous post).
    I believe that I'm still doing something wrong :/
    Thank you for your help so far vinod_t_krishnan!
    J. Peixoto

  • JCheckBox - how to change colour of content

    I have a JTable which has a JCheckBox in the first column. In certain cases I want this checkbox to be disabled. I am using a custom renderer (extends JCheckBox implements TableCellRenderer) in which I can set the background and foreground colours - but this doesn't allow me to set the colour of the area in the checkbox where the tick appears (i.e. to make the checkbox appear disabled).
    I am overriding isCellEditable() in a custom table model which correctly disallows editing of the checkboxes I want disabled.
    Does anyone know how to set the colour of the central area of a JCheckBox ?

    Since you are already using a custom renderer: Why don' you try
    public Component getTableCellRendererComponent(JTable table,
    Object value,
    boolean isSelected,
    boolean hasFocus,
    int row,
    int column) {
    /* change this to whatever condition you have... */
    if (row == 1 && column ==2) {
    setEnabled(false);
    else {
    setEnabled(true);
    This will get you the default look and feel of disabled checkbuttons.
    Otherwise, if you really want a different look for the checkbox, you have to ovverride the correspondig paint method for checkboxes.

  • How to change "Display column content" on a uploaded file link?

    Hi,
    I based my portal form on a table with a field of type BLOB. I used this to upload any type of file. I have no problem in uploading my file, when I query the information, a link comes up with the words "Display column content". I can click on that link to see the content of my file. But is there a way to change the wording "Display column content"?
    null

    Yoy can change the link by editing the generated package

  • How to change panel image

    Hi,
    While I was going through the basic panel sample, I want to change the icon of this panel same as what had been done for the SWATCHES panel. What will the steps for this. Any suggestion for this will be greatly appreciated.
    Thanks in anticipation!

    in resource PanelList 8th and 9th argument is responsible for displaying that icon.
    8th agument must be an Rsrc ID for 23x23 pixel PNG image
    9th agument should be your Plugin ID
    Regards
    Bartek

  • How to change default 'ERROR: Content not available' error message?

    Does anyone know where this string can be replaced? Is it located in a properties file somewhere or is it hardcoded into the Desktop servlet?
    -thanks
    -matt

    Depending upon the container you use all strings are available under:
    /opt/SUNWps/web-apps/https-yoda.isdintegration.com/portal/WEB-INF/classes
    HTH

  • How to change BI Content InfoObject (move Lowercase letter mark) and transp

    Hello,
    1. Do you know how to change the business content infoObject by moving the mark "lowercase letter" for the characteristic (no master data) so that i can transport it in PROD.
    When i tried to change it, the message i recieve is, that i have to delete the SID table. And when i want to delete the SID table, i reciéve the message that, the table content data, and that the data in the table have first to be deleted. And also, i cannot delete data in the SID table.
    Actually, and by trying to resolve the problem, i see that the infoObject is NOW on "REVISED",....
    2. Normally, i have to change the infoObject by removing the "lowercase letter Mark", so that by the activation, it can be transferred to a transport order i created in Solution manager PROD. But the infopackage and transformation and datasource i created before did not, give a posssibility to save this in the transport order.
    3. How can i change the activated Business Content infoObject (now on REVISED) and transfer it to the transport order i created in Solution manager Prod. For example, i created a logical system in SPRO and could transfer it to the transport order, but in RSA1, by creating the objects, no dialog to transfer the Z-Bi created objects in transport ORDER is displayed.
    My most important problem here is the change for the INFOOBJECT, save the change in transport order, and transport it in productiv.
    4. One more question, is to know what happen with old request data in PROD infocube, after i transport the change infoObject in PROD?
    Do you know how to resolve the problem?
    Kind regards and many thank for helping
    Arnaud

    Hi,
    Did you try Delete Master Data on the right click of your Infoobject? Since your infoobject is already loaded with data, it does not allow you to change the definition. You need to delete data completely from the infoobject and change the lower case letter.
    You can only transport the Active version but not revised version.
    Try deleting tables in SE14 t-code.
    Regards,
    Suman

  • Changing the EMail content for a message either failure or success

    Hi All,
    I  need some information about how to change the Email content which was sent by the system which was triggered during process chain. we want to get  the subject of the message rather than all the details which are part of default messages like
    Log for This Process:
    Log of Respective Background Job:
    and others.
    Since we are trying to send the message to Cell Phones  , just need a short message either sucess or failure.
    Is there any exit or methid to override this message to a custom message.
    Any help in this regard is appriciated.
    Thanks on advance.
    sree

    Hi,
    I know its a very old post, but I'm facing this issue now.. It would be great if you guide me.
    I'm getting the following error
    "Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the reported exception is: Transaction Rolledback.: weblogic.transaction.internal.TimedOutException: Transaction timed out after 303 seconds
    BEA1-01502373650AE964512F
    Thanks,
    Girish.

  • Changing the email Content for the Contact Person Creation

    Dear All
    We are on SRM 7.0. We need to change he mail content that goes to the Contact Persons of Vendors. These contact Persons are created in SRM for bidding.
    How to change the email content?.
    Thanks in Advance.
    velu

    Hi,
    Pl. follow the following steps :-
    1. Create smartforms containing your own content to be sent to contact persons.
    2. Implement the BADI : BBP_OUTPUT_CHANGE_SF.
    3. There is one interface(method) in the above BADI e.g. :change_forms.  You have to call smart forms in this interface.
    I hope you may achieve your task by following the above steps.
    regards
    HARSHB

Maybe you are looking for

  • Frown iPod Error Message

    I'll get right to it. I was listening to a podcast (Dane Cook Baby!) when my iPod suddenly froze. All input from me was ignored. Instinctivly, I hit select and menu to reset it. The black screen with the apple came up, but after a few seconds it chan

  • I have Mac Book Pro osx version 10.6.8 if I download Lion will it upgrade my safari?

    I have Mac Book Pro osx version 10.6.8 if I download Lion will it upgrade my Safari? Thanks

  • Help in wriring an sql

    Hi gurus, just wondering whether this sql works fine. Insert into contact_history@demo (narrative) select substrb(narrative,1,4000) from CONTACT_HISTORY where I in (select i from missing_ivalue) where demo is a dblink for source and the target databa

  • How to identify current Liveview firmware version?

    Got one of these recently and started out fine but as I pile more plugins on, both phone and liveview are starting to struggle. Was wondering if the update would improve things, but obviously no point applying if I already have it. So how do I know w

  • Galaxy s4 usb copy mp3 to SD Card

    Since the last Android update, I have not been able to copy MP3 files from my PC to the SD card of my phone. It appears to copy, but the music player either won't play it or it plays garbled.  I have done this without the slightest problem in the pas