Refresh queue problem

Hello:
I have a problem, when I create a notificacion (that  manages data object Y03_SOL_TR), in the tablet does not update the information created (r3 key, etc.) until I disable and then enable the distribution rule corresponding. In R/3 server the data is created suscesfully.
The data object Y03_SOL_TR has a node assciation  with node Y01_ORD_TR (that manages orders of maintenance). When I create an unrelated the notificacion is successfully created, the problem is when I create a notification that relates to order, in this case I need to deactivate and activate the corresponding rule.
DO_SYNC_EXTRACT parameter is 'X' for both data objetct, and they have no item level filter.
My version is 7.10 SP11.
How I can solve it?
Thanks and kind regards.
Edited by: Julian Moreno Luna on May 17, 2011 12:50 PM

Hi Julian,
Now I understood your requirement correctly.
So you have a notification object which has order number as one of the filelds and is associated to order number in Order data object. 
Now your problem is when you create both of them on the device along with association, then you are not able to get the notification back to the device. So I see the following reason in your case:
May be you are creating notificaiton first on the device, then order and then associating them. But you need to change the sequence. You need to create order first and then create a notification and then also associate Orders Local Synckey in the association key of Notification. That way DOE ensures that Order is created first and then Notification.
  The reason in this case could be, when you created dependency rule, you might have selected option "check for completeness". In this case, what will happen is when DOE tries to send notification to device it also check if the related order is present in DOE. If not found then it will not send Notificaiton. So if you create Order first and then notification, then this problem will not arise.
Coming to your other question, Dependency rule is between 2 different data objects to say when a leading object flows to device you want to send the following object also. Where as Node Level Filter is within the same data object, if you want to create an Item level filter to restrict certain Items of the same header. Normally you get all child/items related to that header but you can control them using Node/Item level filter.
You can also refer one of my older posts which explains item level filter and some other concepts.
Re: Distribution Model
Best Regards,
Siva.
Edited by: Siva RamaKrishnaJ on May 19, 2011 9:11 AM

