How to define a default size to JToolBar's Buttons?

The size of the buttons of my JToolBar is relative to the text I write on them, I want all buttons to have the same default size..
I'm searching on google, on forums, on documentation.. but still don�t find nothing..
Any idea?

If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
see http://homepage1.nifty.com/algafield/sscce.html,
that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
Don't forget to use the "Code Formatting Tags",
see http://forum.java.sun.com/help.jspa?sec=formatting,
so the posted code retains its original formatting.

Similar Messages

  • How to setup a default size for new divs in fluid grid layout in dreamweaver?

    Hi,
    how to setup a default size for a new divs in fluid grid layout in dreamweaver? I don't need the default size for new divs as a 100% width, I need them 13.69% as a one coulmn width only (7 coulmns fluid grids layout for desktop size 1000w).
    This problem I've faced when I intended to insert dozens of fluid grid divs in the layout.

    Sorry, I don't believe that you have had a good look at the Foundation framework. I'll now hold your hand while we go through the basics.
    Here is the specific page http://foundation.zurb.com/docs/components/grid.html
    The default values are
    Em-base : 16px
    Row width: 62.5em (62.5em x 16px = 1000px)
    Columns per row: 12
    These and other default values can be changed. The fact of the matter is that if you stipulate a section width of 2 or 3 or 12 columns, the widths will automatically be calculated for you.
    In your case, if you want 7 columns, all you need to do is change the number of columns per row and the rest is done for you.

  • How to define the default activity for an unbounded task flow?

    In the new "Fusion Developer’s Guide for Oracle Application Development Framework 11g Release 1" documentation at the bottom of page 14-3 it states "An unbounded task flow .... contains a default activity, an activity designated as the first to run in the unbounded task flow, because an unbounded task flow does not have a single point of entry."
    What I can't find is how to define the default activity in an unbounded task flow and where this is recorded? Can we set this via the task flow diagrammer, and which configuration file is it stored?
    I note the first time I run the application with an unbounded task flow a dialog asks me which of the activities in the adfc-config.xml file to make the default, but I can't find where this is recorded.
    Anybody have any ideas?
    Thanks,
    CM.

    Chris,
    In fact this information is nothing that belongs into the taskflow meta data because unbounded taskflow have more than one entry point and there is no notion of default. Its a tools setting (JDeveloper) we had before
    Frank
    Message was edited by:
    Frank Nimphius

  • HOW to define the default language in the portal

    Normally the portal take the language of the internet explorer for user.
    I want to define a default language for all portal users in our portal, so that every user get the same default language.
    Can anyone tell me how to do this?
    We are on EP6 SP2.
    Thanks Sybille

    Hi Olivier,
    thank you for the response.
    I added
    request.mandatorylanguage=de
    request.mandatorycountry=de
    to
    request.defaultlanguage=de
    request.defaultcountry=de
    Now, I get the default language german, but when I want to changed the portal language over personalize to English, the result is nevertheless the german language.
    Can you help me again? Where can I get a documentation about this?
    I want a default language: German. Also when the Internet Explorer has a different language. But when the user select manual one of the permitted languages (English and German) over the personalize button, the language should change to the selected language. Is it possible?
    Bye Sybille

  • How to define the default thumbnail, appearing after exporting a video in Premiere Pro?

    Hi community,
    When I export a video in Premiere Pro, the default thumbnail (appearing in windows file explorer for example) is never the best.
    At my job, I need to create a lot of video that I publish through a CMS. Every time, i need to reset the preview thumbnail of the video because the default one is not accurate.
    How to define which frame of my video will be used as a preview thumbnail after the video is exported?

    This is not something you can control with PP.

  • How to define our line size in module pool?

    Dear Friends,
    I have requirment to increse the length or size of a list which is calling itself from a module pool using leave list processing.
    Please suggest me the way?
    Regards
    Ricky

    It is very much same like report programming.
    Report z******       Message-id 38       Line-Size  190       Line-Count 0       No Standard Page Heading.
    use this report command on top of page to define the line size.

  • Processing 1.0 How to define CUSTOM paper size?

    Hi all,
    I'm working in processing and I'm looking for a way to define my own paper size.
    This is the most "cleanest" version of the script.
    In fact this part is as good as the exact script from seltar
    So the main focus right now would be the line between the
    four backslash lines.
    // Printer - Jpg and Text (more can easily be implemented)
    // PrintService http://java.sun.com/j2se/1.4.2/docs/api/javax/print/PrintService.html
    // DocFlavor http://java.sun.com/j2se/1.4.2/docs/api/javax/print/DocFlavor.html
    // PrintRequestAttributeSet http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/PrintRequestAttributeSet.html
    // Attribute http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/Attribute.html
    // Yonas Sandbæk - http://seltar.wliia.org
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.MediaSizeName;
    import javax.print.attribute.standard.MediaSize;
    import javax.print.DocFlavor;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.ServiceUI;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.attribute.standard.MediaPrintableArea;
    import javax.print.attribute.standard.MediaSize;
    import javax.print.attribute.standard.*;
    import com.sun.image.codec.jpeg.*;
    PrintIt p = new PrintIt();
    void draw(){
    // blabla drawing
    if(keyPressed && key == 'p') p.printJpg(get(0,0,width,height));
    class PrintIt{
      PrintService[] services;
      PrintService service;
      DocFlavor docflavor;
      Doc myDoc;
      PrintRequestAttributeSet aset;
      DocPrintJob job;
      PrintIt(){
        myDoc = null;
        job = null;
        services = null;
        setService(PrintServiceLookup.lookupDefaultPrintService());
        setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
        aset =  new HashPrintRequestAttributeSet();
        //aset.add(MediaSize.findMedia(0.5, 0.5, MediaSize.INCH));
        aset.add(MediaSize(10, 10, Size2DSyntax.MM));
      void setService(PrintService p)
        service = p;
      void setDocFlavor(DocFlavor d)
        docflavor = d; 
      void listPrinters(){
        services = PrintServiceLookup.lookupPrintServices(null, null);
        for (int i = 0; i < services.length; i++) {
         System.out.println(services.getName());
         DocFlavor[] d = services[i].getSupportedDocFlavors();
         for(int j = 0; j < d.length; j++)
         System.out.println(" "+d[j].getMimeType());
    services = null;
    // prints a given image
    void printJpg(PImage img){
    setDocFlavor(DocFlavor.BYTE_ARRAY.JPEG);
    print(bufferImage(img));
    // prints a given string
    void printString(String s){
    setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
    print(s.getBytes());
    boolean print(byte[] b){
    if(!service.isDocFlavorSupported(docflavor)){
    println("MimeType: \""+docflavor.getMimeType()+"\" not supported by the currently selected printer");
    return false;
    boolean ret = true;
    try{
         myDoc = new SimpleDoc(b, docflavor, null);
    catch(Exception e){
         println(e);
         ret = false;
    job = service.createPrintJob();
    try {
         job.print(myDoc, aset);
    catch (PrintException pe) {
         println(pe);
         ret = false;
    return ret;
    // used with printJpg()
    byte[] bufferImage(PImage srcimg){
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    BufferedImage img = new BufferedImage(srcimg.width, srcimg.height, 2);
    img = (BufferedImage)createImage(srcimg.width, srcimg.height);
    for(int i = 0; i < srcimg.width; i++)
         for(int j = 0; j < srcimg.height; j++)
         int id = j*srcimg.width+i;
         img.setRGB(i,j, srcimg.pixels[id]);
    try{
         JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
         JPEGEncodeParam encpar = encoder.getDefaultJPEGEncodeParam(img);
         encpar.setQuality(1,false);
         encoder.setJPEGEncodeParam(encpar);
         encoder.encode(img);
    catch(FileNotFoundException e){
         System.out.println(e);
    catch(IOException ioe){
         System.out.println(ioe);
    return out.toByteArray();

    Hi all,
    I'm working in processing and I'm looking for a way to define my own paper size.
    This is the most "cleanest" version of the script.
    In fact this part is as good as the exact script from seltar
    So the main focus right now would be the line between the
    four backslash lines.
    // Printer - Jpg and Text (more can easily be implemented)
    // PrintService http://java.sun.com/j2se/1.4.2/docs/api/javax/print/PrintService.html
    // DocFlavor http://java.sun.com/j2se/1.4.2/docs/api/javax/print/DocFlavor.html
    // PrintRequestAttributeSet http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/PrintRequestAttributeSet.html
    // Attribute http://java.sun.com/j2se/1.4.2/docs/api/javax/print/attribute/Attribute.html
    // Yonas Sandbæk - http://seltar.wliia.org
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.MediaSizeName;
    import javax.print.attribute.standard.MediaSize;
    import javax.print.DocFlavor;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.ServiceUI;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.print.attribute.standard.MediaPrintableArea;
    import javax.print.attribute.standard.MediaSize;
    import javax.print.attribute.standard.*;
    import com.sun.image.codec.jpeg.*;
    PrintIt p = new PrintIt();
    void draw(){
    // blabla drawing
    if(keyPressed && key == 'p') p.printJpg(get(0,0,width,height));
    class PrintIt{
      PrintService[] services;
      PrintService service;
      DocFlavor docflavor;
      Doc myDoc;
      PrintRequestAttributeSet aset;
      DocPrintJob job;
      PrintIt(){
        myDoc = null;
        job = null;
        services = null;
        setService(PrintServiceLookup.lookupDefaultPrintService());
        setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
        aset =  new HashPrintRequestAttributeSet();
        //aset.add(MediaSize.findMedia(0.5, 0.5, MediaSize.INCH));
        aset.add(MediaSize(10, 10, Size2DSyntax.MM));
      void setService(PrintService p)
        service = p;
      void setDocFlavor(DocFlavor d)
        docflavor = d; 
      void listPrinters(){
        services = PrintServiceLookup.lookupPrintServices(null, null);
        for (int i = 0; i < services.length; i++) {
         System.out.println(services.getName());
         DocFlavor[] d = services[i].getSupportedDocFlavors();
         for(int j = 0; j < d.length; j++)
         System.out.println(" "+d[j].getMimeType());
    services = null;
    // prints a given image
    void printJpg(PImage img){
    setDocFlavor(DocFlavor.BYTE_ARRAY.JPEG);
    print(bufferImage(img));
    // prints a given string
    void printString(String s){
    setDocFlavor(DocFlavor.BYTE_ARRAY.AUTOSENSE);
    print(s.getBytes());
    boolean print(byte[] b){
    if(!service.isDocFlavorSupported(docflavor)){
    println("MimeType: \""+docflavor.getMimeType()+"\" not supported by the currently selected printer");
    return false;
    boolean ret = true;
    try{
         myDoc = new SimpleDoc(b, docflavor, null);
    catch(Exception e){
         println(e);
         ret = false;
    job = service.createPrintJob();
    try {
         job.print(myDoc, aset);
    catch (PrintException pe) {
         println(pe);
         ret = false;
    return ret;
    // used with printJpg()
    byte[] bufferImage(PImage srcimg){
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    BufferedImage img = new BufferedImage(srcimg.width, srcimg.height, 2);
    img = (BufferedImage)createImage(srcimg.width, srcimg.height);
    for(int i = 0; i < srcimg.width; i++)
         for(int j = 0; j < srcimg.height; j++)
         int id = j*srcimg.width+i;
         img.setRGB(i,j, srcimg.pixels[id]);
    try{
         JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
         JPEGEncodeParam encpar = encoder.getDefaultJPEGEncodeParam(img);
         encpar.setQuality(1,false);
         encoder.setJPEGEncodeParam(encpar);
         encoder.encode(img);
    catch(FileNotFoundException e){
         System.out.println(e);
    catch(IOException ioe){
         System.out.println(ioe);
    return out.toByteArray();

  • Obiee 10g - How to Increase the default size of Bubble chart radius axis

    Hi,
    I have an requirement of creating bubble chart in obiee 10g.
    When i was developing the bubble chart i noticed that there is no option of increasing the size of the bubble.
    When the measure value is low the bubble is not getting displayed.
    Kindly help me with any solution.
    Regards,
    Abdul

    Hi Alok_Aswal,
    In SQL Server Reporting Services 2008, the Bubble chart has several custom attributes which allow us to control the size of the bubbles. "BubbleMaxSize" and "BubbleMinSize" attributes allow us to define the size of the bubble in the chart series. The values
    set are in percent of the whole chart size. We can find those attributes in the property pane by selecting bubble series and expanding 'CustomAttributes' properties.
    And based on my research, the Marker size has a wide range, but for some reason once we get to around 8 the bubble in the legend will not grow any bigger. So in your scenario, we can set the Marker size to 8pt, then set the appropriate “BubbleMaxSize" and
    "BubbleMinSize" based on the chart size to make the size of both the bubble are the same. For example, we can also set “BubbleMaxSize" and "BubbleMinSize" to 8, then manually adjust the chart size until both the bubbles have same size.
    Beside, we can delete the original legend, and drag a tablix to the right of the chart. And then insert the corresponding data and color to tablix to let it looks like a legend. For more details information, you can refer to the link below to see Mike’s
    post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cbf2f48e-fe40-4c1b-b82a-d40fd269f2ef/setting-custom-colors-on-a-column-stacked-bar-chart?forum=sqlreportingservices
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to define MasterSpread page size ?

    Hi erverybody,
    I'm looking for a way to create a new master with a custom page size. I can create a new Master with this :
    myDocument.masterSpreads.add(1, {baseName:'NewMaster', namePrefix:'A'});
    I try many options, but nothing seems to work..
    myDocument.masterSpreads.add(1, {baseName:'NewMaster', namePrefix:'A', pageHeight:'250mm', pageWidth:'250mm'});
    Any ideas ?
    Thanks,
    Cedric

    Hi,
    do resize() for each page of this masterSpread, i.e.:
    thisMasterSpread.pages[0].resize(
         CoordinateSpaces.INNER_COORDINATES,
         AnchorPoint.CENTER_ANCHOR,
         ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,
         [pageWidth, pageHeight]
    Jarek

  • HOW TO DEFINE THE LOT SIZE THAT CONSIDERS MAX STOCK AND IN FIXED LOT

    Hi Gurus,
    I have a requirement where the client wants to procure the material in fixed lots of 125. they are using manual reorder point VB with reorder point of 100. The maximum allowed stock is 400.
    When the MRP runs they want to generate a  PR that is close to 400 and also a multiple of 125. I tried to use FX and it is only generating procurement proposal for 125. When I use HB it is considering the max stock but not generating the proposal in multiples of 125. Can anyone help me out with this.
    Regards

    Hi,
    I think your problem could be solved by using rounding profile but not using
    fixed lotsize.
    In rounding profile you have to give threshold value and rounding value
    For the threshold value 1-------  Rounding value 125
                threshold value 126------Rounding value 250
                threshold value 251-------Rounding value 375
                threshold value 376 -
    Rounding value  400
    Regards,
    nandha

  • How to check the default checked  value for radio button on jsp for struts

    Hello , I just want to check the default checked value in JSP for a radio button, how can i do that?
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>

    you can set the default value for property ( which you want to default selected when the form is first loaded) in reset method of the form.
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>
    In the above case you can write the code as follows in the perticular form of this jsp.
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
         sale = "permanent";
    This will show the first check box default selected when the first time the page is loaded.

  • How to set a default pre-select for radio buttons?

    Hi
    I have some text form fields that I've set up to display some paired variables stored in a .txt file.  When the swf loads, the form fields are populated with the text.
    I've also set it up so that if you change the text and hit a submit button, the .txt file gets updated.
    I'm now tryng to set it up so that I can store radio button selections in the .txt file too.
    I've started doing it a certain way, but am wondering if there is a more straightforward way of doing ?
    Here's what I've done...
    I've set up the butttons to spit out "on" or "off" depending on the selection, and apply that to the variable that gets stored.
    Now, in the same way I loaded the variables into the text form fields when the swf is refreshed, I want to load the on/off variable, and then somehow apply it to the radio buttons so that one of them is pre-selected.
    So my questions are a) how do I take that loaded variable, and use an if statement to make it pre-select the button, and b) is there a simpler way to pre-select a button based on an external variable?
    Thanks
    Shaun

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

  • How to set default size for .chm window?

    I know there is an answer at grainge.org, but it seems to be
    referring only to a .chm using skins, which I am not.
    Anybody know how to make the default size of the .chm larger?
    thanks, Leisa

    Lacona,
    The default window size is set in your windows properties
    dialog in RoboHelp. It can also be set manually in the .hhp file
    before you compile. If you open the .hhp file in a text editor,
    such as Notepad, you will see a [WINDOWS] section and for each
    window defined there will be a series of numbers. One of these is a
    vector [in square brackets] that defines the original position.
    These are absolute screen pixels.
    In older versions of RoboHelp, one of which I use, there was
    a limit to the size of the window RH would allow but when I changed
    the .hhp, RoboHelp didn't try to overwrite it unless I reopened the
    Windows properties dialog. I'm not sure how the latest versions
    handle this but you might try editing the .hhp with Notepad and
    then compiling the .chm.
    John

  • Default size and location, dialog boxes

    how can I set default size and location of dialog boxes? I have tried several things to no avail,
    thanks in advance

    1. You could create your own subclass of Dialog/JDialog with your defaults set automatically
    2. You could create a DialogFactory that creates Dialogs (pretty much the same as 1)

  • How to change default close maximize and minimize button in mac?

    How can I change default close, maximize and minimize button in mac?

    no. but you can make resizable.

Maybe you are looking for