Manipulating frames in java?

I have the following scenery:
-A frame with 2 buttons
I want to customize some things in my program, because i have the following problems:
-Problem no 1: i dont know how to change the place of a button in a panel.
Solution: method to set the place of determined button in a panel
-Problem no 2: when panel is dragged, the simetry of buttons made in netbeans ide is undone.
Solution: is there a method that Unpossibility the panel to be dragged.
-Problem no 3: my frame always starts in the annoying upper left corner of the screen.
Solution: method to be put in frame.
Im pretty sure that each problem can be solved with one code of line. Like for example in the third problem, it must be frame.setStartPoint(x,y);
Thank you very much.

868978 wrote:
I have the following scenery:
-A frame with 2 buttons
I want to customize some things in my program, because i have the following problems:
-Problem no 1: i dont know how to change the place of a button in a panel.
Solution: method to set the place of determined button in a panelYou'll probably want to use a Layout Manager on your panel. Probably the most versatile is GridBagLayout, but it is a bit complicated to learn.
Here's some info about Layout managers: http://download.oracle.com/javase/tutorial/uiswing/layout/using.html
-Problem no 3: my frame always starts in the annoying upper left corner of the screen.
Solution: method to be put in frame.frame.setLocation(int,int);

Similar Messages

  • Problematic frame: # J java.nio.MappedByteBuffer.load()

    Helo all...
    I'm getting an error when generating a PDF using BIRT Framework in Eclipse. Nothing fancy, just compiling a simple report to pdf.
    The problem is, the JVM crashes with the following error:
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x0190f0be, pid=5848, tid=2392
    # JRE version: 7.0_09-b05
    # Java VM: Java HotSpot(TM) Client VM (23.5-b02 mixed mode, sharing windows-x86 )
    **# Problematic frame:
    # J java.nio.MappedByteBuffer.load()Ljava/nio/MappedByteBuffer;**
    # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
    # An error report file with more information is saved as:
    # C:\Users\luis\Desktop\teste\birt\hs_err_pid5848.log
    # If you would like to submit a bug report, please visit:
    # http://bugreport.sun.com/bugreport/crash.jsp
    I already tried:
    1. Run the program in another computers - it worked
    2. Reinstall Java on the computer - It did nothing
    3. I check the integrity of the disk C: - Nothing
    I already spent two days trying to fix this and I don't have any progress. I can't find a solution on the web either.
    Thanks in advance

    Thanks for the help.
    But it can not be related to BIRT because it works in every other computer that I tried so far. There is only one computer that not works properly.
    If it were BIRT's fault, it wouldn't work in any computer.
    Thanks again

  • Custom Windows and Frames in Java - Help

    Hello, I'm begining a Java class in school and Ive been wondering how to get rid of these boring windows. For example I want to turn something like this:
    to something like this:
    I realize theyre 2 different programs. Im simply asking how I may draw and implement my own frames on windows along with background images/colors.
    Thanks in advance~

    Have a look at http://www-128.ibm.com/developerworks/java/library/j-iframe/ which allows you to override all of the decorations associated with frames.

  • Ugly frames in java. Want to make a nice looking gui.

    Well basically i don't want to use a square ugly standard java frame, or usual window.
    I want it to be individually shaped. Just like the windows media player.
    If you put it in compact mode, it removes all visuals of a real windows and looks really good.
    Is that possible to do with java? And if so, how?

    search the forums, this question has been asked in other forums MANY times.
    the basic answer is NO,
    there are several ways of getting a similar effect, but none are a 'proper' solution.

  • Manipulating objects in java

    could anyone check this code for me please?
    class Time
    it hast the methods:
    boolean previous(Time t): checks if the time provided as a parameter is earlier than the time represented by the object to which the message is sent.
    boolean posterior(Time t): checks if the time is later then the time represented by the object to which the method id sent.
    boolean equals(Time t): checks if the times are equal.
    void update(Time t): undates the time represented by the object to which the massage is sent with the time passed as parameter.
    Also,
    define a constructor and the getter and setter for each attribute of the class time.
    use the class Console to show error messages on the screen.
    (i don't know how to use the class Console.
    Many thanks in advance
    public class Time {
         int hours;
    int minutes;
    int seconds;
    public Time(int h, int m, int s)
    hours = h;
    minutes = m;
    seconds = s;
         public int getHours() {
              return hours;
         public void setHours(int hours) {
              this.hours = hours;
         public int getMinutes() {
              return minutes;
         public void setMinutes(int minutes) {
              this.minutes = minutes;
         public int getSeconds() {
              return seconds;
         public void setSeconds(int seconds) {
              this.seconds = seconds;
         public boolean previous(Time t)
              //Time tt = (Time) t;                         //error
              Time tt = new Time(hours, minutes, seconds);
              if(this.hours > tt.hours)
                   return true;
              else if(this.minutes > tt.minutes)
                   return true;
              else if(this.seconds > tt.seconds)
                   return true;
              return false;
         public boolean posterior(Time t)
              //Time tt = (Time) t;                              //error
              Time tt = new Time(hours, minutes, seconds);
              if(this.hours < tt.hours)
                   return true;
              else if(this.minutes < tt.minutes)
                   return true;
              else if(this.seconds < tt.seconds)
                   return true;
              return false;
         public boolean equals(Time t)
              Time tt = (Time) t;
              if(this.hours == tt.hours)
                   if(this.minutes == tt.minutes)
                        if(this.seconds == tt.seconds)
                             return true;
              return false;
         public void update(Time t)
              Time tt = new Time(hours, minutes, seconds);
              if(this.hours != tt.hours)
                   this.hours == tt.hours;                         //error
              if(this.minutes != tt.minutes)
                   this.minutes == tt.minutes;                    //error
              if(this.seconds != tt.seconds)
                   this.seconds == tt.seconds;                    //error
    }

    Thank you very much.
    could you also tell me how to use the class Concole
    in this case?http://java.sun.com/j2se/1.5.0/docs/api/
    ConnectionPoolDataSource
    ConsoleHandler
    Constructor
    My JDK doesn't have a Console class.

  • Manipulating datawarehouse with java

    Hi
    please its urgent, i need to connect and manipulate a datawarehouse(warehousebuilder) through a java class but i cant find a good samples for this object
    so if anyone can help me please contact me [email protected]
    thanks a lot

    Hi
    How do you want to integrate the java? Is it ok, just to execute the java method from a process flow? Or you want to execute some java for each row being processed?
    Cheers
    David

  • Manipulating Packets in JAVA

    I want to break down an incoming packet and analyze its different copmonents, like the checksum field.
    I am basically studying parasitic computing and so I have to change the checksum field of the packet. Can anybody help me?
    Thanking you in advance
    Lithuvien

    It can't be done in pure Java. You would be best off do this kind of work in C. See Richard Stevens, Unix Network Programming for help with C socket programming.

  • Manipulating hardware in java

    Can i use java to manipulate a hardware like CD-Rom, VideoCard and a like? if yes... what specific classes that i can use?

    Not directly, no (at least not without JNI, but then it's not really Java is it?). You can however use all of those through the classes provided to you and 3rd party APIs. Like Java3D allows you to create 3D stuff and so forth.

  • How to hide Frames through Java script in FireFox.

    Hi,
    I am working on CRM ISA B2B application and hiding some frame in B2B through javascript. It is working fine in IE but it is not working at all in Firefox.
    Below is the example of hiding frame which I am using. it is working fine in IE but not working at all in FireFox. There are total 3 files (1) main.html (2)blank1.html (3)blank.html.
    1) main.html ( this is the main HTML)
    ===========
    <html>
    <head>
    <title> Testing </title>
    </head>
    <frameset id="TopFrame" rows="80,*">
         <frame src="blank.html" name="top">
         <frameset id="middle" cols="160,*">
              <frame src="blank1.html" name="side">
              <frame src="blank.html" name="main">
         </frameset>
    </frameset>
    </html>
    ===============
    2) blank1.html
    ===============
    <html><head>
    <script language="javascript">
    function hideframe()
    parent.document.all("TopFrame").all("middle").cols="100%,*";
    function showframe()
         parent.document.all("TopFrame").all("middle").cols="50%,50%";
    </script>
    <title>Blank Title</title>
    </head>
    <body>
    <h1>Blank1</h1>
    <input type="button" value="test" onClick="hideframe();">
    <input type="button" value="Show" onClick="showframe();">
    </body>
    </html>
    =============
    3) blank.html
    ============
    <html><head>
    <script language="javascript">
    function hideframe()
         parent.document.all("TopFrame").all("middle").cols="100%,*";
    function showframe()
         parent.document.all("TopFrame").all("middle").cols="50%,50%";
    </script>
    <title>Blank Title</title>
    </head>
    <body>
    <h1>Blank 0</h1>
    <input type="button" value="test" onClick="hideframe();">
    </body>
    </html>
    ==============
    Above code is working fine in IE but not working at all in FireFox.
    Any help would be highly appreciated.
    Pl. help me out.
    Thanks.
    Ashish Patel.

    Hello,
    Press F11 to go into full screen mode (Mac: Command+Shift+F).
    If you're on Windows, right-click an empty area of the tab bar and choose Customize. Click the Title Bar button in the lower left corner to toggle it. Click the Exit Customize button when done.
    If you're on Linux, your window manager may allow you to hide the title bar and window frame. For example, KDE has a "No titlebar and frame" setting.
    * http://userbase.kde.org/KWin_Rules_Window_Attributes

  • Manipulating XML in java

    Hi,
    I have a requirement as follows. I am getting an XML output as inputstream from an API, in this XML I need to modify certain elements to a particular format and add more elements at times too before returning back to the caller.
    This XML will be of huge size (say 10,000 elements)
    Currently we are using DOM to parse and manipulate.
    Questions:
    1. This might be a bottleneck or lead to memory leak in production env so is there any other options which will be a light weight process.
    2. Using JDOM will proivide better performance?
    3. Is there any altogether different solution which will help me.
    Example
    <employeeList>
    <employee>
    <employeeName/>
    <employeeAddress>
    <numberAndStreet/>
    <city/>
    <state/>
    <country/>
    </employeeAddress>
    <employee>
    </employeeList>
    In this xml I might required to look for employee country and add country code etc.

    If you're dealing with huge datasets, using DOM based parsing may be infeasible, unless you're allowed to use a ton of memory.
    Look into the SAX and StAX APIs for stream based approaches that leave a MUCH smaller footprint.
    http://www.saxproject.org/quickstart.html
    http://javaboutique.internet.com/tutorials/stax/

  • Connectivity to I-series/Z-series Main Frames by Java class

    I am trying to fire Quries to DB2 DB residing on Mainframe . To connect to Mainframe I should have have db2jcc.jar/db2java.zip . But i do not know from where can i get these files .and even after geting these files do i need any client to run on my FE servers . Please suggest

    If there have a bugs in Linux OS. Please help me!

  • Cut vedio file into different frames using java

    Hi friends,
    I would like o know how we can cut the vedio file into different formate using JMF.
    Given an input media file, the object is to cut pieces from the file and generate an output file from that.
    i want to cut vedio from X time to Y time.
    If any one is work on this please help.

    Why "split" the file? Just write a packet with a DataOutputStream(GZipOutputStream()), send it, and then read it back with a DataInputStream(GZipInputStream()) ...
    1. The GZip*Streams take care of compression.
    2. The Data*Streams take of byte order and so on.
    3. Your DatagramPacket handles the transport.
    The hardest part is figuring out what buffer size works best for your network... there is no "right" answer to that.

  • Simple Java Question

    Hi Experts,
    I am getting following run time error message while running a Web Dynpro program:
       java.lang.ClassCastException: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: List must contain AbstractList (ProxyList) of Type 'com.sasol.pr.create.Bapimereqitemimp$Bapimereqitemimp_List', not of 'class com.sasol.pr.create.Bapimereqitem$Bapimereqitem_List'!
    Detailed error message is:
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1)
    Version null
    DOM version null
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0011.20070125102926.0000 (release=645_VAL_REL, buildtime=2007-01-31:20:18:32[UTC], changelist=434634, host=pwdfm101), build date: Thu Apr 12 16:35:25 IST 2007
    J2EE Engine No information available
    Java VM Java HotSpot(TM) 64-Bit Server VM, version:1.4.2 1.4.2.12-061213-10:06-IA64W IA64W, vendor: Hewlett-Packard Company
    Operating system HP-UX, version: B.11.23, architecture: IA64W
    Session & Other
    Session Locale en_US
    Time of Failure Tue Apr 17 14:05:49 IST 2007 (Java Time: 1176798949444)
    Web Dynpro Code Generation Infos
    local/Pr_Create_16042007_I
    SapDictionaryGenerationCore 6.4009.00.0000.20041026131628.0000 (release=630_REL, buildtime=2004-11-02:22:13:11[UTC], changelist=295793, host=PWDFM027.wdf.sap.corp)
    SapDictionaryGenerationTemplates (unknown)
    SapGenerationFrameworkCore 6.4009.00.0000.20041026132141.0000 (release=630_REL, buildtime=2004-11-02:22:05:28[UTC], changelist=295805, host=PWDFM027.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 6.4009.00.0000.20041026133106.0000 (release=630_REL, buildtime=2004-11-02:22:21:59[UTC], changelist=295820, host=PWDFM027.wdf.sap.corp)
    SapMetamodelCommon 6.4009.00.0000.20040909194107.0000 (release=630_REL, buildtime=2004-11-02:22:06:42[UTC], changelist=280398, host=PWDFM027.wdf.sap.corp)
    SapMetamodelCore 6.4009.00.0000.20040909194107.0000 (release=630_REL, buildtime=2004-11-02:22:06:29[UTC], changelist=280398, host=PWDFM027.wdf.sap.corp)
    SapMetamodelDictionary 6.4009.00.0000.20040805191532.0000 (release=630_REL, buildtime=2004-11-02:22:10:20[UTC], changelist=270520, host=PWDFM027.wdf.sap.corp)
    SapMetamodelWebDynpro 6.4009.00.0000.20041026132448.0000 (release=630_REL, buildtime=2004-11-02:22:17:25[UTC], changelist=295810, host=PWDFM027.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 6.4009.00.0000.20041102105304.0000 (release=630_REL, buildtime=2004-11-02:22:38:28[UTC], changelist=297524, host=PWDFM027)
    SapWebDynproGenerationCore 6.4009.00.0000.20041026133106.0000 (release=630_REL, buildtime=2004-11-02:22:22:31[UTC], changelist=295820, host=PWDFM027.wdf.sap.corp)
    SapWebDynproGenerationTemplates 6.4009.00.0000.20041102105304.0000 (release=630_REL, buildtime=2004-11-02:22:38:28[UTC], changelist=297524, host=PWDFM027)
    sap.com/tcwddispwda
    No information available null
    sap.com/tcwdcorecomp
    No information available null
    Detailed Error Information
    Detailed Exception Chain
    java.lang.ClassCastException: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: List must contain AbstractList (ProxyList) of Type 'com.sasol.pr.create.Bapimereqitemimp$Bapimereqitemimp_List', not of 'class com.sasol.pr.create.Bapimereqitem$Bapimereqitem_List'!
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setRelatedModelObjects(DynamicRFCModelClass.java:807)
         at com.sasol.pr.create.Bapi_Pr_Create_Input.setPritem(Bapi_Pr_Create_Input.java:403)
         at com.sasol.pr.creation.PrCreationCust.executeBapi_Pr_Create(PrCreationCust.java:215)
         at com.sasol.pr.creation.wdp.InternalPrCreationCust.executeBapi_Pr_Create(InternalPrCreationCust.java:240)
         at com.sasol.pr.creation.ApplView.onActionSearch(ApplView.java:152)
         at com.sasol.pr.creation.wdp.InternalApplView.wdInvokeEventHandler(InternalApplView.java:258)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Can you please have a look on it and suggest me the solution.
    Regards,
    RK

    Hi Ravinda,
    You add to one of your WD RFC Adaptive model relations not instance of com.sasol.pr.create.Bapimereqitemimp$Bapimereqitemimp_List BUT com.sasol.pr.create.Bapimereqitem$Bapimereqitem_List
    Check the place where you instanciate your model, establish relations and bind model to model class.
    Best regards, Maksim Rashchynski.

  • "AWT-EventQueue-0" java.lang.NullPointerException and JInternalFrame

    I have two classes one with main method second with GUI methods (JFrame, JInternalFrame). When I call method to start second JInternalFrame from main everything is working but if i call it form any other method i get:
    Exception in thread "main" java.lang.NullPointerException
    at pkg1.GUI.createFrame(GUI.java:123)
    at pkg1.GUI.startFrame2(GUI.java:66)
    at pkg1.Top.cos(Top.java:25)
    at pkg1.Top.main(Top.java:20) My code:
    GUI class
    package pkg1;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.Toolkit;
    import java.awt.event.MouseMotionListener;
    import javax.swing.JDesktopPane;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.plaf.basic.BasicInternalFrameUI;
    import oracle.jdeveloper.layout.XYLayout;
    public class GUI
        public JDesktopPane desktop;
        private XYLayout xYLayout1 = new XYLayout();
        public int openFrameCount = 0;
        JFrame f = new JFrame();
        public void GUII()  // Prepare JFrame
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(500, 600);
            f.setVisible(true);
        public void startFrame()
            desktop = new JDesktopPane();
            createFrame(); //create first "window"
            f.setContentPane(desktop);
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        public void startFrame2()
            createFrame(); //create second "window"
            f.setContentPane(desktop);
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        public void createFrame()
            MyInternalFrame frame = new MyInternalFrame();
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            frame.add(new GUI2());
        } Top class
    public class Top
        public static void main(String[] args)
            GUI g = new GUI();
            g.GUII(); //Create JFrame
            g.startFrame(); //Create JInternalFrame
            Top t = new Top();
            t.sth();
        public void sth()
            GUI gui = new GUI();
            gui.startFrame2();
    } MyIntternalFrame class
    import javax.swing.JInternalFrame;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.SwingConstants;
    import oracle.jdeveloper.layout.XYConstraints;
    import oracle.jdeveloper.layout.XYLayout;
    /* Used by InternalFrameDemo.java. */
    public class MyInternalFrame extends JInternalFrame {
        static int openFrameCount =  0;      
        static final int xOffset = 30, yOffset = 30;
        private XYLayout xYLayout1 = new XYLayout();
        private JButton jButton1 = new JButton();
        private JLabel jLabel1 = new JLabel();
        private JFrame c = new JFrame();
        private JPanel d = new JPanel();
        private XYLayout xYLayout2 = new XYLayout();
        public MyInternalFrame() {         
            super("Document #"  + (++openFrameCount),true /*resizable*/,true /*closable*/,true /*maximizable*/,true);//iconifiable*/
            //...Create the GUI and put it in the window...
            //...Then set the window size or call pack...
            int width = new GUI2().width + 10;
            int height = new GUI2().height + 40;
            setSize(width,height);
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    } Please tel me where is my mistake or maybe you knew another way to open JInternalFrame with public method form another class

    Some possibly helpful suggestions:
    1) Create one JDesktopPane, and do it in the constructor of GUI. You should call this constructor only once.
    2) Get rid of GUII. The GUI constructor will do all this and more.
    3) Get rid of startFrame and startFrame2.
    4) In GUI2, change your width and height to static variables if you are going to use them in outside classes. There is no reason to have to create a GUI2 object just to get those values. Get them from the class, not the instances.
    5) You're doing something funky in your Top class with your mixing of static code and non-static code. My gut tells me that Top is just a static universe that exists to get your code up and running, and that the code within it should all be static, but that's just my personal opinion.
    6) In MyInternalFrame, get the height and width from GUI2 (if that's what you want to do) again in a static fashion. Rather than new GUI2().width which makes no sense, use GUI2.width.
    Why can't you put the button inside of the JInternalFrame object? I believe that the contentPane of this object which may hold your button (unless you embed a jpanel) uses BorderLayout, so you have to take care how you add jcomponents to the jinternalframe (or more precisely, it's contentPane).

  • Addition of fields in ABAP RFC causes java.lang.ArrayIndexOutOfBoundsExcept

    Hi,
    I had been calling an ABAP RFC from my WDJ application successfully till yesterday. Then we felt the need for 2 additional fields in RFC for better results. Since then, I'm not able to call this RFC. The error being thrown is copied below.
    All context mappings are done correctly and there is no compilation/build error in application but on runtime the following error is being thrown.
    Can someone guide me here for solution to this issue?
    Thanks,
    Vishwas.
    500   Internal Server Error
      SAP NetWeaver Application Server 7.00/Java AS 7.00 
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.ArrayIndexOutOfBoundsException
        at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:663)
        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:420)
        at com.pa.material.model.Z_Sd_Get_Availability_Input.getAuart(Z_Sd_Get_Availability_Input.java:186)
        at com.pa.materialprice.wdp.IPublicGet_Material_Price$IZ_Sd_Get_Availability_InputElement.wdGetObject(IPublicGet_Material_Price.java:518)
        at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:350)
        ... 60 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
    Version null
    DOM version null
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0013.20070717142021.0000 (release=645_VAL_REL, buildtime=2007-08-11:15:13:14[UTC], changelist=455669, host=pwdfm101), build date: Mon Dec 17 17:41:35 CST 2007
    J2EE Engine 7.00 patchlevel 109044.44
    Java VM Classic VM, version:1.4, vendor: IBM Corporation
    Operating system OS/400, version: V5R4M0, architecture: PowerPC
    Session & Other
    Session Locale en_US
    Time of Failure Thu Jan 24 12:43:46 CST 2008 (Java Time: 1201200226852)
    Web Dynpro Code Generation Infos
    local/Get_Material_Price
    SapDictionaryGenerationCore 7.0009.20060802115015.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:24:21[UTC], changelist=413123, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates (unknown)
    SapGenerationFrameworkCore 7.0009.20060719095755.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:12:57[UTC], changelist=411255, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer 7.0009.20060802115035.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:30:00[UTC], changelist=413124, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon 7.0009.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:13:46[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore 7.0009.20060210160857.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:13:38[UTC], changelist=388995, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary 7.0009.20060719095619.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:21:59[UTC], changelist=411251, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro 7.0009.20060428190938.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:26:52[UTC], changelist=400815, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates 7.0009.20060804145649.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:45:29[UTC], changelist=413534, host=pwdfm101)
    SapWebDynproGenerationCore 7.0009.20060802115035.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:30:11[UTC], changelist=413124, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates 7.0009.20060804145649.0000 (release=645_VAL_REL, buildtime=2006-08-26:14:45:29[UTC], changelist=413534, host=pwdfm101)
    sap.com/tcwddispwda
    No information available null
    sap.com/tcwdcorecomp
    No information available null
    Detailed Error Information
    Detailed Exception Chain
    java.lang.ArrayIndexOutOfBoundsException
         at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:663)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:420)
         at com.pa.material.model.Z_Sd_Get_Availability_Input.getAuart(Z_Sd_Get_Availability_Input.java:186)
         at com.pa.materialprice.wdp.IPublicGet_Material_Price$IZ_Sd_Get_Availability_InputElement.wdGetObject(IPublicGet_Material_Price.java:518)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:350)
         at com.sap.tc.webdynpro.progmodel.context.AttributePointer.getObject(AttributePointer.java:157)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1079)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1070)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.getValue(AbstractInputField.java:1262)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter.getValue(InputFieldAdapter.java:597)
         at com.sap.tc.ur.renderer.ie6.InputFieldRenderer.render(InputFieldRenderer.java:39)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutCellFragment(MatrixLayoutRenderer.java:405)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutRowFragment(MatrixLayoutRenderer.java:355)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.renderMatrixLayoutFragment(MatrixLayoutRenderer.java:122)
         at com.sap.tc.ur.renderer.ie6.MatrixLayoutRenderer.render(MatrixLayoutRenderer.java:39)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:116)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:39)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:276)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:82)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:39)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:116)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:39)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:35)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:421)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:1037)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillDynamicTemplateContext(HtmlClient.java:455)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:1216)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:247)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:583)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:113)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:107)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:270)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:710)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:60)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:332)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:0)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:336)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:868)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:250)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:99)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    Hi Vishwas,
                       After changing the RFC , u need to reimport the model & server has to be restarted for refreshing the model.if that u have already done, send the code.
    regards
    Sumit