Similar Messages

  • What is Event queue problem?

    HI,
    I have come across JSF document, they mentioned that Event queue
    Problem ins SUN's JSF implementation. what is that?

    You're going to have to be a little more specific.

  • OSB 10.3 JMS queue problem: JMSCorrelationID is null

    Hi everybody,
    I am new to OSB/ALSB, and need some help regarding JMS message handling. I am trying to put some input data into a JMS queue( say, reqQueue) and to get the response from another JMS queue(say resQueue). My architecture is:
    OSB proxy service->OSB business service->JMS queue(reqQueue)->BPEL process(through JMS adapter) ->JMS queue(resQueue)->OSB business service->OSB proxy service.
    I have used JMSCorrelationID for response correlation. but my problem is that when I am trying to test the service from proxy service, I am getting the JMSCorrelationId as null in BPEL process as well as in the weblogic server JMS log, and as I am getting the CorrelationId as null, I am unable to correlate the response, so I am not getting any response.
    This is urgent, please help me as soon as possible as possible.
    Thanks in advance.
    Joy

    Sovled it..
    OSB 10.3 JMS queue problem: JMSCorrelationID is null

  • Insert and then show the result and refresh page problem

    hi all,
    I collect the form value and put them into db, and then display this student 's inform out from db including the one we just submit, first I do it on this way
      insertpayment(UserId, FeeType, DuteDate, OfficerReason, OtherReason, CompleteDate,
                            InterviewDate, ApprovalDate,PaymentYear);
                   studentRecords= getFound(UserId);
                     userSession.setAttribute("studentRecords", studentRecords);
                     RequestDispatcher disp;
                   // disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/   studentRecords= getFound(UserId);");
                     disp = getServletContext().getRequestDispatcher("/showPayment");
                    disp.forward(req, res); then whenever I refresh my showRecords.jsp" I call the insert function. THAT IS HORRIABLE.
    I try to move the studentRecords= getFound(UserId); to my showPayment servlet and then forward the result to showRecords.jsp, but I alwarys get error
    PWC4011: Unable to set request character encoding to UTF-8 from context /report, because request parameters have already been read, or ServletRequest.getReader() has already been called
    How should I handle this kind of problem??

    Karan, thank you for the link, i read a few articles, I only get the sample part part use res.sendRedirect("/myfolder/showPayment"); in my insert servlet and use forward to display the page
    userSession.setAttribute("studentRecords", studentRecords);
                  RequestDispatcher disp;
                  disp = getServletContext().getRequestDispatcher("/WEB-INF/jsp/secure/admin/showRecords.jsp");
                   disp.forward(req, res);   
    this solute the refresh page problem, but bring the new problem I can't use the following way to disable the back button. not the perter solution
    maybe I did not understand PRC more advice!!
    response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility

  • Cache/Queue Problem while executing scenario

    Hi All,
    Our server is up and running, but there is a problem <b>every</b> time we try to execute a scenario:
    1. The SXI cache and the CPA cache have to be refreshed after making any changes to the objects
    2. The queues have to be de-registered, then re-registered in sxmb_adm
    Has anyone faced this problem before? Any suggestions as to how to solve this?
    Regards,
    Puloma.

    Hi,
    this is not a normal behaviour. Have a look at the cache notifications in the integration directory and check whether you receive some hint. Eventually there might be problems with the connectivity to the adapter engine or user xidiruser. Have a look at the following notes
    741214  and 780747 and the HOw To Cache guide which you can find under http://service.sap.com/xi
    Hope this helps, Regards, Jaime

  • PowerMac G4 533DA & HDTV - video resolution / refresh rate problem

    Hope someone can help, I need to access more resolution / refresh rates than I currently get in the Leopard display control:
    I have a PowerMac G4 533 Digital Audio running Leopard 10.5.8 (unsupported).  It has an upgraded AGP videocard, a ( flashed PC - RV200 chipset) Radeon 7500 w/ 64MB and a DVI output w/ a VGA adapter.  I have used this Mac perfectly with my 19" widescreen Samsung SyncMaster 940BW, at a resolution of 1440 x 900 / 60Hz / millions of colors.  This monitor is actually for my MacPro, but I used it for the G4 to set it up.
    I  moved it to my living room to use as a basic HTPC.  Since it runs Leopard, it has up to date VLC, Quicktime for video files and a working Superdrive for movies.  I don't expect it to play anything more than 480p properly, I think that was the best I got on YouTube.  But if I have a DVD ripped to DivX or MP4 it plays them fine on the Samsung monitor.
    I connected it to my Viewsonic N3760w 37" 1080 HDTV.  It turns on, gray screen w/ Apple and gives me a working desktop.  The problem is that I cannot get it to give me the correct resolution and more importantly it seem to have the wrong refresh rate.  It is currently set at 1280 x 768 / 60Hz / millions of colors.  The screen give me like a small line slowly moving up across screen, higher refresh rates only make it movie faster up the screen.
    According to my Viewsonic, these are the resolutions for computer using the VGA plug on the tv:
    PC - 1360x768 (preferred) , 1024x768, 1280x768
    Mac G3/G4/G5 - up to 1280 x 1024, 1280x720 (preferred)
    Please note all of these are lower resolution than my Samsung monitor.  My Viewsonic also has on screen adjustment of " phase " and " frequency " as well as the usual color, contrast, etc available.  Is there a 3rd party app to manually adjust the resoluion and refresh rate?  I have seen Windows programs, does one exist for Mac OS X?
    TIA, sorry for the long post

    My Viewsonic also connected by VGA, no problem.
    I wish I knew more. I checked out the app you did a trial of. I noticed this statement on their web site:  Quote
    "After rebooting monitor stays blank
    For some reason your monitor does not accept the installed frequency. SWITCH IT OFF!"
    This is the type of statement that would 'worry me.' -- having the phrase: SWITCH IT OFF! all in caps seems to imply a possibility of damage...which I mentioned in my initial post. (and the site goes on to talk about how you should even then connect another monitor to change the settings you've made that were not accepted).
    As I said, though, I wish I knew more for sure about this. It seems that you not only did the obvious of checking System Peferences>Display, but also realize the Viewsonic has buttons that can influence it's screen image, most about position of the image on the screen but at least one item about resolution on mine. (under Setup Mode)
    For what it's worth, my Viewsonic is about 6 years old now, still fine, and has eight (8) possible resolutions shown in System Preferences.
    Re: Your numbers.
    It is currently set at 1280 x 768 / 60Hz / millions of colors. 
    PC - 1360x768 (preferred) , 1024x768, 1280x768
    Mac G3/G4/G5 - up to 1280 x 1024, 1280x720 (preferred)
    If you're only talking about a difference of 1280 x 768 and G4 1280 x 1024, perhaps just stretching the picture using the Viewsonic buttons is the way to go.
    Or, from the numbers, perhaps the G4 just wants a resolution closest to it's preferred state!?
    Anyhow, good luck.

  • JMS queue problem integrating with TIBCO

    Hi all!
    We have several communication channels between XI 3.0 (SP21) and TIBCO via JMS queues. All of them are working fine except  one. This problem only happens in development and quality systems with SP21, production has SP17 and doesn't have this error on the same communication channel.
    We are getting the following error in communication channel details...
    27-03-2008 16:32:21   XI message ID corresponding to the JMS message ID 'ID:EMS-QUALITY.14C46ECF3303EC:61' has the value 'null', with the ID: prefix removed+
    27-03-2008 16:32:21   XI message ID corresponding to JMS message with ID 'ID:EMS-QUALITY.14C46ECF3303EC:61' will be created with same value as JMSCorrelationID with value 'null'+
    27-03-2008 16:32:20   Error while processing message 'null';  detailed error description: com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Error in converting Binary message <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_PedCarga_GE xmlns:ns0="http://pt.galp.is-oil.ec">    <Partner>        <ZIDIF>62</ZIDIF>    </Partner>    <Controle>        <Nr_Envio>29183049</Nr_Envio>        <Dt_envio>20080229</Dt_envio>        <Tipo_Carga>CPAT</Tipo_Carga>        <Operador>230</Operador>    </Controle>    <PedCarga>        <FRETE>            <Tipo_Registo>N</Tipo_Registo>            <Inst_Carreg>ES41</Inst_Carreg>            <Data_Execucao>20080228</Data_Execucao>            <Resp_Transporte>13</Resp_Transporte>            <Transporte>          </Transporte>            <Transportador>1700</Transportador>            <Ref_Externa_head>2008022931859</Ref_Externa_head>            <Gera_Docs>X</Gera_Docs>            <Imprim_Docs>X</Imprim_Docs>            <Imprim_Ordem_Carreg>X</Imprim_Ordem_Carreg>            <Confirm_Autom>X</Confirm_Autom>            <Operador>230</Operador>        </FRETE>        <ENTREGA>            <Tipo_Destinatario>1</Tipo_Destinatario>            <Local_Entrega>14018</Local_Entrega>            <Cod_Produto>GOA []</Cod_Produto>            <Quantidade>05100</Quantidade>            <Ref_Externa_Item>01737307470601</Ref_Externa_Item>            <Regime_Fiscal>N</Regime_Fiscal>        </ENTREGA>        <ENTREGA>            <Tipo_Destinatario>1</Tipo_Destinatario>            <Local_Entrega>14018</Local_Entrega>            <Cod_Produto>GOC []</Cod_Produto>            <Quantidade>13300</Quantidade>            <Ref_Externa_Item>02737307470602</Ref_Externa_Item>            <Regime_Fiscal>R</Regime_Fiscal>        </ENTREGA>    </PedCarga> </ns0:MT_PedCarga_GE> to XI message for message: null: InvalidParamException: Invalid message id: com.sap.guid.GUIDFormatException+
    Any clues?
    Regards,
    Fernando Figueiredo

    We changed the conversation ID from Message ID to Correlation ID.

  • JTable Awt -Event Queue problem

    Hi
    I've been looking everywhere for a solution to this, but can't seem to find one. I've got a JTable with an underlying model that is being continuously updated (every 100ms or so). Whenever I try to sort the JTable using TableRowSorter while the model is being added to I get
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.Vector.elementAt(Vector.java:430)
    at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
    I don't understand this as in my custom table model I've added the fireTableChanged etc. in a SwingUtilities.invokeLater( ...) thread.
    Has anyone else encountered this problem and found a solution? I'd be really grateful!
    Thanks

    Hi
    Thanks for responding, I'm still a little confused. I've posted the code below for both the JTable and the TableModel. The tablemodel simply gets values from a vector which is being dynamically updated from outside the table - but whenever the vector is added to
    The problem seems to only occur when I press the column header to sort the tables during the updates. My understanding is that the method refresh() should create a threadsafe update of the table - but somehow it refreshes the binding to the tablemodel and during this time the table returns a defaulttablemodel that doesn't correspond to the actual underlying data....I thought this kind of problem would be solved by invoking all updates on the swing event thread, but it seems to still produce the effect and I'm stumped!!
    (The data is in an array called turns, and the addElement() in another class calls the refresh() method)
    many thanks, in the hope that someone has the kindness and and benevolence to wade through the following code!
    public class JContiguousTurnsListTable extends JTable {
    private JContiguousTurnsListTableModel jctltm;
    public JContiguousTurnsListTable(Conversation c) {
    super();
    jctltm = new JContiguousTurnsListTableModel(this,c);
    this.setModel(jctltm);
    setSize();
    //this.setAutoResizeMode(AUTO_RESIZE_ALL_COLUMNS);
    //this.setAutoCreateRowSorter(true);
    TableRowSorter <TableModel> sorter = new TableRowSorter <TableModel>(jctltm);
    //sorter.setSortsOnUpdates(true);
    this.setRowSorter(sorter);
    System.err.println("Setting up ");
    private void setSize(){
    TableColumn column = null;
    for (int i = 0; i <11; i++) {
    column = this.getColumnModel().getColumn(i);
    if(i==1||i==2||i==3||i==4||i==8||i==9){
    column.setPreferredWidth(50);
    else if (i==0||i==5){
    column.setPreferredWidth(180);
    else if (i == 6) {
    column.setPreferredWidth(150);
    else if(i==10){
    column.setPreferredWidth(250);
    else
    column.setPreferredWidth(100);
    //column.setPreferredWidth(100);
    //column.setMinWidth(100);
    //column.setMaxWidth(100);
    public String getColumnName(int column){
    return jctltm.getColumnName(column);
    public void refresh(){
    this.jctltm.refresh();
    ----------------And the table model:
    public class JContiguousTurnsListTableModel extends AbstractTableModel {
    private Conversation c;
    public JContiguousTurnsListTableModel(JTable jt,Conversation c) {
    super();
    this.c=c;
    public void refresh(){
    //System.out.println("Refresh");
    SwingUtilities.invokeLater(new Runnable(){public void run(){fireTableDataChanged();fireTableStructureChanged();} });
    public boolean isCellEditable(int x, int y){
    return false;
    public String getColumnName(int column){
    if(column==0){
    return "Sender";
    else if(column==1){
    return "Onset";
    else if (column==2){
    return "Enter";
    else if(column ==3){
    return "E - O";
    else if(column ==4){
    return "Speed";
    else if(column ==5){
    return "Spoof Orig.";
    else if(column ==6){
    return "Text";
    else if(column ==7){
    return "Recipients";
    else if(column ==8){
    return "Blocked";
    else if(column ==9){
    return "Dels";
    else if(column ==10){
    return "TaggedText";
    else if(column ==11){
    return "ContgNo";
    else if(column ==12){
    return "Inconcistency";
    else{
    return " ";
    public Object getValueAt(int x, int y){
    try{ 
    //System.out.println("GET VALUE AT "+x+" "+y);
    Vector turns = c.getContiguousTurns();
    if(x>=turns.size())return " ";
    ContiguousTurn t = (ContiguousTurn)turns.elementAt(x);
    if(y==0){
    return t.getSender().getUsername();
    else if(y==1){
    return t.getTypingOnset();
    else if(y==2){
    return t.getTypingReturnPressed();
    else if(y==3){
    return t.getTypingReturnPressed()-t.getTypingOnset();
    else if(y==4){
    long typingtime = t.getTypingReturnPressed()-t.getTypingOnset();
    if(typingtime<=0)return 0;
    return ((long)t.getTextString().length())/typingtime;
    else if(y==5){
    return t.getApparentSender().getUsername();
    else if(y==6){
    return t.getTextString();
    else if(y==7){
    //System.out.println("GETTINGRECIP1");
    Vector v = t.getRecipients();
    String names ="";
    // System.out.println("GETTINGRECIP3");
    for(int i=0;i<v.size();i++){
    Conversant c = (Conversant)v.elementAt(i);
    // System.out.println("GETTINGRECIP4");
    names = names+", "+c.getUsername();
    // System.out.println("GETTINGRECIP5");
    return names;
    else if (y==8){
    if (t.getTypingWasBlockedDuringTyping())return "BLOCKED";
    return "OK";
    else if(y==9){
    return t.getNumberOfDeletes();
    else if(y==10){
    String returnText="";
    Vector v = t.getWordsAsLexicalEntries();
    for(int i=0;i<v.size();i++){
    LexiconEntry lxe= (LexiconEntry)v.elementAt(i);
    returnText = returnText+lxe.getWord()+" ("+lxe.getPartOfSpeech()+") ";
    return returnText;
    else if(y==11){
    return t.getNumberOfTurns();
    else if(y==12){
    // System.out.println("CONTIGUOUS1");
    String value ="";
    boolean hasSameRecipients = t.getTurnsHaveSameRecipients();
    boolean hasSameApparentOrigin = t.getTurnsHaveSameApparentOrigin();
    if (hasSameRecipients&hasSameApparentOrigin){
    value = "OK";
    else if (hasSameRecipients&!hasSameApparentOrigin){
    value = "Diff. O";
    else if(!hasSameRecipients&hasSameApparentOrigin){
    value = "Diff. Recip";
    else {
    value = "Diff O&R";
    //System.out.println("CONTIGUOUS2");
    return value;
    return " ";
    }catch (Exception e){
    return "UI ERROR";
    public Class getColumnClass(int column) {
    Class returnValue;
    if ((column >= 0) && (column < getColumnCount())) {
    returnValue = getValueAt(0, column).getClass();
    } else {
    returnValue = Object.class;
    return returnValue;
    public int getRowCount(){
    return this.c.getContiguousTurns().size();
    public int getColumnCount(){
    return 13;
    }

  • Refresh rate problem with external 20 inch acer

    I am having issues hooking up an external montior via the dvi to vga dongle. The refresh rate seems shaky and the only refresh rate the computer gives me is 59.9 ?
    I recently had my logic board replaced and am not sure if this was an issue prior.
    thanks in advance.

    I've isolated the issue only happening when using taxing apps like photoshop. Seems to happen when the fans kick in.
    could this be an interference problem or possibly heat isssue?

  • Integration Sap PI - JCAPS through JMS queue problem

    Hi to all,
    we have to send data through Sap PI 7.1 to an application server Sun Seebeyond JCAPS via JNDI JMS.
    We created a Simple Java Test Class that sends data to Jcaps Queues using stcms libraries suggested from Sun.
    I already tested this code on Eclipse, and it works fine. (Jcaps receive correctly messages sent from Java Class)
    Using JMS Communication Channel on Sap PI with same settings used on Java Class (Queue Connection Factory, Initial Context Factory, URL, Queue Name) and deployed the same stcms libraries on PI,
    Jcaps doesn't receive any message. In ABAP Monitor and Communication Channel Monitor we don't check any error: infact in CC Monitor a "Succesfully Connected to Queue" is displayed.
    During our tests on Java Class, we tried to change CreateQueueSession istruction ( qsession = qcon.createQueueSession( false, javax.jms.Session.CLIENT_ACKNOWLEDGE ));
    we checked that any other setting (changing parameters required from Java Method), different from setting just exposed,
    messages are not received from Jcaps and we don't have any error during sending operation (like happens in Sap PI).
    So correct setting to send message to JCAPS are:
    Transacted = False;
    acknowledgeMode = CLIENT_ACKNOWLEDGE;
    How we can set this parameter in JMS Communication Channel on Sap PI?
    If the CC configuration is correct, where we can find the problem and what kind of issue could be? On client side (Sap PI) or on Server side (JCAPS)?
    Thanks

    In order to set Transacted = false, uncheck "Transactional JMS Session" in the Processing Tab of JMS adapter. Keep in mind that the message delivery is NOT guaranteed in such a scenario. It is recommended to use transactional sessions in JMS scenarios.
    The JMS sessions created by JMS adapter are of type "AUTO_ACKNOWLEDGE".
    Regards,
    TK
    Edited by: Sameej T.K. on Oct 20, 2010 10:47 PM

  • JAVASCRIPT AND JSF PROBLEM REFRESHING PAGE PROBLEM

    Hello everyone, I am currently using visual JSF and javascript to to disable a fileupload component when a radio button is clicked. I don't have any problems getting it to work if I need to disable a button, a textfield or other visual JSF components. For some reason, i can't disable the fileupload component and I get this error when the JAVASCRIPT is called:
    Error: document.getElementById("form1:fileUpload1").refresh is not a function
    Source File: http://localhost:8080/TestSingleEvent/theme/com/sun/webui/jsf/suntheme4_2-080320/javascript/webui.js
    Line: 22
    My javascript code is the following:
    document.getElementById("form1:fileUpload1").refresh("form1:radioButton1");return false;
    I would appreciate some help here. Why is it that when I replace the fileUpload with i.e a textfield i don't get errors..
    Is it something to do with the webui.js ?
    Many thanks.

    There is no such thing as refresh() in the [DOM element|http://developer.mozilla.org/en/DOM/element]. How did you come to this? Did you a wild guess in the around without reading the docs? Don't do that.
    What exactly do you want to achieve? Reset its value? Then set the 'value' property to null. Disable the element? Then set the 'disabled' property to true.
    I've been helpful enough with this offtopic question. If you still stucks, please continue at a Javascript oriented forum. There's one at under each webdeveloper.com.

  • Solaris8+patch display refresh rate problem

    I have installed the 109401-05 video patch for Solaris8 to update the video
    card drivers. But now at 1600x1200 screen resolution the maximum display
    refresh rate is always 60Hz, altough higher settings in kdmconfig. The behaviour is similar at 1280x1024, but the max. rate is 80Hz. I have tryed
    this with the ATI Xpert2000pro and Xpert98 graphic cards.
    Without the patch the refresh rate is OK (with the Xpert98 card). The
    motherboard is Abit KT7.
    Does anybody know what could be the problem?
    Thanks, Albin

    Hmm, if the refresh rate was OK before you installed the 109401-05
    video driver patch, why don't you uninstall that patch? Or do you
    need some other bugfix included in 109401-05?
    Otherwise the 60Hz problem problem with certain old ATI cards is not unknown to me:
    See this Solarisonintel posting for a possible solution.

  • JScrollPane visible part refresh rate problem

    I am writing an application that reads image and displays it in a JScrollPane via JPanel. It also has JSlider to set displayed image focus. The problem is that sometimes when big image is loaded and user changes seen part via scrollbars, the JScollPane refresh takes about 10 sec. The question is: How to make JScrollPane's content refresh/repaint only the part that is visible. The code is:
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    public class Main extends JFrame{
        private BufferedImage image;
        private JScrollPane sPane;
        private ImagePanel iPanel;
        private JSlider slider;
        private Container contentPane;
        public Main() {
            try {
                image = ImageIO.read(new File("c:\\pict\\img.JPG"));
            } catch (IOException ioe){
                ioe.printStackTrace();
                System.exit(1);
            slider = new JSlider(JSlider.HORIZONTAL,1,3,1);
            slider.setMinorTickSpacing(1);
            slider.setMajorTickSpacing(1);
            slider.setSnapToTicks(true);
            slider.addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    iPanel.setImageFocus(slider.getValue());
                    invalidate();
            iPanel = new ImagePanel(image);
            sPane = new JScrollPane(iPanel,
                    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            contentPane = this.getContentPane();
            contentPane.add(slider,BorderLayout.NORTH);
            contentPane.add(sPane,BorderLayout.CENTER);
            setExtendedState(JFrame.MAXIMIZED_BOTH);
            setDefaultCloseOperation(3);
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new Main().setVisible(true);
    class ImagePanel extends JPanel{
        private Image img;
        private Dimension imageSize;
        public ImagePanel(Image img){
            this.img = img;
            imageSize = new Dimension(img.getWidth(null),img.getHeight(null));
        public void setImage(Image img){
            this.img = img;
        public void setImageFocus(int focus){
            if (this!=null){
                getGraphics().clearRect(0,0,imageSize.width,imageSize.height);
            switch (focus){
                case 1:
                    imageSize = new Dimension(img.getWidth(null),img.getHeight(null));
                    break;
                case 2:
                    imageSize = new Dimension(2*img.getWidth(null),2*img.getHeight(null));
                    break;
                case 3:
                    imageSize = new Dimension(3*img.getWidth(null),3*img.getHeight(null));
                    break;
                default:
                    imageSize = new Dimension(0,0);
            setSize(imageSize);
            setPreferredSize(imageSize);
            repaint();
            ((JScrollPane)getParent().getParent()).revalidate();
        public void paintComponent(Graphics g){
            JScrollPane sp = (JScrollPane)getParent().getParent();
            g.clearRect(sp.getX(),sp.getY(),sp.getWidth(),sp.getHeight());
            g.drawImage(img,0,0,imageSize.width,imageSize.height,null);
    }Thanks,

    Sure
    DefaultTableModel dtm = new DefaultTableModel(vec, header);
              jt0 = new JTable(dtm);
              jt0.getTableHeader().setReorderingAllowed(false);
              jt0.setFont(new Font("Tahoma", Font.PLAIN, 12));
              jt0.getTableHeader().setFont(new java.awt.Font("Tahoma", java.awt.Font.BOLD, 12));
              jt0.setRowHeight(18);
            jt0.setPreferredScrollableViewportSize(new Dimension(500, jt0.getRowCount() * jt0.getRowHeight()));
            jt0.setFillsViewportHeight(false);
              jsp0 = new JScrollPane(jt0);
    GridBagConstraints gbc = new GridBagConstraints(); 
            gbc.insets = new Insets(2,1,2,1); 
            gbc.weightx = 1.0; 
            gbc.weighty = 1.0; 
            JPanel p0 = new JPanel(new GridBagLayout()); 
            gbc.fill = gbc.HORIZONTAL;
            p0.add(jsp0, gbc);
              JButton jb1 = new JButton("add row");
              jb1.setSize(40, 18);
    jb1.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent e) {
                        dtm.addRow(new Object[]{....});
    //                    jt0.scrollRectToVisible(jt0.getCellRect(jt0.getModel().getRowCount()-1, 1, false));
    //                    jt0.setRowSelectionInterval(jt0.getModel().getRowCount()-1, jt0.getModel().getRowCount()-1);
        public class SizeX extends JScrollPane {
             public Dimension getPreferredSize() {
                  Dimension size = super.getPreferredSize();
                  size.height -= getViewport().getPreferredSize().height;
                  Component view = getViewport().getView();
                  if(view != null)
                  size.height += view.getPreferredSize().height;
                  return size;
        }

  • GeForce2 GTS refresh rate problem

    I have a GeForce2 GTS (MSI Starforce 815) running on an IWill KK266 (KT133A chipset) and a Sony GDM-400PS monitor. My problem is that when I set the refresh rate to "optimal" it runs at 60hz. This is a problem because my eyes are really sensitive to the flicker. I can set the refresh manually to a higher static refresh rate, and I can then switch back to "optimal" and it will adjust properly to a higher refresh rate but upon reboot it converts back to 60hz (although setting still says optimal.) I have several other non MSI GeForce2 GTS cards and they don't have this problem.
    Anyone have any ideas?
    To help weed out the suggestions:
    -running 350W Enermax PS, more then enough
    -running Win98SE (don't tell me to switch operating systems please)
    -Sony 400PS well within spec
    -have run 3 sets of Detonator drivers currently 40.72 same problem with all
    -I know I can set it to run at a static 75 or 85Hz but I prefer to have it adjust to the optimal setting for my usage.
    Thanks for any help!

    beavercleaver,
    I always set the monitors at 85hz.  It is a great frame rate that is really easy on the eyes.
    Take Care,
    Richard

  • Jms queue problem in 11g

    exception trace is comming, while running the project in weblogic, in the project iam using jms queue, i configured the jms server and jms module and connection factory but it is showing these exception
    [The selected operation process could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: InvalidSecurity : error in processing the WS-Security security header]
    can any one please, provide the suggestions

    i got the solution for my problem, i just need to add owsm policies to my processs

Maybe you are looking for

  • Lion Macbook Pro unbootable - any way past this?

    Hi. I have a macbook pro with Lion installed. Yesterday it wouldn't boot up at all. I went to the recovery partition and that appears to be corrupted - it turned into a no-entry sign and then went back to it's non-booting main partition. I do not hav

  • Select current user tables

    Hi, I'm needing to obtain the list of the TABLES which the current user has some privilege. I'm using the following query for doing that: SELECT DISTINCT o.object_name FROM all_objects o, all_tab_privs tp WHERE o.object_name = tp.table_name AND o.obj

  • Multiselect in filmstrip - behaviour depends on grid or loupe

    When I select multiple items in the filmstrip and applies keywords, it correctly applies the keywords to all items if I am in gridview, but if I am in loupe view it only applies the keywords to the current image. I feel that the difference between a

  • Missing apps in ios6

    Anyone else have missing apps since they updated to ios6? I paid for angry bird space when it was released but since ive updated my new ipad to io6 it isnt listed in my purchases on my ipad or on purchases on my itunes on my windows pc. Am i doing so

  • Maximum number of sessions in the portal

    Hi, Please, do you know the maximum number of sessions that a particular user can open in the portal 7 ? and it´s posible to limit the number of sessions of a user thanks in advance.