Overriding a function in NetConnection

I am trying to overriding the call function in the
NetConnection class... But because of that "..." I really don' t
have much control on how to pass in the data to the super, and
because of this I keep getting the "RestExpressionNode not yet
implemented" error... Is there anyway around this?

In your statment: super.call(command, responder,
...arguments);
...arguments is a declaration not an actual value being
passed.
I think your only choice is to make a switch block passing as
many arguments as were sent. You could decide on a max of say 10
arguments.

Similar Messages

  • Using javascript to override  pressing function keys (f1,f3,f6,f7,....)

    hi all i wonder if there is a way to to override pressing function keys(f1,f3,f6,f7,....) in adf page for all of the page not just for an input text .
    in another way can i make a client listener for a <f:view> or <af:document> so the javascript function will be called when i preses any button in keyboard without focusing in inputtext or a command button
    Edited by: user554540 on 22/06/2010 03:03 ص

    Hi,
    the problem is that keyboard events are only raised from input components. client listeners can only added to ADF Faces components and af:document does not accept keyboard entries. However, I tried
    af:document > panelStrechtLayout (center facet) > panelGroupLayout (scroll) and assigned a clientListener. At runtime has the desired effect
    Frank
    Edited by: Frank Nimphius on Jun 22, 2010 6:27 PM

  • How to override the functionality of a method which is embedded in an swf

    Hi,
    I have an swf for my application for which i do not have the source code. Now i want to override the functionality of a method (say doIt()) in a class (say MyClass.as).
    Is there any way to achieve the classloader functionality that similar to the tomcat classloading functionality for java files.
    i.e Tomcat's classloader searches the WEB-INF/classes directory before the WEB-INF/lib/*.jar. That means my original code is in lib folder, and the orerriden code is in the classes folder. In this case, tomcat will see the classes folder first, if my class does not exist in this folder, then it looks for the lib folder.
    Can we achieve the same class loading functionality in Flex. The overall idea is to change the functionlity of a feature without touching the original swf and by creating an external swf and by calling it.
    Regards,
    Sangeeta Kalyani

    Sangeetha Kalyani,
    Use SWF de-compiler.. and get the source of your SWF.. i think this will simplyfy your JOB...!
    Thanks,
    Pradeep

  • Error when overriding mx_internal function in mxml file

    Hi,
    I'm having difficulty overriding an mx_internal function inside an mxml file. I get an error:
    1004: Namespace was not found or is not a compile-time constant. StackRenderer.mxml /Layouts/src/example line 12 Flex Problem
    <?xml version="1.0" encoding="utf-8"?>
         <s:ItemRenderer
                xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:s="library://ns.adobe.com/flex/spark"
                xmlns:mx="library://ns.adobe.com/flex/mx">
                <fx:Script>
                      <![CDATA[
                            import mx.core.mx_internal;
                            use namespace mx_internal;
                            override mx_internal function drawBackground():void{
                       ]]>
                </fx:Script>
    </s:ItemRenderer>
    What am I doing wrong?

    Sorry for missleading information: I missed the error after I removed "use namespace mx_internal;". However I think I have found a problem. For some reason you get the error in MXML file (probably there are some restrictions for using namespaces in MXML files but I'm not sure). I have created an ActionScript component and it now compiles (for sure):
    package
       import mx.core.mx_internal;
       import spark.components.supportClasses.ItemRenderer;
       use namespace mx_internal
       public class CustomIRAS extends ItemRenderer
          override mx_internal function drawBackground():void {
    So I suggest creating ActionScript component instead of MXML.
    Michael

  • Loss style when overriding the function 'set data' for a TileList

    Hi!
    In a TileList, I set the itemRenderer for a components from
    where I override the function set data like in this example:
    but, by doing this, I'm loosing all the built-in CSS
    behavior. The onMouseOver effect the change the backgroundColor and
    the hand pointer. I try to set it programmatically but without
    success.
    An idea?
    Thank you

    "FlexBin" <[email protected]> wrote in
    message
    news:gdaj4r$noj$[email protected]..
    > Hi!
    >
    > In a TileList, I set the itemRenderer for a components
    from where I
    > override
    > the function set data like in this example:
    >
    > but, by doing this, I'm loosing all the built-in CSS
    behavior. The
    > onMouseOver
    > effect the change the backgroundColor and the hand
    pointer. I try to set
    > it
    > programmatically but without success.
    >
    > An idea?
    >
    > Thank you
    >
    > public override function set data(value:Object):void
    > {
    > var xml:XML = new XML(value);
    >
    > if(this.backgroundIconName != null &&
    > this.ico != null &&
    > this.labelText != null) {
    >
    > if(xml.backgroundIconName != "") {
    >
    > this.backgroundIconName.source = "assets/" +
    xml.backgroundIconName;
    > }
    >
    > this.backgroundIconName.visible =
    (xml.backgroundIconName != "");
    >
    > this.ico.source = "assets/" + xml.iconName;
    > this.ico.width = Number(xml.width);
    > this.ico.height = Number(xml.height);
    >
    > this.labelText.text =
    resourceManager.getString('myResources',
    > xml.label);
    > }
    >
    > if(xml.@available == 'false')
    > {
    > this.enabled = false;
    > }
    > }
    There are examples of how to properly implement this kind of
    functionality
    in the itemRenderers here:
    http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html
    http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-stylefunction.html

  • Can we override the functionality of F4 key?

    I want to override the functionality of F4 key. How will i do this?

    Hi,
    If its a dialogue program, use...
    PROCESS ON VALUE-REQUEST.
      FIELD <field_name>          MODULE <module_for_f4_help>.
    in PAI & write your code to get the values in that module (module_for_f4_help).
    If its a report, use....
    at selection-screen on value-request for <field_name>.

  • How to override to_number function?!

    Hi,
    I already tried to find an answer by searching this forum but without success...
    My problem is, that I have a lot of mappings using the to_number() function to convert char into number. Now it turns out, that in some cases - due to the bad data qualtity - fields contain special chars e.g. 1234" Don't ask why ;) Of course the reguIar tu_number() function fails on that. Now I wrote a to_number function that handles the issue by removing all the special chars and then convert. I now want to override oracle's built-in to_number function with my own function.
    Do you have any ideas how that works? As a requirement the solution should be simple... It would be an imense work to edit every mapping. I global solution is preferred. Something like a priority option, to take self written functions first or sth...
    Thanks for any help!
    Cheers Steffen

    Hi,
    you could use OMB to change all occurance of that functino in your project.
    Unfortunately I know OWB allmost only from theory :-( but I remember, that you can set a context to a project or a mapping and all subsequent operations will happen within that horizont.
    As far as I saw, OMB isn't to hard to use, even without days of learning, just by looking for fitting operation, but I know documentation about OMB is pretty poor, almost only syntax reference is available.
    really overriding the pre_build to_number-function might be possible as sys, but I would avoid that or only do in a relly play-instance. I suppose you tried allready simply to run 'create or replace ...' ?
    Thanks for your tip about number checking, but I tried allready many variations functions like that. I never can get it validated:
    I have a function is_number_num, returning 1 for ok, 0 for false, which si working fine on SQL*PLUS, but when I use it splitter-condition, in this variations:
    "IS_NUMBER_NUM"( GRP_IN.ANZAHL,'NLS_NUMERIC_CHARACTERS='',.''') = 1
    I get: PLS-00801 internal error [phdxcsql_canonicalize_sql:state]
    with .... == 1
    I get:
    Line 0, Col 0:
    The expression is not properly formed.
    I have no bloody idea, what that means and what might be wrong in here ? Even google does not return 1 singel page for the error-parameter !
    I tried several versions:
    "IS_NUMBER_NUM"( GRP_IN.ANZAHL,'NLS_NUMERIC_CHARACTERS='',.''') = 1
    also this: "IS_NUMBER_NUM"( GRP_IN.ANZAHL) = 1
    but nothing is accepted !
    Also I made a more easy function for checking for date-format, which works fine in SQL*PLUS, but can't be validated in OWB-splitter.
    Oracle support is playing for time since days !
    thsi function brings same error, depending if I use 1 or 2 "=" !???
    any idea ?
    somehow I have the feeling, I missed 1 easy rule on how to use a splitter-condition correctly ?
    But I can't see anything wrong in my constructions, especially because they are working fine in SQL*PLUS !???
    thanks for any hint, LaoDe

  • Override Existing functionality in OO ALV

    Hi
    Can any one give me the procedure to override the standard functionality associcate with the buttons in ALV Toolbar.
    I am not able debug the when the user perfroms action on the Standard ALV toolbar. Can you help me
    Thanks all.

    Check sample program BCALV_EDIT_05. You need to create a local class to handle user actions. By this way you can assign different functionality to an existing key or ad new keys with required functionality.

  • Overriding standard functions in alv

    Hi all,
    I want to over ride " append row funtionality in alv grid.
    I am calling the grid in a custom container.
    I used the following code
      METHODS HANDLE_BEFORE_USER_COMMAND
        FOR EVENT BEFORE_USER_COMMAND OF CL_GUI_ALV_GRID
        IMPORTING E_UCOMM.
      METHOD HANDLE_BEFORE_USER_COMMAND.
      PERFORM HANDLE_BEFORE_USER_COMMAND USING E_UCOMM.
      ENDMETHOD.
    WHEN CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
    call screen 200.
    CALL METHOD GO_GRID->SET_USER_COMMAND
      EXPORTING
        I_UCOMM = SPACE
    Instead of CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW,
    i tried using &local&append also.
    But it is not overriding.
    But when i do the same codingto overide DETAIL functionality, it is working.
    please can any body suggest me what should i do to override "append row".
    Thanks in advance
    Regards
    Hyma

    FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
    * Only allow to change data not to create new entries (exclude
    * generic functions).
      DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    <b>  LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.</b>
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    ENDFORM.                               " EXCLUDE_TB_FUNCTIONS
    remove the append from alv tool bar and add your own append(icon) to tool bar and handle that..
    *       CLASS lcl_event_handler DEFINITION for second screen
    CLASS LCL_EVENT_HANDLER1 DEFINITION .
      PUBLIC SECTION .
        METHODS:
    **User Command Handler
        HANDLE_USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
                                     IMPORTING E_UCOMM,
        HANDLE_TOOLBAR
            FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
                IMPORTING E_OBJECT E_INTERACTIVE.
    ENDCLASS.                    "lcl_event_handler1 DEFINITION
    *       CLASS lcl_event_handler1 IMPLEMENTATION
    CLASS LCL_EVENT_HANDLER1 IMPLEMENTATION.
    *Handle User Command
      METHOD HANDLE_USER_COMMAND.
        PERFORM EVENT_UCOMM1 USING E_UCOMM.
      ENDMETHOD.                    "user_command
      METHOD HANDLE_TOOLBAR.
        DATA: LS_TOOLBAR  TYPE STB_BUTTON.
    * append a separator to normal toolbar
        CLEAR LS_TOOLBAR.
        MOVE 3 TO LS_TOOLBAR-BUTN_TYPE.
        APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
    * append SAVE icon
        CLEAR LS_TOOLBAR.
        MOVE 'APPEND' TO LS_TOOLBAR-FUNCTION.
        MOVE ICON_SYSTEM_APPEND TO LS_TOOLBAR-ICON.
        MOVE 'APPEND' TO LS_TOOLBAR-QUICKINFO.
        MOVE ' APPEND  '  TO LS_TOOLBAR-TEXT.
        MOVE ' '  TO LS_TOOLBAR-DISABLED.
        APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
        CLEAR LS_TOOLBAR.
      ENDMETHOD.                    "handle_toolbar
    ENDCLASS.                    "lcl_event_handler1 IMPLEMENTATION
    then handle the sy-ucomm of appen row...
    hope this is what you want
    vijay
    Message was edited by: Vijay Babu Dudla

  • Flex override public function set data

    Hi,
    I have a datagrid with itemRenderer in datagridcolumn as my custom component(c1). I am getting the dataprovider data in custom component by overriding the set data function, it is fine. But now my custom component(c1) is also having another custom component(c2).
    Now the doubt is - how to get the dataprovider data in c2 component?
    Thanks in advance.

    Create a property with name custom_data in component c2
    set the value of  _customData in c2 object created in c1 with the data u get in c1 in commitProperties method of c1.
    c2.customData = this.data;

  • Apple keyboard software overrides QuarkXpress function keys

    HELP
    I recently installed Tiger 10.4.11 update, and the apple keyboard software update 1.2 for use with a new Apple keyboard. However, in QuarkXpress 6.5, now the function keys F7 and up do not work in Quark — presumably because they are being used by the keyboard software. I presumed when an application was running (e.g., Quark) IT would override. I need my F7 key in Quark!
    Is there a way to make the application take precedence? Or, is there a way to disable or uninstall the apple keyboard software? The function keys for use with itunes and dashboard, etc. are far less important to me than having the function keys available in software I use daily for work.
    Thanks so much!
    jelcroy

    Thanks for the reply — I tried that, which seemed the obvious solution, but I cannot find the place to change that — it is NOT in the keyboard shortcut list in the keyboard preferences.
    The F7 thru F9 keys on the new keyboard control playback, which I presume to be itunes and\or DVD player, judging from the icons on those keys.
    Haven't found a place to disable them. In adding apps in the keyboard shortcuts, which I tried, it doesn't allow for the key combinations needed to restore the Quark functionality I am missing since the keyboard software update, which I wish I hadn't done. There's not enough functionality in the keyboard that isn't available in a myriad of other ways to make it worthwhile, especially when it means giving up the convenience if those commands in Quark, which is where I spend the majority of my time.
    Anyone have other ideas? Can the Apple keyboard software be uninstalled or disabled?
    BTW, the control F1 command to turn off keyboard access doesn't work either.

  • Override paste function jtextpane

    Hello,
    Is there a way how i can override the default paste function in a JTextPane?
    My goal, paste the cilpboard in the JTextPane in a formatted (with styles) way.
    maybe these code -snips can help:
                    logPane = new JTextPane();
              logPane.setContentType("text/plain");
              doc = new DefaultStyledDocument();
              //ADD Key listener (paste)
              logPane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_V,0,true),"pasteKey");
              logPane.getActionMap().put("pasteKey", pasteKey);
    Action pasteKey = new AbstractAction() {
                  public void actionPerformed(ActionEvent e) {
                      logger.debug("Pushed paste");
    Edited by: Mooner on Apr 21, 2009 9:47 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Camickr,
    Thanks for the reply!
    Indeed the paste-function is done by Control-V in a JTextPane, but that just the thin i want to override.
    When i paste (press ctrl+v) i want to first format the text (with the addtext() methode) before paste it to the JTextPane
    I've create a SSCCE:
    package es.jes.LogViewer.gui.logPanel;
    import java.awt.Color;
    import java.awt.Toolkit;
    import java.awt.datatransfer.Clipboard;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.datatransfer.UnsupportedFlavorException;
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.KeyStroke;
    import javax.swing.SwingUtilities;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DefaultStyledDocument;
    import javax.swing.text.Style;
    import javax.swing.text.StyleConstants;
    import javax.swing.text.StyledDocument;
    import es.jes.LogViewer.gui.MainGui;
    import es.jes.LogViewer.gui.logPanel.tail.fileTailer;
    public class SSCCELogField extends JFrame {
         private StyledDocument doc;
         private JTextPane logPane;
         private File logFileName;
         private fileTailer tailer;
         private Style currentUsedStyle;
         private int lineNr = 0;
         public SSCCELogField(File logFileName){          
              super();
              this.logFileName = logFileName;
              logPane = new JTextPane();
              logPane.setContentType("text/plain");
              doc = new DefaultStyledDocument();
              //ADD Key listener (paste)
              logPane.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_V,0,true),"pasteKey");
              logPane.getActionMap().put("pasteKey", pasteKey);
              initStyles();
              //SET initial style
              currentUsedStyle = doc.getStyle("warnStyle");
              JScrollPane scrollPaneLogField = new JScrollPane(logPane);     
              this.add(scrollPaneLogField);
              this.setSize(800, 600);
              readLogFile();          
              logPane.setStyledDocument(doc);
          Action pasteKey = new AbstractAction() {
                  public void actionPerformed(ActionEvent e) {
                      System.out.println("Pushed paste");
         private void readLogFile() {
            BufferedReader fileReader = null;
            try {
                fileReader = new BufferedReader(new FileReader(logFileName));
                String line;
                while( (line = fileReader.readLine()) != null ){
                    addText(line);
                    line = fileReader.readLine();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            finally {
                if (fileReader != null){
                    try {
                        fileReader.close();
                    } catch (IOException exp) {
                        exp.printStackTrace();
         public void addText(String text){
              lineNr++;     
              if (text.startsWith("E")){
                    currentUsedStyle = doc.getStyle("errorStyle");
               else if (text.startsWith("I")){
                    currentUsedStyle = doc.getStyle("infoStyle");
               else if (text.startsWith("W")){
                    currentUsedStyle = doc.getStyle("warnStyle");
               else if (text.startsWith("D")){
                    currentUsedStyle = doc.getStyle("debugStyle");
              try {
                   text = text + "\n";
                  doc.insertString(doc.getLength(), text, currentUsedStyle);
              } catch (BadLocationException e) {
                   e.printStackTrace();
         public static String getClipboard() {
              // get the system clipboard
              Clipboard systemClipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
              // get the contents on the clipboard in a transferable object
              Transferable clipboardContents = systemClipboard.getContents(null);
              // check if clipboard is empty
              if (clipboardContents == null) {
                   return ("Clipboard is empty!!!");
              } else
                   try {
                        // see if DataFlavor of DataFlavor.stringFlavor is supported
                        if (clipboardContents.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                             // return text content
                             String returnText =(String) clipboardContents.getTransferData(DataFlavor.stringFlavor);
                             return returnText;
                   } catch (UnsupportedFlavorException ufe) {
                        ufe.printStackTrace();
                   } catch (IOException ioe) {
                        ioe.printStackTrace();
              return null;
         private void initStyles() {
              //SET Style
              String font = "Courier New";
              int size = 14;
              Style errorStyle = doc.addStyle("errorStyle", null);
            StyleConstants.setFontFamily(errorStyle, font);
            StyleConstants.setFontSize(errorStyle, size);
            StyleConstants.setForeground(errorStyle, Color.RED);
            StyleConstants.setBackground(errorStyle, Color.WHITE);
            Style infoStyle = doc.addStyle("infoStyle", null);
            StyleConstants.setFontFamily(infoStyle, font);
            StyleConstants.setFontSize(infoStyle, size);
            StyleConstants.setForeground(infoStyle, Color.BLUE);
            StyleConstants.setBackground(infoStyle, Color.WHITE);
            Style warnStyle = doc.addStyle("warnStyle", null);
            StyleConstants.setFontFamily(warnStyle, font);
            StyleConstants.setFontSize(warnStyle, size);
            StyleConstants.setForeground(warnStyle, Color.DARK_GRAY);
            StyleConstants.setBackground(warnStyle, Color.WHITE);
            Style debugStyle = doc.addStyle("debugStyle", null);
            StyleConstants.setFontFamily(debugStyle, font);
            StyleConstants.setFontSize(debugStyle, size);
            StyleConstants.setForeground(debugStyle, Color.GRAY);
            StyleConstants.setBackground(debugStyle, Color.WHITE);
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        SSCCELogField inst = new SSCCELogField(new File("F:\\logfile.log"));
                        inst.setLocationRelativeTo(null);
                        inst.setVisible(true);
    }

  • SetBounds(int,int,int,int) overrides LayoutManagers'  function?

    Hi all,
    I am working with Sun One, and it added the following line into my code
    for two panels (no idea why it did this):
    panel1.setBounds(0,0,-1,-1); (likewise for panel2)
    and this made both of them disappear. Since I cannot modify generated code, I wrote a function that calls setBounds for the same panels with some arbitrarily chosen values, so that they appear again.
    1. You know why Sun One put this code?
    2. I want to use LayoutManagers in my application, no absolute positioning and I fear that calling setBounds overrides Layout Managers and does not let them handle layout?
    3. Using Box and BorderLayouts, is it assured that when the main frame is resized then components will resize, too? If it's not, which layout managers should I use to obtain this behavior?
    Thanks a lot,
    Balint

    LayoutManagers are used to lay components on something, such as JLabel's on a JFrame. You can still specify what size they are without overriding anything. The default layout manager for components is BorderLayout. The method setBounds is not a LayoutManager only method. It is used to size your components. The only reason I can think of for SunOne to set your JLabels width and height values to -1 is because if you haven't added them to anything, they're supposed to be not visible. I haven't worked with SunOne, so I'm not sure how it works, but your best bet is to code everything yourself. I've never been a big fan of WYSIWYG editors, like VisualStudio. If I want something done right, I code it from the bottom up. It may involve more work, but there is ultimate control over every aspect. My suggestion is to consider how complex you need your components layed out on the frame. The ultimate layout manager is the GridBagLayout, but it is also the most difficult one to master. I'm still struggling with it. If you want to specify the size of components, use setPreferredSize(int width, int height); instead. There are many LayoutManagers out there, and they all depend on how exactly you want your components laid out, and how much control over that you want. I hope that helps!
    James

  • Override closing function of a swing form

    how do i override the closing function of a swing form ?

    badescuga wrote:
    how do i override the closing function of a swing form ?Well, if by 'swing form' you mean a Swing based JFrame, then its closing operation can be set using [JFrame.setDefaultCloseOperation(int)|http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html#setDefaultCloseOperation(int)]. Once we provide the DO_NOTHING_ON_CLOSE value, we can directly add a WindowListener to the JFrame and do whatever custom closing operations are required, in the various methods of the listener.
    If you want to know how to do that in Yourbeans IDE, consult the help, or a Netbeans forum.

  • Help me, How can override a function of intelface?

    I want to overide a function of a interface .
    for example:
    There is a kFrameListBoss; it has Aggregated IObserver interface.
    Ioveserver interface has eight function:
    now ,I want to overide a function of IObserver,and overide only one function, the other seven function neet not overide.
    how can I do?

    If you want to change the behavior of an interface on a boss, you have to install your own interface, that fully replace all actions to original interface and when necessary propagate calls. Have a look at the section "InDesign Object Model Implementation" in the programing guide. The paneltreeview example is good to study to learn the technique.

Maybe you are looking for