How to put margin between Components added to JToolBar ?

Hello,
how can i put a margin between components set to jtoolbar?

Border dont work because it increases the width/height of my components but not the margin to the other component.
toolBar.add(Box.createHorizontalStrut(10)); worked thank you

Similar Messages

  • How to pass data between components?

    Hi everyone,
    How can I pass data between components? If possible, please
    give me sample code. Thanks.
    Note: I am using Flex 3.
    May

    There are lots of examples in the doc. You can start here:
    http://livedocs.adobe.com/flex/3/html/mxmlcomponents_advanced_1.html
    Stephen

  • How to put validation between attributes at View Object level in BC4J

    Hi,
    Is it possible in BC4J to put validation between attributes at View Object level?
    I know that I can do it at Entity Object level in validateEntity method, but I have several View Objects connected with one Entity Object and don't want to have the same validation logic for all View Objects.
    Thanks for any help!

    It returns errorWhat error does it return?
    John

  • Flex chart how to put distance between x-axis data

    hello
    i am using flex chart line series and column series. i want
    to display 100 data points, with different dates along the x-axis,
    but i don't want all 100 points to be displayed at the same time as
    the x-axis dates will not be readable. i want to have a fixed space
    between each x-axis point and the user then scrolls along the
    chart.
    i read the API but do not see any way to add the x-axis
    spacing?
    thank you for any assistance.
    Tony

    I don't know what you mean then.
    If you set the min and max to be a certain number of days
    apart then you know the dates within those days will be displayed.
    That combined with the width of the chart will define how much
    space there is between x-axis points.

  • Newbie How to put spaces between buttons

    I have a CANCEL and a SAVE button in a REGION.
    I tried putting    &nbsp:
    I would like to put about 4 spaces between them.
    Suggestions?
    Thanks.
    Steve

    You can try putting &ampnbsp;&ampnbsp;&ampnbsp;&ampnbsp; (that's a semi-colon, not a colon) in the Post Element Text of the first button.
    Regards,
    John

  • How to control margin size between components in Java Studio Creator 2?

    Hi,
    a website layout with hard-coded coordinates (x,y) for component positions cannot adapt to the size of the user's browser window. Therefore, I use a kind of flow layout instead, consisting of components that are grouped in nested GridPanels (without any hard-coded coordinates).
    This works pretty well, but the layout looks a little jammed, i.e. each text box or button is immediately followed by the next element (vertically). Therefore, I'd like to introduce some whitespace / increase the margins between the elements. However, all solutions I came up with are not really applicable:
    1. Using the CSS Margin and / or Padding properties shifts the text of e.g. "Static Text" components by the selected number of pixels (which is good), but it does not shift the components further below (which is bad). Hence the text will frequently overlap with the text of the following component.
    2. I can solve the overlap problem by increasing the height of the the component, but this has to be done separately for each component and fails if the number of words in a "Static Text" field is dynamic.
    3. I did not find a way to specify in the CSS or elsewhere that a "Static Text" component should be 10 px + its "natural size" (i.e. height required to display all lines of a multi-line "Static Text"), which would also solve the problem.
    Ideas and suggestions are highly appreciated!
    Best regards,
    Christoph

    Try this:
    In onload property of body element, add:
    var myTable = document.getElementById("form1:gridPanel1");
    myTable.cellSpacing="10px";
    myTable.style.position="absolute";
    myTable.style.top="-10px";
    myTable.style.left="-10px";

  • How to put some space b/w two components in panelGrid

    Hi,
    Can any one tell me how to put some space between two components in a panelgrid.I am trying to put   between the components in panelGrid,but it is not allowing me.
    I tried by putting <div> tags also...I am getting space on the top of the panelGrid...
    please tell me.
    Thanks

    Apply CSS. Make use of the margin/padding properties.
    If you never heard of CSS, start here: http://www.google.com/search?q=css+tutorial
    It's one of the essential knowledges (near HTML/JS/DOM) for webdevelopment.

  • How to set the margin between panel?

    i have added four panels to a frame by borderlayout, however, i think that they are too close together...
    any method that can be used, such that i can increase the margin between four panels?
    thx

    thx u ...
    however, it just increase the margin between the four
    panels, how can i increase the margin
    between the panel and the frame?
    thx u again..JPanel contentPane = new JPanel(new BorderLayout(4,4));
    // next line answers question above
    contentPane.setBorder(BorderFactory.createEmptyBorder(4,4,4,4));

  • How to make separation between added buttons into a jToolBar?

    Hi friends,
    I have made a jToolBar (using NetBeans IDE 5.5) with several buttons, but i dont know how to make custom separation between those added buttons. I will appreciate it if anyboy give me some tips.
    Thanks in advance,
    Reza_mp

    I don't know about NetBeans but yeah U can add horizontal atruts and verticals struts between two components, i.e.
    1.) add first component
    2.) add horizontal or vertical struts(according to ur toolbar)
    3.) add second component
    4.) add add horizontal or vertical struts(according to ur toolbar)
    this will definitely solve ur problem.
    If it does, don't forget to pay ur points.

  • How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice

    Hi,
    Kindly solve, How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice.
    Regards,
    Rajeev.

    Follow this step..
    1. In SQL Server, go to the SAP B1 Database you're using. 
    2. then on the Object Explorer , go to Database Folder, explode the SAP DB->Programmability->Stored Procedures->SBO_SP_TransactionNotification * the only Stored Procedure that is allowed to be edited. Just right click and modify
    3.  Try to paste this -> and click F5
    If
    @object_type ='13' and @transaction_type in ('A','U')
    Begin
    If EXISTS
    select DocEntry from ONIV
    Where DocEntry = @list_of_cols_val_tab_del
    and  SlpCode<>'-1'
    Begin
    set @error_message = 'Please select the Sales Employee'
    set @error = 1
    END
    END
    Regards
    Kennedy

  • How do I keep Microsoft from adding things to my computer. I have updates off, and recently they have put two new things on that I know of-bacause they caused a problem with my computer.

    How do I keep Microsoft from adding things to my computer. I have automatic updates off (because one of their updates caused my computer to crash), but recently they placed an add-on for Firefox that required much time to remove, and they also added something else that caused Outlook to not work. I don't know what else they might have added that I know nothing about.
    == This happened ==
    Not sure how often
    == The crash was a few years ago, the other two events were within the last couple of months.

    In terms of the Firefox add-ons, see http://support.mozilla.com/en-US/kb/.NET+Framework+Assistant
    For MS installing things that are not part of Firefox, I think you're better off asking in a Windows forum.

  • How to put Video/DVD/games/eBook to Nokia

    Nokia phone still the NO.1 of all the phones, As a fan to Nokia phone, I want to share with you some tips to play Nokia. Only some experience of play Nokia phone, just enjoy it.
    This guide will show you how to put videos to Nokia, DVD to Nokia, games to Nokia and eBook to Nokia.
    1 How to convert DVD/Video to Nokia
    2 How to free download games to Nokia
    3 How to put eBook to Nokia
    1 How to convert Video/DVD to Nokia
    After you download [url=http://www.daniusoft.com/dvd-to-nokia-suite.html]Daniusoft DVD to Nokia Suite[/url], you may find there are two options for you to choose for DVD to Nokia or Video to Nokia.
    1 Run “DVD to Nokia Converter” to load Daniusoft DVD to Nokia Converter.
    Insert your DVD disc into your DVD-Rom. Click “Load DVD” button to add the DVD file. You can also click “Load File” to add DVD/IFO from your hard disk.
    [img]http://www.daniusoft.com/article-image/nokia/dvd-nokia.jpg[/img]
    A regular DVD movie has several titles, by default, this software will merge all the DVD chapters into one video clips, you can check the click box before the title list to select any DVD clips you want to rip. Then just check the box “Merge into one file” to join file.
    2 Open the drop download list to choose the Audio and Subtitle you like, you can also change the output files location.
    3 Click on “Start” button to start the conversion.
    Video to Nokia
    Click “Video to Nokia Converter” to load the Daniusoft Video to Nokia Converter.
    The convert video to Nokia is similar with the operation of convert DVD to Nokia
    “Add” button to load video -> Choose output “format” -> “Start” Convert
    This software supports batch conversion, so you can add several video clips at one time.
    Tips:
    Cut off the black edge of DVD- Click on “Effect” button. Move your mouse cursor to a box on the frame around the video to cut off black edge.
    Control file size- You also click on the “Settings” button to customize the resolution, such as: video bit rate, encoder, frame rate, audio bit rate, channel, etc. This program also lets you create a profile and save it, then you can use different settings for each video clips.
    With the “trim” function, you can trim any segment of videos to convert as you want:
    Edit video effect – Click on “Effect” button. You can Adjust Brightness, Contract, Saturation of the video and the adjust the volume of music.
    2 How to download games to Nokia (Free Nokia Java Games Installation guide)
    Step 1 Download one of the Free Nokia Java Game files to your computer, and unzip the contents to a folder called 'Games' on your desktop.
    Step 2. Download and install Nokia PC Suite
    Step 3. Connect your Nokia to your computer with a cable or Bluetooth Dongle or infra-red cable
    Step 4. Launch the Application Installer and continue. (Tutorial is based on the Nokia 7210)
    Click the Install Application Icon Pictured
    Here is a webpage which contains the games and themes list for Nokia, you may find many useful information here:
    http://www.daniusoft.com//nokia-resource-list.html
    How to transfer between Nokia and computer
    Bluetooth - To send a game to your mobile via Bluetooth. You simply right click the desired theme on your desktop, select Send To/Bluetooth/Nokia 6600
    A new message will arrive on your phone, open it and you will be able to install the new game. Once installed, delete the message and press the menu button and your game will have been added.
    infra red connection cable - Firstly you will need an infra red connection cable. Download the SIS file to your computer. Enable infrared port in your phone. Select your sis file on PC, press right mouse button and select "Send to -> Infrared". The file will arrive as new message. Open Messaging application, then open the message. Installer will be started automatically.
    [img]http://www.daniusoft.com/article-image/nokia/game-nokia.jpg[/img]
    Then go to the folder where your files have been downloaded and unzipped into, and select a game folder. For this tutorial we are going to install Blackjack, because we have a gambling problem Double click the Blackjack folder.
    Now you will see the all important Blackjack.jad file double click it to download it to your Nokia 7210
    Wait until the installation process has finished (indicated below). Blackjack is now installed and you can gamble to your hearts content
    3 How to read eBook on Nokia
    1 Download and install the Ebook for Nokia to use as your eBook reader.
    2 Download the Doc or TCR version of an eBook (perhaps Frankenstein).
    3 Transfer the downloaded file to your phone in the standard way.
    Recommended eBooks:
    1 eReader http://www.ereader.com/product/detail/18841?refid=45377
    Formats: eReader, Doc.
    2 MicroReader http://home.c2i.net/thvoslef/midlets/mrinfo.html
    For java-enabled Siemens mobile phones.
    Formats: Doc, TCR, text. Freeware.
    3 ReadM http://my-symbian.com/7650/applications/applications.php?faq=18&fldAuto=347
    Formats: Doc, TCR, and gzipped text files. Freeware.
    4 eBook for Nokia http://www.geocities.com/ebooknokia/
    Formats: Doc, TCR, text, and HTML. Freeware.
    5 iSilo http://www.isilo.com/
    iSilo reads Doc eBooks in addition to its own iSilo format, and it's very easy to convert text, HTML, or DOC files into an iSilo document using free desktop tools.
    Formats: Doc and iSilo.

    Re: Ebooks
    Your explanation for adding ebooks to the phone:
    "3 How to read eBook on Nokia
    1 Download and install the Ebook for Nokia to use as your eBook reader.
    2 Download the Doc or TCR version of an eBook (perhaps Frankenstein).
    3 Transfer the downloaded file to your phone in the standard way."
    Well the only way I know how to put ANYTHING on there is ZOON and ZOON DOES NOT HAVE AN OPTION IN IT FOR EBOOKS THAT I CAN SEE.  
    How is "IN THE STANDARD WAY" supposed to be of any use or help to me whatsoever when STANDARD WAY FOR EBOOKS IS NOT EVIDENT TO ME???

  • Tab between Components

    Hi
    In my application I want the user to be able to tab between components. The order should be as follows - tree, radio button, table, button. I have no problem going from tree to radio button to table, but once in the table if you keep pressing tab if just cycles through the rows.
    I use the setNextFocusableComponent(component) method. Here is a snippet of my code :
    tree.setNextFocusableComponent(radioButton);
    radioButton.setNextFocusableComponent(table);
    table.setNextFocusableComponent(button1);
    Any suggestion on how to solve this problem are welcomed
    Thanks
    Bernie-wolf

    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class Ex {
        public static void main(String[] args) {
            final JFrame f = new JFrame("Ex");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            final JTable t = new JTable(10,10);
            t.setSurrendersFocusOnKeystroke(true);
            KeyStroke tab = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0);
            KeyStroke ctrl_tab = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_DOWN_MASK);
            KeyStroke[] forward = {tab, ctrl_tab};
            Set forward_set = new HashSet(Arrays.asList(forward));
            t.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, forward_set);
            final DefaultCellEditor editor = (DefaultCellEditor) t.getCellEditor(0,0);
            JTextField editorComp = (JTextField) editor.getComponent();
            editorComp.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, Collections.EMPTY_SET);
            Action myTabAction = new AbstractAction("myTabAction") {
                public void actionPerformed(ActionEvent evt) {
                    editor.stopCellEditing();
                    t.transferFocus();
            editorComp.getInputMap().put(tab, myTabAction.getValue(Action.NAME));
            editorComp.getActionMap().put(myTabAction.getValue(Action.NAME), myTabAction);
            f.getContentPane().add(new JScrollPane(t));
            f.getContentPane().add(new JButton("somewhere else for the focus to land"), BorderLayout.SOUTH);
            f.setSize(400,300);
            f.show();
    }1. I always setSurrendersFocusOnKeystroke(true). Otherwise, the user starts typing, editing begins, but the text field doesn't get focus immediately: no cursor appears, and VK_LEFT and VK_RIGHT cause focus to go to the adjacent cells, instead of moving the cursor within the text field.
    2. As the previous poster notes, JTable recognizes ctrl+tab as a request to move focus to the next component. Unfortunately, this doesn't work when editting a cell. I also have a beef with JTable: VK_LEFT and VK_RIGHT already let you traverse cells, why not let tab move focus to the next component?
    3. Anyway, in my code above, I change the focus travesal keys so that tab works the way the OP wants it, assuming the table has focus.
    4. What if the cell editor's text field has focus? Here my code is hacky, and I hope another poster can improve it. I add an action that (a) stops cell editing (this is what happens when you press enter), then (b) moves focus along.

  • How to Persis session between two ear files

    Can anybody tell me how to persists session between two ear files?
    Please Help its urgent!!
    Rahul

    Rahul -- there's nothing as a J2EE spec requirement or even a proprietary feature of OC4J/OracleAS which will enable this.
    If you have two different EAR files, then they are two different applications, and each will have their own session which can't be shared amongst each other.
    If you have data which needs to be shared across different applications then you could either put it on a shared file system or write it to a database which you can then read from in the other application.
    One way to do this is to implement the HttpSessionAttributeListener interface which will be called when object are added/removed/updated from a session, and then make a determination on whether the new object needs to be stored in a common place to facilitate sharing between applications.
    This is more likely to be a hackaround and ideally you'd examine why you want to share session state across applications and rearchitect so you don't need to do it -- but if you want to try a solution without a major revisiting of the whole application, then perhaps it's an option.
    cheers
    -steve-
    cheers
    -steve-

  • How to put web app to Oracle 8i Jserver ?

    I've developed a web app with JDev3.1 , Oracle8i 8.1.6 on NTServer4.0.
    and want to put it on Oracle Jserver 8.1.6:
    The app works well within JDev3.1.
    I depolyed my Business Components project and test well.
    I would like to know how to put web app to Jserver. Is it possible?

    when you say "web app" i am assuming you mean an applet, servlet or java server page(jsp) ??
    if you mean this, then you need to move to the rdbms 8.1.7 environment for this support.
    rdbms 8.1.7 supports servlets and jsp's in two different ways :
    externally -- on the rdbms 8.1.7 platform
    they can be run in an external apache front end included with the 8.1.7 rdbms.
    internally -- inside the rdbms 8.1.7
    they can be deployed internally to 8.1.7 in the "oracle servlet engine" (ose)
    applets and html static pages still need to be deployed to a web server on the mid-tier OR the external apache front end included with the 8.1.7 rdbms to optimize performance.
    i hope this helps ...
    p.s. if i've misunderstood your question , please restate it.
    null

Maybe you are looking for

  • How to use UTL_SMTP to send email with existing file attachment

    Hello! I am trying to create a pl/sql procedure that lets me send an email and include an existing file to a email address. So far, I found information on how to send a file and create an attachment with information I put in the procedure. This is NO

  • How do I use Thunderbird to send third-party email through Verizon SMTP?

    What exact settings do I need to select in Thunderbird for outgoing email in order send email? I have a third-party email address, not Yahoo or Verizon. Based on other posts, I have set: server name: outgoing.verizon.net port: 587 CHECKED 'use name a

  • Jserv.properties crash APACHE

    Hi: After several tests i denoted that THIS SPECIFIC ENTRY IN jserv.properties crash the jserv : wrapper.classpath=D:\ORACLE\iSuites\panama\lib\panama.zip this entry it's in jserv.properties and crash the jserv and i get this error on apache error_lo

  • Alternative for cdcat?

    Does anyone know any good alternative for cdcat (preferably CLI)?

  • Oracle linux 6 iptables SNAT error!

    hello every one I use oracle linux 6.1,and use iptables do snat, but the POSTROUTING CHAIN can't receive packets (i see it use 'iptables-save') echo 1 > /proc/sys/net/ipv4/ip_forward 'iptables-save' like this: # Generated by iptables-save v1.4.7 on T