Its seems impossible to center a fixed size image on a container

Hi,
I have a fixed sized JPanel that I want to add to the center of a container. I would like my JPanel's center to be fixed to the center of the container.
I have tried to use GridBagLayout with a GridbagConstraint like follows:
GridBagLayout gridbag = new GridBagLayout();
getContentPane().setLayout(gridbag);
GridBagConstraints c = new GridBagConstraints();
c.fill = c.CENTER;
SubPanel subPanel = new SubPanel();
gridbag.setConstraints(subPanel, c);
getContentPane().add(subPanel);
setSize(400, 500);
setVisible(true);
But this results in the upper left corner of my JPanel being put in the center of the container. Does anyone know how to get the center of my JPanel being placed in the center?
The following two suggestions does not work:
1) This solution put my panel two the right of the center:
this.setLayout( new Flowlayout( Flowlayout.CENTER ) );
this.add( subPanel );
2) This does only work in the special case that the width of my panel is a third of the width of the container:
Use GridLayout and set the grids, when you add your panel it Should size the cells equal to your largest component which would be the JPanel, then just add blank JLabels to the other cells and add your subpanel to the center cell.

this is some sample code. It has not been compiled like this, but there should only be minor problems. if it does not work, just post a message...
ok, here we go:
import javax.swing.*;
import java.awt.*;
public class CenterLayout implements LayoutManager2 {
// make sure that only one child is added to the container
public void addLayoutComponent(Component comp, Object constraints) {
if( comp.getParent().getComponentCount() > 1 )throw new RuntimeException("only one child allowed for this layout");
// as big as you want...
public Dimension maximumLayoutSize(Container target) {
return new Dimension( Integer.MAX_VALUE, Integer.MAX_VALUE);
public float getLayoutAlignmentX(Container target) {
return .5f;
public float getLayoutAlignmentY(Container target) {
return .5f;
public void invalidateLayout(Container target) {
public void addLayoutComponent(String name, Component comp) {
addLayoutComponent(comp, name);
public void removeLayoutComponent(Component comp) {
// this assumes that the preferred size is the preferred size of the single child plus insets...
public Dimension preferredLayoutSize(Container parent) {
Insets insets = parent.getInsets();
int w = insets.left + insets.right;
int h = insets.top + insets.bottom;
if (parent.getComponentCount() > 0 ) {
Dimension childSize = parent.getComponent(0).getPreferredSize();
return new Dimension(childSize.width + w, childSize.height + h );
} else {
return new Dimension(w,h);
// this assumes that the minimum size is only the minimum size of the single child. if you want insets
// considered for minimum size, add them here
public Dimension minimumLayoutSize(Container parent) {
if (parent.getComponentCount() > 0 ) {
return parent.getComponent(0).getMinimumSize();
} else {
return new Dimension(0,0);
// this is the important stuff, calculating childs
// position. It always sets the child to its
// preferred size and centers it.
// there may be better strategies handling the case
// that the containers dimension are smaller than its
// childs dimensions. you may peek, if the child may be
// scaled to fit in considering the minimum size of the child.
// once started, layoutmanager can be improved with
// more sophisticated algorithms ever on, go and paly
// around with it :-)
public void layoutContainer(Container parent) {
if( parent.getComponentCount() > 0 ){
Component child = parent.getComponent(0);
Insets insets = parent.getInsets();
Dimension size = parent.getSize();
size.width = size.width - insets.left - insets.right;
size.height = size.height - insets.top - insets.bottom;
// put in child scaling here, if needed
child.setSize(child.getPreferredSize());
int x = insets.left + (int) ( (size.width - child.getWidth() )/2);
int y = insets.top + (int) ( (size.height - child.getHeight() )/2);
child.setLocation(x,y);
public static void main(String[] args ) {
JFrame f = new JFrame();
f.getContentPane().setLayout(new CenterLayout() );
f.getContentPane().add( new JButton("hello") );
f.setSize( 200, 200 );
f.setVisible(true);
}

Similar Messages

  • Center a Fixed Size Marquee ?

    I am using CS2 and would like to place a fixed size marquee on an image and center it to an image. Does anyone know how I can do this please ?

    This is more accurate.
    Create guides at 50% horizontal and 50% vertical.
    Draw a rectangular marquee approximately.
    Preass Ctrl+T to transform the selection.
    Enter the X and Y sizes in the options bar.
    Drag the marquee to align the centre point with the intersection of the guides.
    Press Enter.

  • My xtreme tong-its seems corrupted...before it was working very well, but for several games played it stop working, i tried remove and re-install it but nothing happens. Can you please tell me what to do in fixing this particular game.

    my xtreme tong-its seems corrupted...before it was working very well, but for several games played it stop working, i tried remove and re-install it but nothing happens. Can you please tell me what to do in fixing this particular game.

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Best way to create a fixed size centered Panel?

    I'm trying to figure out what the best way is to create a fixed size Panel that stays positioned in the center of its parent component/panel, even as the frame is resized. Is there a way to do this with some layout or will I need to write some code to reposition my panel each time the frame is resized?
    Thanks
    Jonathan

    This approach seems good. One thing I'm wondering, why does the GridBagLayout draw my Panel based on the preferred size and not the bounds? If I want to do some sort of fancy painting with my panel, I'll probably have to set the bounds as well I'd think.
    jonathan
    Here's a way. I won't go so far as to say "best",
    but it gets the
    job done. You need to control the layout of the
    parent in order for
    any solution to work -- some layouts will ignore the
    preferred,
    maximum, and minimum sizes of their components.
    import java.awt.*;
    import javax.swing.*;
    public class CenterTest {
         public static void main(final String[] argv) {          
              final JPanel fixedPanel = new JPanel();
    fixedPanel.setPreferredSize(new Dimension(100,
    0, 100));
              fixedPanel.setBackground(Color.BLUE);
    final JPanel panel = new JPanel(new
    ew GridBagLayout());
              panel.setBackground(Color.CYAN);
              panel.add(fixedPanel);
              final JFrame frame = new JFrame("GridBagLayout");
              frame.getContentPane().add(panel);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
              frame.setSize(200, 200);
              frame.setVisible(true);

  • How can I fix the image size in a "Picture Library Slideshow Web Part"

    When I upload images to be used in the Slideshow Web Part they become skewed because they are different sizes. Is there a way to fix this besides uploading images that are all the same size? 
    Thanks,
    Kathleen

    http://webcache.googleusercontent.com/search?q=cache:bfUcFkD_bxgJ:spcodes.blogspot.com/2012/08/display-slide-show-images-within-fixed.html+&cd=4&hl=en&ct=clnk&gl=in
     Display Slide Show Images within fixed size
    The Picture Library Slide Show Web Part show the images stored in a picture library with slide show effect.
    This slide show web part displays the images with it's original size. Due to this the web part changes its size according to the image size. If we want the slide show to run within the specific size on the page then we need to control the size of the images
    to the fixed length during runtime.
    To achieve this we need to add the CEWP above the picture Library Slide Show web part & insert the following script in that web part.
    <style type="text/css">
    .ms-WPBody TD {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: auto !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
    .ms-WPBody TD DIV {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
    .ms-WPBody TD IMG {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 260px !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    190px !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px; align: center
    .s4-wpcell-plain {
        PADDING-BOTTOM: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN: 0px; PADDING- WIDTH: 100% !important; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT:
    auto !important; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px; PADDING- 0px
    .ms-PartSpacingVertical {
        MARGIN-"color:#783f04;font-family:'Courier New',Courier,monospace;" />}
    .style1 {
        COLOR: #808080
    }</style>
    We can fix the height & width of the image in the .ms-WPBody TD IMG css.
    http://sharepoint.stackexchange.com/questions/66028/picture-slideshow-web-part-image-size-too-small
    How to display original images in SlideShow web part
    Step 1. Save below JavaScript code to file, for example in SlideshowObjectInitializer.txt and upload it to SiteAssets Library
    <script type="text/javascript">
    function SlideshowObjectInitializer() {
    ShowPic = (function(ShowPicOrig) {
    return function() {
    var ssObj = arguments[0]; //SlideShow object
    var curPicIdx=ssObj.index; //current picture index
    ShowPicOrig.apply(this, arguments); //call original ShowPic
    //apply some changes to display original picture in SlideShow control
    ssObj.image.src = ssObj.linkArray[curPicIdx]; //display original image instead of web image
    //change picture & container size to auto instead of fixed (by default web image size is used)
    ssObj.image.setAttribute('height','100%');
    ssObj.image.setAttribute('width','100%');
    var cell = ssObj.cell;
    cell.style.width = 'auto';
    cell.style.height = 'auto';
    cell.style.display = '';
    var pcell = ssObj.cell.parentNode;
    pcell.style.width = 'auto';
    pcell.style.height = 'auto';
    })(ShowPic);
    ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, 'imglib.js');
    </script>
    Step 2. Add CEWP on page where Slideshow web part is located and in the Content Editor tool pane, under Content Link, type
    /SiteAssets/SlideshowObjectInitializer.txt. 
    If this helped you resolve your issue, please mark it Answered

  • Fixed size panel

    How can I put a fixed size JPanel to the center of an container (f.ex. JFrame) so that if the container is resized the size of the panel doesn't change but its location will be in the center of resized container. And if the container gets smaller than panel there will become scrollbars.

    Have GridBagLayout for the frame.Use setPreferredSize on the Panel.So even if the frame resizes it will still be in the center and size won't change too since GridBagLayout respects component's preferredsizes.For scrolling you need to add the JPanel to a JScrollPane and add the JScrollPane to the Frame.
    Ranga.

  • How do I paint accurate grey levels between 0-254 in an alpha or a greyscale image? Seems impossible ... Works in 5.5 .. not in CC. Bug?

    So here's the thing . I need to be able to assign accurate shades of grey in an alpha channel as our code takes the value (between 0-244) and uses it to do its thing. I assumed this would be easy .. just choose your colour and paint .. but not so.
    In an alpha channel, or even in a greyscale image, make a selection and fill it with  RGB 6,6,6.  Since there doesn't seem to be a way to get a greyscale pallette or input the value for Alpha this is th eonly way I can see to do it.
    Now, using the info panel, check that it is indeed RGB 6,6,6.  It is.
    Now, make another selection and fill it with RGB 7,7,7.  Check this with the info panel and ...  its 6,6,6.
    OK so now use levels or brightness to try to shift that 6,6,6 upto 7,7,7 ... check it with the eyedropper color sampler tool .
    What you'll find is that the RGB value will go from 6,6,6 .. to  8,8,8  to 10,10,10     it's impossible to make it 7,7,7 or 9,9,9. Theres a whole bunch of other values that are also impossible.
    If you do the above in any of the RGB channels themselves it will work fine .. its just the Alpha and in a greyscale image.
    On a similar vein, on a regular layer, fill an area with you RGB 7,7,7, copy it and paste it into your alpha.  Looks fine .. until you use levels to increase the contrast and you'll find that what was 7,7,7 is now a noise filled mixture of, I assume, 6,6,6 and 8,8,8.
    ( NB. As a note the above also happened in CS5 but in an old version of Photoshop 5.5 it works perfectly .. I can give the RGB 7,7,7 and the value thats painted is 7,7,7. Bring it into CC and its fine. So its just the creation of tones in CC that is wrong.
    Also, it works fine if you edit the individual RGB channels .. you can get 6,6,6 AND 7,7,7 .. but as soon as you copy and paste it into the alpha . .the 7,7,7 reverts to 6,6,6 )
    So
    Q1 .. what am I doing wrong?
    Q2 .. if 8bit alphas and greyscale images can have values ranging from 0-254 .. then how do I define the value I actually want?  I can't use the K value as that's only a percentage so has fewer increments and there isn't a separate input for alpha value.
    Q3 .. or put it more simply .. how do I set the grey value to a particular number, eg. 7
    Thanks.
    Pat
    Message was edited by: Patrick Ward

    Thanks Herbert. I'll have a good look at Photoline.
    I don't know if these have anything to do with it but
    the first is the color settings from CS5,
    the second is the default from a demo install of CC14. I see the gamma tickbox but it doesn't refer to the alpha.
    the thrid are the colour settings of PS 5.5. Note this is the one that gives the correct ( with respect to my expectations ) result

  • How to set fixed size for inputfile text field

    Hi all,
    I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
    Here is some part of the code:
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1">
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>
    FileBean:
    public void fileUpdate(ValueChangeEvent valueChangeEvent) {
    RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
    UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
    UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
    Thanks,
    Jerry

    you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1" columns = "34" >
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>

  • How to set a fixed size window, so that moving 2D pictures wouldnt go off?

    Hi
    I dont if this question has been asked or no & also not sure if its right to be posted here as my problem is a java 2D graphics problem in swing environment.
    I want to know is how can i set the window to a fixed size with boundaries such that my graphics 2D picture in the swing window will not go off the edges of window when i do some transformations with the 2D picture.
    For e.g:
    so far ive got a frame window of size 350 by 350 with my 2D picture inside it made up of shapes etc...
    when i apply some transformation to it (moving it) for a distance it goes disappeared off window beyond 350 and will come back if i move it back.
    So how do i restrict the window so that when picture reaches the edge, it will not be able to move any further?
    Do i set some specific bounds to the JFrame?
    i hope i've explained it properly
    Thanks

    In a 2D coordinate system the horizontal values are represented by some letter, usually x. In the same coordinate system the vertical values are classically represented by y.
    Note: In your code, if you wish, you can replace x and y with anything you desire--p and q or perhaps jeff and alice or any variable name you wish, but for simplicity, and usually ease of understanding because almost everyone has had 100's of math problems drilled into their head with (x, y), x and y are used as convention.
    In Java the screen coordinates run from 0 to the width-1 for x and 0 to height-1 for y of the component you are using to display.
    So logically when you have a value of x or y that goes beyond the addressable bounds of your display, then you have to make some type of adjustment--when your value dips below 0, you reset it to 0, when your value goes above what ever width-1 or height-1 then you have to set that value to width-1 or height-1.
    This all assumes that when you hit the wall, floor, or ceiling you stick there until you change directions--if you wish to wrap then you set your value to the opposite bound--so if you go below 0, you would then pop out back in on the right side--your appropriate x would be set to width-1 instead of 0 and in the case of y going below 0 your y would be set to height-1. This is also to say that when you descend below your minimum, then you would pop back out on the opposite side you went out on--so x greater then width-1 would get set to 0 and y greater than height-1 would get set to 0.
    That is not even a start on if you want to include elastic collisions, angle of impact, any type of deceleration force, or anything else.
    In any case... I would recommend that you add more math to your studies, I've never met an engineer or computer science grad that said: "Wow, I really regret taking all that math in college (or HS), I never use it."

  • Setting fixed size screen resolution in Arch VirtualBox guests...

    Hello everyone.,
    I've installed an Arch Linux 64-bit guest os in Windows 7 64-bit host. And i've also installed guest additions succesfully.
    Now I need to restrict X to 720x1280 (720p) screen size for screen capturing.
    I've already tried few methods for resizing it:
    1) Tried disabling AutoResize in VirtualBox.
    2) Tried to hint the display size in global settings (VirtualBox => File => Preferences => Display), but when I enter X it fits automatically the whole window again.
    3) Tried to write a configuration file in "/etc/X11/xorg.conf.d/90-monitor.conf" (as explained in Xorg wiki page), but it still doesn't work. I couldn't find my monitor Identifier name, tried several ("VBox0", "Screen0", etc...)
    4) Tried to generate single Xorg conf file ("sudo Xorg -configure"), but it terminates with error: "Missing output drivers. Configuration Failed".
    And also i've googled anything related to fixed size screen WITH guest additions (which I still need for shared folders), seems nobody actually asked for it.
    Any help will be appriciated, thanks.,

    What is native resolution? 1080?
    Do you need a window with guest os smaller than host video?
    Did you try to set resolution on X guest and enabling autoscaled feature in VirtualBox?

  • Its near impossible to get a Advanced datagrid to remember its opened nodes when it has fresh data

    Theres a post in
    http://www.mail-archive.com/[email protected]/msg85521.html//www.mail-archive.com/[email protected]/msg85521.html
    which is basically saying its near impossible to get a Advanced datagrid to remember its opened nodes when it has fresh data
    I'm having pretty much the same problem (exept I'm not filtering just getting the latest data from the server)as this guy and have been searching for a solution, heres what he said:
    Sun, 02 Mar 2008 08:07:46 -0800
    Hello guys,
    I'm trying to filter my ADG without success :
    I created a GroupingCollection from a flat ArrayCollection.
    ADG's dataProvider is GroupingCollection.
    First issue : refresh
    if I filter the underlaying ArrayCollection, the related
    groupingCollection doesn't refresh automatically (bug? feature?)
    Actually I menaged to force gc.refresh() with some event( it is
    impossible to listen on CollectionEventKind.REFRESH because of
    infinite loop ac.refresh => gc.refresh )
    Second issue (more important) : openNodes
    Ok now that my gc is refreshed, the Tree in the ADG collapses itself
    (ok let say that is normal), and I need it to expand all nodes that
    were opened before.
    I tried to do something like this :
    var openNodes : Object = IHierarchicalCollectionView(
    myADG.dataProvider ).openNodes;
    gc.refresh();
    myADG.dataProvider.openNodes = openNodes;
    and it doesn't works.
    next I tried this :
    var openNodes : Object = IHierarchicalCollectionView(
    myADG.dataProvider ).openNodes;
    for each( var node : Object in openNodes )
    IHierarchicalCollectionView( myADG.dataProvider.openNode( node )
    guess what, doesn't work
    I'm calling myADG.invalidateList() each time too.
    I don't know what to do to achieve this simple task, I'm a bit
    disappointed because I expected lot more from the brand new
    AdvancedDataGrid and this basic functionality actually seems too hard
    to implement.
    I still hope I'm wrong and someone can show me the correct solution
    Thank you all,
    Adnan

    Hi,
    I remember the days when Oracle would practically give Oracle Financial s away just for the implementation consulting fees.
    Yeah, IBM used to give-away DB2 also . . . .
    Oracle Financial s away just for the implementation consulting fees. Yeah, but any ERP requires massive set-up costs. I once worked on an SAP effort that cost over $20,000,000.
    complete with Microsoft head to headIn what? Oracle is far-and-away the world's most robust and flexible database, hundreds of times more powerful that SQL Server.
    IMHO, it's like apples-to-oranges . . . .
    Everyone is running SQL server Here, DICE shows over a hundred Oracle openings in the Boston area, that might help you:
    http://seeker.dice.com/jobsearch/servlet/JobSearch?op=300&rel_code=1102&N=0&Hf=0&NUM_PER_PAGE=30&Ntk=JobSearchRanking&Ntx=mode+matchall&AREA_CODES=&AC_COUNTRY=1525&QUICK=1&ZIPCODE=&RADIUS=64.37376&ZC_COUNTRY=0&COUNTRY=1525&STAT_PROV=0&METRO_AREA=33.78715899%2C-84.39164034&TRAVEL=0&TAXTERM=0&SORTSPEC=0&FRMT=0&DAYSBACK=30&LOCATION_OPTION=2&FREE_TEXT=oracle&WHERE=Boston+MA&WHEREList=Boston+MA&SEARCH.x=0&SEARCH.y=0
    Excel is the tool of choice for accountants and its integration withcubes is nothing short of stunning
    Sorry, I must disagree! Yes, CPA's will download Oracle data into spreadsheets for analysis, but Excel is wanting, especially for hypothesis testing, correlational analysis and data mining. Oracle's ODM, however, is truly stunning, light-years ahead of PC-based tools:
    http://www.rampant-books.com/book_2006_1_oracle_data_mining.htm
    Larry make Oracle great again be cutting the costI cannot speak for Oracle Corporation, but Oracle XE is FREE, totally and completely free. Add-in Apex for free, and it's very competitive.
    Hope this helps. . .
    Don Burleson
    Oracle Press author
    Author of “Oracle Tuning: The Definitive Reference”
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • E71: seems impossible to share internet connection...

    Hi nokia users,
    Since a few days I am back to Symbian, after using Windows Mobile for a year. Got a Nokia E71 and really love it (user interface, phone and onboard functions are so much better!!), there is one problem although: whatever I try (see below), it seems impossible to use the phone as an external modem (and that’s a must have function for a phone for me). Important to mention: the mobile internet connection are working fine on the phone itself, AP settings seems to be OK. I tried following:
    - Fixed cable connection, using the E71 USB profile ‘Share internet connection). Phone installs Nokia Connection Manager on my computers and tries acting as a modem. Got the error ‘No modem found’
    - PC Suite One Touch Access: with the USB cable or Bluetooth connections there is no problem in connecting phone with the computer. When I try to connect to the internet with One Touch Access, the connection fails (with error messages ‘No modem found’ or ‘Could not use the connection. Modem could be busy or modem is not configurated properly’). I tried several settings: choose my provider, manually configurations, nothing worked
    - JoikuSpot (let your symbian phone act as a wifi hotspot to share mobile internet connection): installs seamlessly, computers can see and connect to JoikuSpot, but then nothing happens. 0-0 packets are send and received when I check the status on the phone.
    All the above I tried on two different Windows XP Home computers with compatible Bluetooth stacks (first tried Bluesoleil and then the standard Microsoft Bluetooth stack), with three different versions of Nokia PC Suite (6.7.22 + 6.86 + 7.07).
    I hard-reset the phone several times (via *#7370#). I did not synchronise data to use a clean phone. Nothing worked. What worries me is that even the USB connection gave no response, it makes me think that the onboard modem is broken.
    If you have any ideas what I can try, please share them with me!
    Thanks a lot and greetings,
    Wouter

    Have you downloaded the bluetooth modem drivers? You might also need the cable driver.
    You can get the cable driver here:
    http://europe.nokia.com/get-support-and-software/download-software/cable-drivers 
    The Bluetooth drivers are in the downloads section of the E71 section of the Nokia page, but for some reason pasting a link won't work
    I managed to get the trial of joikuspot premium working (on a mac), but you should be aware that the lite version of joikuspot just connects you to their home page. It's a demo only really, I have never been able to use it for sharing my phone's connection.
    Good luck!

  • Fixed Size Table

    I'm creating an rtf template for a master detail report which will be printed over template papers not white papers, so i want to make a fixed size table lets say of 10 rows for details. When i tried to make a table of 10 rows and put the for each loop statement in first row i got table of details + 9 empty rows !! so please can anyone guide me here.
    Thanks in advance.

    Does it really make sense to specify a limit in terms of storage space rather than time? If there is a 500x difference in the number of inserts over the course of an hour, it seems likely to me that users would generally want to keep a certain number of days worth of log information rather than keeping a certain volume in MB. If you ask for a limit in MB, users that use the low rate of inserts would end up with a table so small that if you got to the point of generating lots of records you'd be aging them out far too fast-- those that use the higher rate of inserts would end up with a huge table that has far more history than they need just to accomodate keeping a certain window of log records at the peak.
    If you are determined to limit the size of the table, you could potentially run a program periodically that determines the size of each partition (via DBA_SEGMENTS) and then drops the oldest partition if the overall size is too large. But a single partition is likely not to have a huge level of granularity-- you're probably not going to partition by much more than the day, so dropping the oldest partition would purge all the logs for that day. You could potentially get more control over space by not partitioning the table and just deleting the last N rows if you are over the limit, but that probably involves much more frequent checks of space usage and is far, far less efficient in doing the actual deletes.
    Justin

  • How to resize a jpg/gif file to a fix size using jimi ?

    I have search from the web and didn't find any example on doing this.
    Can any one give example on how to resize a jpg image. let say 120x240
    to a fixed size 40x40 ?
    thank you

    Hi.
    When you got that image in form of a file, just load it and invoke the image's getScaledInstance(...)-method.
    Here's how it could work:
    import java.awt.*;
    public class Test {
    public static void main(String[] argv) {
      // define where the image comes from:
      URL toImage = new URL("file:/C:/test.jpg");  // or the like
      // get the image:
      Image image = Toolkit.getDefaultToolkit().createImage(toImage);
      // scale the image to target size (40x40 here):
      Image smallImage = image.getScaledInstance(40, 40, Image.SCALE_DEFAULT);
      // you might want to do other things like displaying it afterwards
    }HTH & cheers,
    kelysar

  • Fixed size regions in Apex 4.0

    It is possible to create a fixed size regiion - that is only using half of the screen height to have a report (and having a bar to on the right to move up/down) ?
    I'm going to use it for a 2+ master-detail report.
    regards
    Mette

    Hi Mette,
    what region template and which theme are you exactly using? For most region templates you can pass in additional style attributes with the "Region Attributes" property in the "Attributes" section of a region definition.
    So for example you could use
    style=\"height:500px;overflow-y:scroll\"(remove the \ out of the code example)
    Regards
    Patrick

Maybe you are looking for

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All, I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new windo

  • [Help] Windows 8.1 - Windows Update Cleanup not clearing

    Hi guys, I've been troubleshooting my MSI Laptop GE40 for quite awhile now, but I am just unable to find a solution online. My laptop is running Windows 8.1, I was doing some cleaning up for my laptop using Disk Cleanup. After running Disk Cleanup (W

  • Problem displaying charts under IE using chartcreator-1.2.0

    Hi everybody, I've downloaded the sample web app chart.war (demonstrating the chartcreator-1.2.0 component). It works well with FireFox and IE when I run it locally, but when I access it from another machine (in a LAN), it doesn't work any more with

  • My Ipod will not reset.

    Is it time for a new device?   Nothing I do clears the screen.  The last thing I was doing was to update the software.  Now all that is on the screen is the iTunes logo and a cable pointing to the logo.   It will not turn off or reset.

  • Converting Calc to MDX

    Hi Experts, I am very new to MDX, hence need help in converting this calc into MDX Query- If(@ISIDESC("L-206125"))      "70170023" EndIF; Where "L-206125" is from Departments dimension and "70170023" from Accounts. I have this formula on one more Dep