Extension using code folding editor

Hi All
I have been looking thorugh the 11g extension javadoc to try and figure out how to create a textarea or editor which can do codefolding. I have not been able to find this in the extension examples either.
Which classes and/or interfaces do I need to look at to do this. I only need a very simple text panel as all I basically have is a list of strings which I would like to be an individual foldable codeblock.
Any chance someone could point me in the right direction?
Regards
Jesper

Hi Jesper,
We have subclassed JTextArea into oracle.javatools.editor.BasicEditorPane, this allows the installation of helper 'plugins' to boost the functionality.
We also have a folding mechanism, the abstract form of it is in oracle.javatools.editor.folding. Sub-class AbstractFoldingPlugin and install it via BasicEditorPane.installPlugin(...). You'll have to supply a model and definitions of what a foldable block is in your document.
The folding package is the place to start.

Similar Messages

  • Why code fold messed up by using cloned document ? (NetBeans 6.9)

    When I use cloned document, I find the user defined code fold is messed up.
    How to switch system auto producing code fold?
    [NetBeans6.9CodeFold|http://robertsong.myweb.hinet.net/images/NetBeans6.9CodeFold.JPG]
    [NetBeans6.9CodeFold2|http://robertsong.myweb.hinet.net/images/NetBeans6.9CodeFold2.JPG]
    Edited by: Robertsong on Aug 1, 2010 8:24 AM

    Sorry, I think is my orignal setting...

  • Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same

    Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same and is there any pre stalled text editor on mac if yes then where and if no then which text editor to install and how to install gcc...please help me out thanks in advance !!!

    I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding.
    Why? If you are developing and writing code on a Mac why would you not use the tools Apple has given you? And Xcode, once you get use to it, is a very nice development environment that will make you life a whole lot easier.
    If you insist on using an editor and the terminal I would recommend  Emacs   but it has a long learning curve so  something like TextWrangler  will work too.
    As for the compiler if you have Xcode installed install the command line tools and you will be able to compile from the terminal.
    good luck

  • Database connection using code in IDE

    Anybody there please help me. I cannot connect to my database from within the Java Sun One Studio 5 IDE. This situation also happens in the Enterprise Edition; I cannot connect to the oracle database from within the IDE using code.
    Please can someone tell me what I am doing wrong. I have copied all the .jar files in the Oracle 8i Jar/lib folder into the c:\sun\studio5u1_se\lib\ext. I have equally included classes12.zip and classes111.zip into this same location: c:\sun\studio5u1_se\lib\ext
    Also I have mounted this folder c:\sun\studio5u1_se\lib\ext containing all the relevant files (to the best of my knowledge) in the IDE under the filesystem.
    When I compile from the IDE, it compiles fine without errors; also when I build, it builds the code without any problem. But when I execute the code, it throws the error: Driver Not Found: oracle.jdbc.driver.OracleDriver
    Please, can somebody help me, and tell me if there is something I am not doing well.
    I include here the code:
    * displayDepartment.java
    * Created on April 4, 2004, 11:23 PM
    * @author  macdonald
    // Java core packages
        import java.awt.*;
        import java.sql.*;
        import java.util.*;
        import java.lang.*;
       // Java extension packages
       import javax.swing.*;
    public class displayDepartment extends JFrame{
                // Create a connection to the database
            String serverName = "localhost";
            String portNumber = "1521";
            String sid = "istech";
            String url = "jdbc:oracle:thin:@" + serverName + ":" +
                portNumber + ":" + sid;
            String username = "macd";
            String password = "uchenna";
            String strDr;
        /** Creates a new instance of displayDepartment */
    // constructor connects to database, queries  database,
          // processes results and displays results in window
        public displayDepartment() {
            super("Departments");
            // connect to database istech and query database
            try {
                // load database driver class
       Class.forName("oracle.jdbc.driver.OracleDriver");
                // connect to database
            // Create connection from URL
               Connection conn = DriverManager.getConnection(url, username, password);
                // create Statement to query database
             Statement statement = conn.createStatement();
                // query database
               ResultSet resultSet =
                   statement.executeQuery( "SELECT * FROM DEPARTMENTS" );
                // process query results
                StringBuffer results = new StringBuffer();
                ResultSetMetaData metaData = resultSet.getMetaData();
                int numberOfColumns = metaData.getColumnCount();
                for ( int i = 1; i <= numberOfColumns; i++ ) {
                   results.append( metaData.getColumnName( i )
                     + "\t" );
                results.append( "\n" );
                while ( resultSet.next() ) {
                  for ( int i = 1; i <= numberOfColumns; i++ ) {
                      results.append( resultSet.getObject( i )
                         + "\t" );
                  // results += "\n";
                // close statement and connection
                statement.close();
                conn.close();           
                // set up GUI and display window
                JTextArea textArea = new JTextArea(
                   results.toString() );
                Container container = getContentPane();
                 container.add( new JScrollPane( textArea ) );
                setSize( 300, 100 );  // set window size
                setVisible( true );   // display window
             }  // end try
             // detect problems interacting with the database
             catch ( SQLException sqlException ) {
                JOptionPane.showMessageDialog( null,
                   sqlException.getMessage() + strDr, "Database Error",
                   JOptionPane.ERROR_MESSAGE );
                System.exit( 1 );
             // detect problems loading database driver
             catch ( ClassNotFoundException classNotFound ) {
                JOptionPane.showMessageDialog( null,
                   classNotFound.getMessage(), "Driver Not Found",
                   JOptionPane.ERROR_MESSAGE );
                   System.exit( 1 );
          // launch the application
          public static void main( String args[] )
             displayDepartment window = new displayDepartment();
            window.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );   
      }  // end class displayDepartment

    the problem is that the oracle jars are not in your execution classpath...higlight the file you are executing or go to tools-> option and in any case select the exection types -> external executer...in the advance tab you can add the jars to the "classpath" setting

  • Bug with code folding margin

    Hi all.
    I'm using SQL Developer 3.1.07.42 for win32, windows 7.
    Not sure but probably bug - Tools|Preferences|Code Editor|Display|Show Code Folding Margin works only for current worksheet.
    If I open any another worksheet (no matter unshared it or not) this margin comes up even if checkbox Show Code Folding Margin is unchecked.
    Is it bug or feature?

    I can reproduce it, but I'm not sure where the bug lies.
    The worksheet and the code editor aren't the same (perhaps they should be) and the bug may be that the preference affects the current worksheet at all. The preference seems to work correctly for code editors.

  • Flash Builder custom code folding

    I've just donwloaded the new CC versions and will possibly be buying the subscription at the end of this month.  I was previously using CS4 versions.
    One thing I noticed though, is that the custom code folding options in the Flash CC actionscript editor are gone, you can now only collapse entire functions.  This remains true for flash builder as well.
    So is there any way to collapse custom regions in flash builder instead of just entire functions?  I'm working on a flash MMO and I've got over 10,000+ lines of code.  Being able to collapse only functions simply doesn't cut it.  It really hinders my development time as I have to scroll through masses of code in order to get to what I need.  It's also much much more confusing looking at thousands of lines of code that I don't need to see at the moment.  Visual studio has a way of defining regions by typing "#region" and "#endregion" in the area you wish to collapse.  Is there anything I can do about this?  This is a very very important feature (at least for me) that I'm not sure why it was left out, or I am unable to find it.
    Thanks.

    I've just donwloaded the new CC versions and will possibly be buying the subscription at the end of this month.  I was previously using CS4 versions.
    One thing I noticed though, is that the custom code folding options in the Flash CC actionscript editor are gone, you can now only collapse entire functions.  This remains true for flash builder as well.
    So is there any way to collapse custom regions in flash builder instead of just entire functions?  I'm working on a flash MMO and I've got over 10,000+ lines of code.  Being able to collapse only functions simply doesn't cut it.  It really hinders my development time as I have to scroll through masses of code in order to get to what I need.  It's also much much more confusing looking at thousands of lines of code that I don't need to see at the moment.  Visual studio has a way of defining regions by typing "#region" and "#endregion" in the area you wish to collapse.  Is there anything I can do about this?  This is a very very important feature (at least for me) that I'm not sure why it was left out, or I am unable to find it.
    Thanks.

  • How do I manage photos using a folder - subfolder type structure?

    How do I manage photos using a folder - subfolder type structure as I have done previously within Windows? For example, my photos were stored with a folder for each year and sub-folders for each month whicheach  held the photos. Can I do this in iPhoto?

    For example, my photos were stored with a folder for each year and sub-folders for each month whicheach  held the photos
    Why bother?
    Check out the search box at the bottom of the Window. (Click on the Magnifying glass, it opens it) Now click on the mgnifying glass in the search box) and select 'Date'. Now you can find all the photos from any day, month or year. If you want to find the photos from a range - say a paticular week - then you can do that with a Smart Album.
    Organising photos by date means you have to remember the date the shot was taken, and after a while, and after a few thousand shots, this gets harder and harder to do, so you spend more and more time rooting through folders.
    iPhoto offers a range of organising tools and each offers more possibilites to quickly find the shot you're looking for. For instance:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 45k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm usi

    When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm using a Mac with Mountain Lion OS.  Any solutions?

    Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
    LN

  • I need to use the PDF editor so I can sign or edit documents already on pdf format. Please advise?

    I need to use the PDF editor so I can sign or edit documents already on pdf format. Please advise?

    As per my understanding , To disable the field RV45A-KWMENG based on the condition for Transaction VA01/VA02.
    The conditions which i need to check is Order Type and item category.
    I understand that this is the code which i need to insert for disabling the field but i have a question here, where is the condition here and how the system understand for this field RV45A-KWMENG it has to disable. I think we need give the condition as if RV45A-KWMENG....... Another one if iam not wrong we need check that it has to be done in VA01 and VA02 then only this condition should be executed.
    IF VBAK-AUART EQ 'XXX' OR VBAP-PSTYV EQ TANN .
    IF SCREEN-NAME = 'XXX'.
    SCREEN-ACTIVE = 0
    ENDIF.
    ENDIF.
    Please suggest me the better way how can i do it in the coding.
    Awaiting for ur prompt reply.

  • Issue with Capturing Long text using CALL METHOD EDITOR- GET_TEXT_AS_STREAM

    HI Experts,
    Standard Long text is capturing using CALL METHOD EDITOR->GET_TEXT_AS_STREAM
         but not working for Custom Long text – Only changes
    Here is the Issue:
    1)      Created Custom Long text in TAB. --> Good
    2)      Entered few lines in custom Long text  --> Good
             Click on Standard Tab , Leaving Custom tab and Custom Long text-->Good
    4)      In PAI of Custom Tab – Changes captured using CALL METHOD 1 ( See below Code 1)--> Good
    5)      Entered few lines in Standard Long text in Standard Tab -->Good
    6)      Click another Standard Tab
    7)      In PAI of Standard Tab – Changes captured using CALL MEHTOD 2 ( See Below Code 2)-->Good
    8)      Come back to Standard Tab / Standard Long Text , Enter few more lines.
    9)      Change the Tab , IN PAI of Standard Tab/Standard Text , Changes Captured using CALL METHOD2 ( See Below CODE 3) --> Good
    10)   Go to Custom Tab , Custom Long text , Entered few more lines--> Good
    11)   Click on any other tab, Triggered again PAI of Custom tab / Custom Long text using Call Method1 ( See Below Code 4) -->Good triggered PAI same CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM.
    12)   But additional lines are not captured , saying ZERO LINES in Internal Table and IF_MODIFIED = NO  -->Issues lies here.
    CODE1 ( Custom Long text entry capturing – First Few Lines )
    Custom Long text Entries are stored in LS_OUTTAB-TEXT first time when entered few lines and LV_MOD is 1.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT ( FIlled with Lines entered in custom long text )
              IS_MODIFIED            = LV_MOD ( Value 1 , Modified )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    CODE2 ( Standard Long Text Entry Capturing – First Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT first time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE ( Value 1 , Modified )
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED.
    CODE 3 ( Standard Long Text Entry Capturing – Second time Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT  second  time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED. ( Value 1 , Modified )
    CODE4 ( Custom Long text entry capturing – Second Time Few Lines )
    Custom Long text Entries are not stored in LS_OUTTAB-TEXT Second Time when entered few lines and LV_MOD is 0.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT  ( ZERO ENTRIES )
              IS_MODIFIED            = LV_MOD   ( NOT MODIFIED Flag )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    Can anyone help me out of this.
    With Regards,
    Bala M

    Excellent Eitan,
    Here is what I am trying to Achieve.
    In Create Notification IW21 , They need 5 Long Text in Custom Tab ( Say Tab Name is MBR ).
    TAB1 NOTIFICATION Standard Information , TAB2 REFERENCE OBJ , TAB 3 MalFunction , Breakdown Standard one...... TAB 7 ( Custom Tab ).
    In Custom Tab , I added 5 LONG TEXT ( its 5 WHY Concept ).
    When the User enters data in 5 Long text , it should store long text along with Notification number when save.
    But Notification number will be generated @ the time of SAVE , but before that its just shows as
    %0000000001 ( and Number will be generated 1000065479) at Save.
    How to achive this .
    I did this:
    Added 5 Custom Container. and In PBO / PAI
      PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN PBO
       CREATE OBJECT TEXT_EDITOR1 ,    CREATE OBJECT TEXT_EDITOR2,    CREATE OBJECT TEXT_EDITOR3 like wise 5
       CALL METHOD TEXT_EDITOR1->SET_TEXT_AS_R3TABLE ,    CALL METHOD TEXT_EDITOR2->SET_TEXT_AS_R3TABLE .. Like wise 5 , So when the user Click on Custom Tab ( MBR ).
    It give 5 Long text.
    When he click tab1 or tab2 or tab3 .. and again tab MBR , still data is available.
    How to store this data for future retrival ( IW22 or IW23 ) ?
    Its working fine when I enter first time and goes here and there and finall save .
    IN SAVE BADI , I imported the Long text and created Standard Text SO10 with Notification Number with LONG1 , LONG2 .. means 1000065479LONG1 as standard text.
    But not working when I entered first time and go to tab1 and tab2 and then to MBR tab and added few more lines , its not exporting full lines and in IMPORT ( SAVE BADI ) giving ZERO Lines.
    Please help and thanks for your quick response.

  • What is the use of FOLDER NODE in SMARTFORMS?

    what is the use of FOLDER NODE in SMARTFORMS?
    please explain.

    Hi,
    By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Reward all helpfull answers
    Regards
    Omkar

  • When do I need to use a cell editor in a JTree?

    I'm currently trying to add checkboxes to nodes in a JTree. I use a panel containing the check box and a label for rendering. I did this because I want only the checkbox to respond to a mouse click and not the text associated with it. I've read several articles online (including the tutorial) and seen sample code as well. Do I need a cell editor or just have a cell renderer with a mouse listener? I've seen it done both ways.

    Let me rephrase the question.
    If I want to display a checkbox and a label as a node in a Jtree, which way should this be done (with or without a cell editor)? What are the advantages/disadvantages to each approach and what is recommended by Sun?
    I ended up not using a cell editor, but I've read posts on various sites where it was stated that if the user has interaction with the node then an editor should be used (with no other explanation as to why). I guess my main concern is that there might be a down side from not using a cell editor that I'm not aware of.

  • The use of  folder  option in Smartforms ?

    Hi ,
    What is theuse of  folder  option in Smartforms ?
    Thanks in advance
    RK

    You use this node to combine inferior nodes to logical groups
    The more extensive a form, the less clear the node hierarchy in the tree structure. To avoid this, you can combine related nodes under a folder node. When displaying tables, you can use the folder node to protect multiple table lines against automatic page break (see: Page Protection for Tables).
    Nodes assigned to cells of a template can be identified more easily in the tree structure if there is a folder for each line or column.
    Depending on the length of time by which the last date for payment has been exceeded, each dunning letter should start with a different introduction. Create a text node containing the relevant dunning letter for each dunning level and specify conditions to print only one of the nodes. In this case, it is a good idea to group the different text nodes together in a folder.
    Procedure
    Create a node of type Folder in the navigation tree of the Form Builder.
    Enter a unique name for the node and a description (for example, cells of the third line).
    To assign other nodes to the folder, use Drag&Drop to put them in the folder node or insert new nodes as subnodes.
    On the Events tab, you can activate a header and a footer area. For more information, see Printing Tables.
    reward points if helpful..........

  • I have always used Nero wav editor to add eq, add volume and noralize recordings....do I have that feature in premier elements? and if so, where do I find it?

    I have always used Nero wav editor to add eq, add volume and noralize recordings....do I have that feature in premier elements? and if so, where do I find it?

    Zillenwater said: You can export a FLIP video clip using Picasa 3, and then bring it into Premiere Elements. The video and audio will successfully come in.
    Thanks much - this worked very well and was so easy. After spending hours looking at a lot of different converters and getting nowhere, I spotted this solution.
    I used Flip avi files directly from the camera, copied them into a folder that Picasa 3 could find, and then exported them. They showed up in my /My Documents/My Pictures/Picasa/Exported Videos folder as Windows Media Files (.wmv). I brought my test files into Premiere Pro 1.5, previewed them, placed them in the timeline and rendered them. they looked good here, so I exported my movie and the video looks pretty good, considering it was from the Flip.
    Picasa did something that a dozen other conversion programs couldn't get right (or at least I couldn't find the right combination of codecs and settings). It's a relief, alright, and information I'm happy to share.

  • How is the 'code fold' functionality implemented?

    Hi all,
    I'm thinking that I'd like to have a form, which is broken into several categories, that has 'code fold' functionality ala NetBeans. I'm thinking the way to do this would be to simply place all of these JPanels in the form in the nodes of a tree, when collapsed, just the title is displayed, when they expand, the JPanel appears. I admit I've not yet tried this approach yet , I first wanted to find out if anyone has done something like this and what approach they might use. Any feedback is appreciated.
    Thanks
    Mike

    I read this and thought it would be great to have in my own app.
    So, after getting some code from these forums I have cobbled together the following classes.
    This one creates a collapsible panel:
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.GradientPaint;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.GridLayout;
    import java.awt.LayoutManager;
    import java.awt.Rectangle;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.border.EmptyBorder;
    import javax.swing.border.LineBorder;
    * CollapsiblePanel.java Created on 22-Apr-2005
    public class CollapsiblePanel extends JPanel
        private class TitlePanel extends JPanel
            private Color fadeto = new Color(200, 212, 247);
            public TitlePanel(LayoutManager layout)
                super(layout);
            protected void paintComponent(Graphics g)
                GradientPaint gradient = new GradientPaint(0, 0, Color.white,
                        getSize().width - 10, getSize().height, fadeto, true);
                Graphics2D g2d = (Graphics2D) g;
                g2d.setPaint(gradient);
                g2d.fill(new Rectangle(getSize().width, getSize().height));
        private JPanel mPanel = new JPanel(new GridLayout(0, 1, 2, 2));
        private JLabel mTitle;
        private JLabel mButton;
        public CollapsiblePanel(String title)
            setLayout(new BorderLayout());
            final Color active = new Color(66, 142, 255);
            final Color inactive = new Color(33, 93, 198);
            final ImageIcon up = new ImageIcon("Up.gif");
            final ImageIcon down = new ImageIcon("Down.gif");
            mTitle = new JLabel(title);
            mTitle.setForeground(inactive);
            mButton = new JLabel(up);
            TitlePanel panel = new TitlePanel(new BorderLayout());
            panel.setBorder(new LineBorder(Color.BLACK));//EmptyBorder(2, 2, 2, 2));
            panel.add(mTitle, BorderLayout.CENTER);
            panel.add(mButton, BorderLayout.EAST);
            panel.addMouseListener(new MouseAdapter()
                public void mouseClicked(MouseEvent e)
                    mPanel.setVisible(!mPanel.isVisible());
                    mButton.setIcon(mPanel.isVisible() ? up : down);
                public void mouseEntered(MouseEvent e)
                    mTitle.setForeground(active);
                public void mouseExited(MouseEvent e)
                    mTitle.setForeground(inactive);
            panel.setBackground(Color.WHITE);
            mPanel.setBorder(new EmptyBorder(2, 2, 2, 2));
            //mPanel.setBackground(new Color(214, 223, 247));
            add(panel, BorderLayout.NORTH);
            add(mPanel, BorderLayout.CENTER);
        public Component add(Component comp)
            return mPanel.add(comp);
    }This one creates a panel to hold many collapsible panels.
    NOTE: This uses the TableLayout manager which can be found on the web. I am sure that all of you here could change it to use GridbagLayout.
    import javax.swing.JPanel;
    import info.clearthought.layout.TableLayout;
    * Panel to hold many CollapsiblePanels
    * @author Garry Lovesey
    * @version 1.0 22-Apr-2005
    public class CollapsiblePanelBar2 extends JPanel
        public static double PREFERRED = TableLayout.PREFERRED;
        public static double FILL = TableLayout.FILL;
        private TableLayout layout;
        public CollapsiblePanelBar2(CollapsiblePanel panel, double layoutPreference)
            super();
             // create the GUI
              // b - border
              // f - FILL
              // p - PREFERRED
              // vs - vertical space between labels and text fields
              // vg - vertical gap between form elements
              // hg - horizontal gap between form elements
              double b= 10;
              double f= TableLayout.FILL;
              double p= TableLayout.PREFERRED;
              double vs= 5;
              double vg= 10;
              double hg= 10;
              double size[][]= { { f }, { // our column sizes
                   layoutPreference }}; // our row sizes
              layout= new TableLayout(size);
              setLayout(layout);
              // now we add in our starter panel
              add(panel, "0,0");
        public void add(CollapsiblePanel panel, double layoutPreference)
              // we need to add our panel into our layout
            int rowToAdd = layout.getNumRow();
            layout.insertRow(rowToAdd, layoutPreference);
            add(panel, "0," + rowToAdd);
    }

Maybe you are looking for

  • How can I view a wmv attachment

    I get many emails with wmv attachment. How can I view them? Is there an Ipad App that solves this? Thanks Marc

  • How to implement adf skins in JDeveloper 11g

    How to integrate CSS in ADF using JDeveloper 11g without Trinidad.

  • Sum the Sum total values above

    Post Author: John Patterson CA Forum: Formula I have created a report that contains a list of values (in a group) that come from a formlar that has Sum {} totals in it.  All I want to do is sum that list into one value below, just like Excel would do

  • HT4623 How can i get my delete messages back. i did not back them up

    okay you guys so i was going thru my messages and i wanted to delete a certain one and ended up deleting all my message and i didnt back none of my messages up or anything = (, i was wondering if their was a way i ould get them back , i already tryed

  • InDesign CS6 Design & Web Premium

    I am trying out CS6 design & web (previously only used for print) especially after hearing all of the great app improvements and would really like to use pdf's and take advantage of the pinch to zoom. But I can not find a way to test this and be able