Double buffer for different components.

Currently I'm working on a project where I have a JPanel inside of a JFrame. The panel takes up a portion of the frame and on other side I have a JButton and two JTextfields. My double buffer method works fine for the JPanel but every time it's repainted the other components in my JFrame look like they need to be buffered. What would be the best way to fix this? I think I just need to re-add the other components whenever the Panel is repainted but I run into a lot of problems if that's the case.

We can't see your code so we'll take your word for it. But if I use Swing components they typically don't 'need buffering' by which I assume you mean that they flicker? So the problem is when you combine your code with Swing so you'll have to debug that yourself or show some code (preferrably as SSCCE).

Similar Messages

  • How can I use the same session for different components acroos application ?

    I am trying to include the components(chat, filesharing, whitboard) in different parts of my application. User should be able to access any of the component. We would like to have a single "ConnectSessionContainer" so that we don't see same user creating a seperate session for each component.
    Is there a better way of dealing with this other than declaring the "ConnectSessionContainer" in the main application ? Is there a way to check if we have a "ConnectSessionContainer" session already established ? Please help . Thanks.

    Thanks for the response. Let me explain what I am trying to do..
    I am trying to create components at different places(screens) of the flex application (not in the same .mxml file).
    Each time I create a component, I am using a "AdobeHSAuthenticator" and "ConnectSessionContainer" which is resulting a new participant in the room.
    For example
    screen1.mxml -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:Roster id="myRoster" width="100%" height="100%" />
            <rtc:Chat id="mychat" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    screen2.mxml (in the same application) -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:SharedWhiteBoard id="wb" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    Here, I open a screen1 and authenticate as UserA and when I try to open screen2 flex is considering me as another user though I am in the same application.
    1) How can I use different components which are in different flex files as a same User ?
    2) Should I place my <rtc:AdobeHSAuthenticator> and <rtc:ConnectSessionContainer> in the main application which calls the screen.mxml?
    3) What is the best way to do it ?
    Thanks for your time !

  • Issues of using same enhancement set for different components

    Hi experts,
    I have an issue when using the same enhancement set(ZCRM_EHSET) for two different components IUICMD & IUICMRD. Component IUICMRD has two views IUICMRD/MainVS & IUICMRD/MeterReading and these views have been copied to Component IUICMD.
    Now, i am getting the following error, when i try to access AccountSearch view of component IUICMD
    Context initialization failed in view IUICMRD/MeterReading of UI Component IUICMD
    An exception has occurredException Class CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICMD_BSPWDCOMPONENT_IMPL is not compatible, for the purposes of assignment, with target type \CLASS=CL_IUICMRD_BSPWDCOMPONENT_IMPL
    Method: CL_IUICMRD_METERREADING_IMPL=>DO_INIT_CONTEXT
    Source Text Row: 10
    Let me know how i can solve this. Is there any precautions that i should have taken before using the same enhancement view for two different components.
    Thanks in advance.......................
    Regards,
    Prabahar

    Hi Bharathy,
    Thank you for the reply which helped me to come close to the solution.
    I hope you reply will solve the second part of my question where i get MOVE_CAST_ERROR.
    My first Question is still unanswered and i request you to provide solution if you have any. I worked on CRM 4.0 and CRM 2007 is new to me.
    My first question is below.
    I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set.  But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
    Is it the std behaviour that views from one component is copied to other when you try to use the same enhancement set? Kindly let me know if you faced similar situation.
    Best regards,
    Prabahar

  • Use a different paint for different components

    Dear all,
    I would really appreciate it if you could help me with an AWT problem that I am facing. I want to develop an application in which several images will be printed into the same frame (i.e. a background image, several images containing objects etc.). But I want the images to be "updated" according to the user's prefereneces (e.g. when he/she presses button A, only the image containing the object A should be redrawn, whilst if he/she presses the button B, only the image containing object B should be repainted). Until this moment, I have implemented a class containing a paint method where I include different if cases in order to repaint the corresponding objects on the user's input. I was wondering if there is any other easier way to achieve my ends (e.g. use different paint functions in the same class, making each paint responsible for the drawing of a certain image, and then call the corresponding paint on the user's input). I would really appreciate if you could help me by giving me some advice and/or some sample source code.
    Thank you in advance,
    Sincerely yours,
    Enginejim

    Hi NK,
    if you use Transparent Data Encryption you can choose between column encryption and tablespace encryption (or a mix)
    and the master key for both can only be stored in the same wallet (in 11gR2 we have a unified master key for both).
    Also an important concept of TDE is that it is tranparent: application users do not need to know any encryption key (passphrase),
    when you are asking that
    need to encrypt certain columns and these columns should be accessible to certain users who know a "key phrase" - and not othersthen you are making a common conceptual mistake, which is to confuse encryption with access control, there's actually a good
    statement about this in the security guide here: Principle 1: Encryption Does Not Solve Access Control Problems
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/data_encryption.htm#i1006159
    So if some users should not have access to certain data, please solve this with access controls in combination with VPD,
    trying to solve it with encryption is simply ill-advised,
    greetings,
    Harm ten Napel
    Edited by: hnapel on Jan 24, 2013 8:14 AM

  • Sample CLASSES for different types of OIM components!!!

    Hi Experts
    Can any one provide me sample classes for different types of OIM components, adapters, scheduled tasks, etc. with your best practices for OIM java development and documentation? It would Help me lot.
    Please let us know Links/Documentations.
    Thanks
    \oim_user

    for schedulers
    1. Create a java class that extends the SchedulerBaseTask (see example below)
    2. Write your business logic
    3. Compile and jar
    4. Place the jar in the ScheduleTask directory in your OIM install
    5. Create a new scheduled task using the OIM developer console
    6. link in the new class into your new scheduled task.
    7. Done!
    Example code for a scheduled task:
    import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
    public class ScheduledtaskExample extends SchedulerBaseTask {
    public void init()
    //this method is run before execute by the scheduler
    public void execute() {
    //is executed by the scheduler
    runMyBusinessLogic();
    private void runMyBusinessLogic(){
    //place your business logic here
    }

  • Compare different project versions for material components?

    hi all,
    is it possible to display and compare different project versions for material components in different COLUMNS? i want to be able to view the data for each version in a different column.. currently i can view the different data per version but it is arranged  by ROW but i want to know if its possible to have different layout/report showing the different versions in separate columns
    Thanks in advance..
    Edited by: Ramesh on Sep 15, 2008 5:58 AM

    hi,
    thanks but this is not the report im looking for.. i wonder if its possible to show a report similar to CNMM or CN53N wherein the different project version data can be displayed side by side as columns?
    again, thanks in advance and regards..

  • Pricing for two different components in a single assembly

    Dear All,
    Issue is regarding if we maintain two different components in a single assembly.
    Say A nut & Screw assembly, Nut value is fixed & screw value differs as the length of screw differs each time.
    Issue is how to maintain the pricing OR price.
    i/ps will be of great helpful & rewarded too.
    With Regards,
    Vijayashree
    Message was edited by:
            Vijayashree nair

    Hi Vijayashree
    Normally you will maintain price ONLY for the final product which you are going to sell.  So in that case, the question of maintaining price for components does not arise.
    However following options are available in SAP
    If you want the system to carry out pricing, inventory control, and delivery processing at main item level, enter <b>ERLA</b> in the <b><i>Item category group field of the Sales: sales org. 2</i></b> screen in the material master record of the finished product. This means that the components only function as text items and are not relevant for delivery. The following graphic shows how a bill of material is processed at main item level.
    If you want the system to carry out pricing, inventory control, and delivery processing at the component level, enter <b>LUMF</b> in the <b><i>Item category group field of the Sales: sales org. 2 screen</i></b> in the material master record of the finished product. In this case, only the components are relevant for delivery. During processing the system automatically creates a delivery group. The latest delivery date among all the components becomes the delivery date for the entire delivery group.
    Thanks
    G. Lakshmipathi

  • What is the best way to double buffer in this case and how to do it....

    currently I have
    public class Frame1 extends JFrame{
    //inside this class I call up circle class, rectangle class, etc.... to draw
    }I am making a "paint" program, and I have individual classes to handle the paint methods heres an example:
    abstract public class Shape {
        public Shape() {
        public abstract void draw(Graphics g, Color c, int x, int y, int width,int height);
    }and then....
    public class Circle extends Shape{
        public Circle() {
        public void draw(Graphics g, Color c, int oldx, int oldy, int newx, int newy) {
            g.setColor(c);
            g.drawOval(Math.min(oldx, newx), Math.min(oldy, newy), Math.abs(oldx - newx), Math.abs(oldy - newy));
    }There is also a Rectangle class, line class.... etc! So my question to you is the following... what is the best way to implement double buffer in the individual classes? And how to do it?? And also.... the drawings should be kept inside a jPanel.
    Any bit of help is much appreciated Thank you!!

    You don't need to do double-buffering. Swing
    components are double-buffered by default. Just make
    sure you override paintComponent() and not paint().
    And even if you had to, why would there be any
    difference in implementation for your classes whether
    they paint to on- or off-screen graphics?I need to override paintComponent()? what if I don't...
    I am using JBuilder2005 and they automate somethings for me. So thats how they did it when they created the application they did this....
    public class Frame1 extends JFrame{
    /*** all my code here***/
    public class Application1 {
        boolean packFrame = false;
         * Construct and show the application.
        public Application1() {
            Frame1 frame = new Frame1();
            // Validate frames that have preset sizes
            // Pack frames that have useful preferred size info, e.g. from their layout
            if (packFrame) {
                frame.pack();
            } else {
                frame.validate();
            // Center the window
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            Dimension frameSize = frame.getSize();
            if (frameSize.height > screenSize.height) {
                frameSize.height = screenSize.height;
            if (frameSize.width > screenSize.width) {
                frameSize.width = screenSize.width;
            frame.setLocation((screenSize.width - frameSize.width) / 2,
                              (screenSize.height - frameSize.height) / 2);
            frame.setVisible(true);
            try {
                jbInit();
            } catch (Exception ex) {
                ex.printStackTrace();
         * Application entry point.
         * @param args String[]
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    try {
                        UIManager.setLookAndFeel(UIManager.
                                                 getSystemLookAndFeelClassName());
                    } catch (Exception exception) {
                        exception.printStackTrace();
                    new Application1();
        private void jbInit() throws Exception {
    }

  • Prevent creation of reservation for selected components on Production order

    Hello all,
    I am aware that the production order reservation creation is dependant on the order type, but is it possible to avoid the reservation creation for few components on the order ? Any techincal way? We want to issue our components to a different batch than the one reserved during the production order creation.
    Any help will be greatly apprciated.
    Thanks,
    Swetha

    Your material is get reserved for Production order as per the Order start date & Order release. What you can do is make the start date of the Production order & release it. If any other production order are already there & you can re set the ATP of that production order.
    Say there is one production order starting 2 days after & your all raw material is blocked for this production order. And the other production is having date after this now you want to give ATP from 1st order to 2nd order. For this 1st make the start date of 2nd prod order before 1st. Then Go to COMAC select both Prod Ord & GO ATP with check reset ATP. You see that ATP is passed from 1st Prd order tp 2nd.
    Regards
    Abhijit Gautam

  • Password security - set permissions for different users

    I am using Abobe Acrobat 9 Pro.
    In the HELP menu, there is a security section in the contents, In the overview, it states the following:
    "Each security method offers a different set of benefits. However, they all allow you to specify encryption algorithms, select the document components to encrypt, and set permissions for different users."
    I would like to know how you can set permissions for different users using Password Security.
    I am the only one in the company who has Acrobat 9 Pro and all others have Adobe Reader 8.
    I have created a PDF file in Acrobat 9, this file is accessible to anyone with Abobe Reader. I would like to set different permissions for different users. For example, i would like certain individuals to print the document and other individuals to not be allowed to print. Can this be acheived using Password Security?
    Many Thanks

    I have created a PDF file in Acrobat 9, this file is accessible to
    anyone with Abobe Reader. I would like to set different permissions for
    different users. For example, i would like certain individuals to print
    the document and other individuals to not be allowed to print. Can this
    be acheived using Password Security?
    No.

  • How to set different nr of e.g dia wp for different op.modes when in instan

    I wander how to set different nr of e.g dia wp for different op.modes when in instance profile the nr of wp is fixed.
    thx in advance

    yes u can create the operation mode by using tcode rz04. the steps are:-
    1) run the tcode :- rz04
    2: select the operation mode then click on create instance (create ur instanace for eg :- day mode and night mode)
    3)click on operation mode select the timetable then select normal operation(24 hr)->assign the modes (means select the time by double click and then right click on that select assign and give the mode eg:- day mode ) same way give another modes.Incase if there is any problem then please let me know.
    4)go to back -> click on instance/operation mode ->select create new instance->give the host name & click on current setting and save it the diaglog window will appear give the operation mode name eg day mode then if you want to increase or decrease the work process by cliking on + and - tab u can change it after that save it the WP authorization some kind of this window will appear click on yes then new instance mode will appear give the instance name eg night mode then save it again dialog window will appear do changes in work process according to ur requriement and click on save again the same wp window will appear if u want to add more operation mode then click yes either no then save it . Now u will able to see ur all operation modes.
    operation mode setup
    http://help.sap.com/saphelp_nw70/helpdata/EN/c4/3a5e76505211d189550000e829fbbd/content.htm
    Operation Mode Switches
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a5f1f505211d189550000e829fbbd/content.htm
    Note 39412 - How many work processes to configure
    cheers
    dEE

  • [svn:fx-trunk] 5170: Round 2 of bug fixes for the Spark skins for Halo components.

    Revision: 5170
    Author: [email protected]
    Date: 2009-03-04 17:50:32 -0800 (Wed, 04 Mar 2009)
    Log Message:
    Round 2 of bug fixes for the Spark skins for Halo components. Thanks to Alex for help with the data grid issues.
    Bugs fixed:
    SDK-19655 - Setting rowCount property on DataGrid causes extra blank row to be displayed
    SDK-19652 - Items in a DataGrid do not line up after scrolling.
    SDK-19605 - disabled Halo ColorPicker with Gumbo skin draws too dark
    SDK-19596 - When you have a single button on an Alert, the left edge looks flatter than the right
    SDK-19585 - Menus compiled with the halo theme in Flex 4 have a different backgroundColor than in Flex 3
    SDK-19665 - Halo List with Gumbo skin doesnt draw the alternating item color all the way to the right edge of the control if VScrollBar is present
    SDK-19651 - odd header rendering issue on Halo DataGrid with Gumbo skin
    QA Notes: The alert layout code was positioning the buttons/text on sub-pixel boundaries if the width or height of the alert was an odd number of pixels. We always snap to pixel boundaries now, but this may cause bitmap compare issues with Alert.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19655
    http://bugs.adobe.com/jira/browse/SDK-19652
    http://bugs.adobe.com/jira/browse/SDK-19605
    http://bugs.adobe.com/jira/browse/SDK-19596
    http://bugs.adobe.com/jira/browse/SDK-19585
    http://bugs.adobe.com/jira/browse/SDK-19665
    http://bugs.adobe.com/jira/browse/SDK-19651
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/alertClasses/AlertForm.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as
    flex/sdk/trunk/frameworks/projects/halo/defaults.css
    flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ColorPickerSkin.mxml

  • Double billing for service period july6th-

    Does anyone else have this issue?...I am being DOUBLE BILLED for service period july6th- august 5th. I already paid my bill online well before the due date, and did get a confirmation number for the payment made. The payment was deducted from my bank. However, today, I logged in to my account to see that I have a huge outstanding balance for the service period july 6th- august5th. The amount of the bill is even different than the bill that I paid for that service period.

    Yes I saw that on my account also. I did notice that the pmt due was past the due date (actually due the same time period as the last bill that was pd). How can that be when it shows my bill was pd in full at that time?  Also in reviewing this so called "bill" I noticed that they raised the rate again even after I changed my services to a newer oneand less expensive one. Going to call them in the morning as I should be billed once a month around the same time each month not twice for something I have already pd.  Also for the past several months internet, tv, phone and actual apps for this company have been very crappy too.  Moving so I'm sure this will not be my service provider after my move. Its getting worse not better.

  • Transport request : tp check buffer for already imported requests

    Hi,
    I want to put a transport request on my prod. There was no problem on the quality. But on the prod, i have the message :
    "tp check buffer for already imported requests"
    and nothing appends.
    Do you have any idea how i can unlock this transport request ?
    Tx in advance.

    Hi,
    Use table E070. and display the Transport reqeust and double click on the request row.and in command prompt enter ' /h '. change status as unreleased.
    Regards
    Jana

  • One billing document for multiple deliveries which are for different PO

    Hi All,
    I have a scenario where i need to create one billing document for multiple deliveries.
    Payer is same
    Ship-to is same
    PGI date different
    Sales area is one
    PO different
    In standard SAP it will create seperate billing document for different PO
    Please advice if there is a different copy routine which will combine all the POs in one billing document.

    Hi Mr. Bhat,
    Go to VTFL --> Select the combination of your delivery type and billing type --> Double click at Item(Left side) --> Select your item category --> Click at details
    In the feild "Data VBRK/VBRP" --> I think the routine assigned is 601 (Inv.split - PO Num.) --> Now change it to 3 (Single invoice)
    Then try your process, Hope it helps.
    Regards,
    MT

Maybe you are looking for