Maybe you are looking for

  • Adobe Cloud CS6 - Can't install/start AAM and CS6

    Since 6 Hours i try to get the CS6 installed - hope anybody can help. - I deinstalled Photoshop CS6 beta and my CS5 completely - I deactivated my firewall - I used Adobe CreativeSuite cleaner - I downloaded the full AAM6.1 - But - when I start the AA

  • I can't update my Premiere Pro CC 2014 8.01 Version to 8.1 on my mac...???

    I try to update my Premiere 8.01 to 8.1 on my Mac Pro Workstation with 10.8.5 OSX. Creative Cloud only install the 8.01 version. I tried to uninstall and reinstall with updates but it will alway only give me the 8.01 version and not the new one...???

  • IPhoto 6.0.6 will not launch using 10.4.11

    I ran Disk Utility which could not repair my hard disk so I took everything off, erased and re-installed, and copied everything back and updated software (to system 10.4.11). Now everything is fine EXCEPT iPhoto 6.0.6 which will not launch. I set up

  • Out-of-Band SMASH Library Event ID 4509 (SCOM 2012SP1UR3)

    Hi! I´m using the "Microsoft System Center Out-of-Band SMASH Library" 7.0.8707.0 found here: http://blogs.technet.com/b/momteam/archive/2012/04/02/ws-management-smash-device-discovery-template-released.aspx It is a reqiurement for some of DELLs MP:s.

  • Recent update 3.01 to 3.1.2 - Full Coverage to No service, back to full

    I'm not sure why I did it, but I usually go by the rule of thumb if a device you are operating has no problems, there should be no need to update it. Well, I did not follow that rule, and recently updated to 3.1.2. The problem I'm experiencing is the