Remove Spacing on the GUI

hello, here's my problem..
i'm making a program that will act like a graphing calculator but only using JPanels, (yeah, it sucks cause i think we will not discuss about Graphics ;(
well anyways
i imagined a GUI which will contain maybe 100x100 JPanels each having dimensions of 1px X 1px or maybe 2px X 2px each JPanel,
but the problem is, when i first tried making many JPanel, i was shocked that it has spaces like this
http://photoserver.ws/images/B6NT4c6d707f32056.png
so, how can i remove the spaces for now so i can achieve what i want?
i have read some internet codes, tried to use Insets and Borders but it failed, we were not taught how to use BorderLayout, only FlowLayout..
here's the crappy code that i got right now
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
public class GraphGUI extends JFrame implements ActionListener{
         Insets noMargin = new Insets(0, 0, 0, 0);
         Border noBorder = new EmptyBorder(noMargin);
    public GraphGUI ()
         Container sort = getContentPane();
         sort.setLayout (new FlowLayout());
         int x = 0, y = 0;
           while ( x != 100 ){
                JPanel Pane1 = new JPanel();
                Pane1.setBackground(Color.pink);
                Pane1.setPreferredSize(new Dimension(5,5));
                Pane1.setBorder(noBorder);
                sort.add (Pane1);
                x++;
        setSize (494, 494);
        setVisible (true);
        setTitle (":: ::");
    public void actionPerformed (ActionEvent e)
    public static void main(String[] args)
        GraphGUI gui = new GraphGUI();
        gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}any help please :)

kyzhuchan wrote:
after 2 hours of debugging i finished it, and i was surprised it did actually worked lol,
although not accurate
[x+2|http://photoserver.ws/images/POay4c6e8dd356b9a.png]
[sqrt(x) + 2 |http://photoserver.ws/images/m9JN4c6e97062d5e7.png]
[(x-2)^2|http://photoserver.ws/images/tLOK4c6e8dd377b94.png]
[sqrt(x^2) + 2|http://photoserver.ws/images/lcmr4c6e97061c43c.png]
tnx to kevin, Vgap and Hgap fixed my problem
i'm gonna try to self study graphics since i want to improve the accuracy of the graph
well anyways, my question has been answered..
tnx guys ;DHa, that actually works a heck of a lot better than I was expecting it would.
Another (slightly less wrong but still wrong) way to do it would be to use the same algorithm you use to figure out which JPanels should be black. Only instead of changing the colors of the JPanels at those coordinates, you would have a 2D array of booleans, setting those coordinates to true. Then you'd only need one JPanel that drew the squares where the array contained true.
Like I said, that's not the best way to do it, but it would be an easy step in the right direction to make from your existing code.

Similar Messages

  • I want to remove buttons in favour of a Windows menu equivalent, how do I control the software without cluttering the GUI?

    My Graphical User Interface is fairly full of controls & buttons, removing the buttons should simplify and improve the appearance of the GUI. I would like to capture all of the menu selections and drive the software without relying on offscreen buttons etc. Is there a standard technique? I have started to look at queue, notifiers, occurences etc but I havent seen anything yet that looks obvious for the application.
    Help appreciated.

    You want to replace front panel controls with a custom menu? If that's true, then the code to do that is similar to the best way to handle the original controls. The event structure has both menu selection (User) and Menu Selection (App). As the shipping example Menu Selection with Events shows, you get the ItemTag and MenuRef from which you get the menu's item name which can be connected to a case structure. Since the menu name is a string, it also works well in a queue based state machine.

  • Set-acl and remove-ntfs both fail from PowerShell yet i can do it from the GUI

    I have put together a script that searches all of our folders then searches the folders for groups that should have access and do not and groups that should not have access and do.
    Finding only the folders that need NTFS permissions changed works great.  Adding the groups that need added works great but removing groups is not working.  Below is a section of my script with the section not working underlined.  You can
    see i have tried 2 approaches.  
    If i use the Remove-NTFSAccess command (which i really prefer) I get no errors and you would think all worked until you check.
    If i use set-acl about half give me a error  "Set-Acl : The process does not possess the 'SeSecurityPrivilege' privilege which is required for this operation" but it does not remove the Domain admins for any of the
    folders including the ones that give no error.
    I have privileges to do it.  I can go to a folder and remove the group from the NTFS permissions in the GUI with no issue. 
    Thanks!
    "Add Nseries Admins"
    $workingdir = (Get-Content "$env:TEMP\Add nseries admins.txt")
    $mynum=[int]$workingdir.Count
    foreach ($path in $workingdir) {
    $mynum
    $mynum = $mynum - 1
    $path
    Add-NTFSAccess -Path "$path" -Account "SCHOOLS\Nseries Admins" -AccessRights FullControl -AccessType Allow -AppliesTo ThisFolderSubfoldersAndFiles
    "Romeve Domain admins"
    $workingdir = (Get-Content "$env:TEMP\Remove domain admins.txt")
    $mynum=[int]$workingdir.Count
    foreach ($path in $workingdir) {
    $mynum
    $mynum = $mynum - 1
    $path
    # Add-NTFSAccess -Path "$path" -Account "SCHOOLS\Nseries Admins" -AccessRights FullControl -AccessType Allow -AppliesTo ThisFolderSubfoldersAndFiles
    # Remove-NTFSAccess -Path "$path" -Account "SCHOOLS\Domain Admins" -AccessRights Read -AccessType Allow -AppliesTo ThisFolderOnly
    $acl=get-acl "$path"
    $accessrule = New-Object system.security.AccessControl.FileSystemAccessRule("SCHOOLS\Domain Admins","Read",,,"Allow")
    $acl.RemoveAccessRuleAll($accessrule)
    Set-Acl -Path "$path" -AclObject $acl

    I just ran that a couple of times.  No errors as long as the subfolders are not protected in a way the blocks the admin.  I will try and find a folder that causes this exact scenario.
    Is it possible that this was fixed in V4?
    ¯\_(ツ)_/¯
    The SACL being overwritten isn't fixed. There's a Connect bug
    here. Set-Acl basically does this before trying to call SetAccessControl():
    $path = "$env:Temp\temp_item_name"
    $acl = Get-Acl $path
    # Get the binary form:
    $binaryForm = $acl.GetSecurityDescriptorBinaryForm()
    # Create a new SD object:
    $newacl = New-Object $acl.GetType()
    # Take the old binary form and use it for the new SD object,
    # but tell it it's for all sections, including the SACL:
    $newacl.SetSecurityDescriptorBinaryForm($binaryForm, "All")
    Next, it tries to call SetAccessControl() inside of a try{} block. If it detects a PrivilegeNotHeld exception, it will try to redo the section above without setting the Owner, Group, and SACL (if certain conditions are met). I can't get the second call to
    error the way Lishron did, but that doesn't mean there's no scenario where that can't happen.
    By the way, here's an example of trying to call SetAccessControl() with the modified SD object from above:
    $FileSystemItem = Get-Item $path
    $FileSystemItem.SetAccessControl($newacl) # <-- Fails if you're not an admin; overwrites SACL if you are
    $FileSystemItem.SetAccessControl($acl) # <-- Succeeds (unless you're trying to change the owner)

  • I am a beginner of "pages" and have this problem of dots while writing the text. I dont know how to remove these bullets-like dots while spacing in the text. Please help

    I am a beginner of "pages" and have this problem of dots while writing the text. I dont know how to remove these bullets-like dots while spacing in the text. Please help

    Look up "formatting" in the User Guide.
    http://manuals.info.apple.com/MANUALS/0/MA524/en_US/Pages_UserGuide.pdf

  • Is it faster to use the GUI or Powershell to remove an ACE from a large folder?

    I have a large folder I've been asked to remove an ACE from, around 500K files totalling about a terrabyte. The ACE is inherited down, so I know using the GUI will take a while. I was wondering if it would be easier to just use a get-acl/set-acl combo
    in powershell.
    [email protected]

    If you are just making a change at the root folder and propagate it down, then I don't think it will matter, but scripting usually makes life easier.
    Also with scripting, you have to be aware of long path names, which I cannot remember off the top of my head, but the security tab of the property window may not have this issue.
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • How to get Solaris 10 to boot from the CLI instead of the GUI?

    I tried searching on the site but was unable to get useful information from setting up Solaris such that it boots to command prompt instead of the GUI. Any help or suggestions would be appreciated.

    This will also work if you're running out-of-the box Solaris 10:
    svcadm disable graphical-login/cde-login:defaultThe problem with doing it that way is you then can't use your Solaris host to run SunRay thin clients. If you need to use the box as a SunRay server, you'll have to remove the reference to the :0 display somewhere in /etc/dt/config/Xconfig, IIRC.

  • Remove spacing between minimize mazimize close buttons.

    How remove spacing between minimize, maximize, close buttons. Problem is only in firefox, when hide menu bar.
    image: http://www.bildites.lv/images/jx5yixdwdam0b5clli3.jpg
    Icons should be like in my computer window.
    OS: Windows XP; SP3
    Theme: http://www.crystalxp.net/galerie/en.id.130.htm
    Firefox 4.0 Beta 10

    Has anyone found a solution for this yet? I've searched everywhere, but have found little mention of the problem, let alone a fix. I have the same conditions as the original poster: XP, 3rd party visual style, and problem disappears when enabling the menu bar. My Windows caption buttons appear exactly like the posted screenshot. I would imagine CSS could fix it. Thanks,
    Brandon

  • Remove spacing between div tags

    Is it possible to remove the spacing between div tags? If so
    how do you do it?

    Can you just post a link to the page rather than the mangled
    poo that the
    webforum hands us? (see below)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "lockw" <[email protected]> wrote in message
    news:[email protected]...
    > Here is the code I am working with. i am trying to
    remove the spacing
    > between
    > the header and the left and right navigation.
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <title>Untitled Document</title>
    > <style type="text/css">
    > <!--
    > #container {
    > margin: auto;
    > width: 990px;
    > }
    >
    > #container #left {
    > background-color: #999999;
    > background-position: top;
    > float: left;
    > width: 200px;
    > padding-right: 15px;
    > padding-left: 15px;
    > border-right: 1px solid #666;
    > margin-top: 0px;
    > margin-right: 0px;
    > margin-bottom: 0px;
    > margin-left: 0px;
    > }
    > #container #left ul {
    > list-style: none;
    > margin: 0;
    > padding: 0;
    > }
    > #container #left ul li {
    > margin: 0;
    > border-top: 1px solid #003;
    > }
    > #container #left ul li a {
    > display:block;
    > padding: 2px 2px 2px 0.5em;
    > border-right:1px solid #69C;
    > border-bottom: 1px solid #369;
    > background-color: #036;
    > color: #fff;
    > text-decoration:none;
    > width:100%;
    > }
    > html>body #container #left a {
    > width:auto;
    > }
    > #container #left ul li a:hover {
    > border-right: 1px solid #69c;
    > border-bottom: 1px solid #369;
    > background-color: #69f;
    > color:#fff;
    > }
    >
    >
    >
    >
    >
    >
    > #container #main {
    > margin-top: 0px;
    > margin-right: 250px;
    > margin-bottom: 0px;
    > margin-left: 250px;
    > }
    > #container #right {
    > background-color: #666666;
    > float: right;
    > width: 200px;
    > padding-left:15px;
    > padding-right:15px;
    > }
    > #container #header {
    > background-color: #003366;
    > float: none;
    > clear: none;
    > margin-bottom: 0px;
    > }
    > .style1 {color: #CCCCCC}
    > .style2 {color: #FFFFFF}
    > body,td,th {
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 10pt;
    > }
    >
    > #container #footer {
    > float: none;
    > clear: both;
    > }
    > a:link {
    > color: #000099;
    > text-decoration: underline;
    > }
    > a:visited {
    > text-decoration: underline;
    > }
    > a:hover {
    > text-decoration: none;
    > color: #666666;
    > }
    > a:active {
    > text-decoration: underline;
    > }
    > #container #right #rightnavtop {
    > }
    > #container #right #rightnavtop ul {
    > list-style: none;
    > margin: 0;
    > padding: 0;
    > }
    > #container #right #rightnavtop ul li {
    > margin: 0;
    > border-top: 1px solid #003;
    > }
    > #container #right #rightnavtop ul li a {
    > display:block;
    > padding: 2px 2px 2px 0.5em;
    > border-right:1px solid #69C;
    > border-bottom: 1px solid #369;
    > background-color: #036;
    > color: #fff;
    > text-decoration:none;
    > width:100%;
    > }
    > html>body #container #right #rightnavtop a {
    > width:auto;
    > }
    > #container #right #rightnavtop ul li a:hover {
    > border-right: 1px solid #69c;
    > border-bottom: 1px solid #369;
    > background-color: #69f;
    > color:#fff;
    > }
    >
    > -->
    > </style>
    > </head>
    >
    > <body>
    >
    > <div id="container">
    > <div id="header">
    > <p class="style1">Header</p>
    > <p> </p>
    > <p> </p>
    > </div>
    > <div id="left">
    >
    >
    <a href="#">Pharma</a></li>
    >
    <a href="#">Diversity</a></li>
    >
    <a href="#">Marketing</a></li>
    >
    <a href="#">Sales</a></li>
    >
    <a href="#">Money</a></li>
    >
    <a href="#">Stock</a></li>
    >
    </li>
    >
    <a href="#">Advertising</a></li>
    >
    </li>
    > <p>lklkmklml</p>
    >
    > </div>
    >
    > <div class="style2" id="right">
    > <div id="rightnavtop">
    >
    >
    <a href="#">Real Estate</a></li>
    >
    <a href="#">Commercial Real Estate</a>
    >
    >
    <a href="#">Recruitmen</a></li>
    >
    > </li>
    >
    > </div>
    > <p><br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > <br />
    > </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p><br />
    > </p>
    > </div>
    > <div id="main">
    >
    > <p>The main content will go here The main content
    will go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here The
    main content will
    > go
    > here The main content will go here The main content will
    go here The main
    > content will go here The main content will go here
    <br />
    > </p>
    > <p> </p>
    > <p><br />
    > <br />
    > <br />
    > <br />
    > </p>
    > </div>
    > <div id="footer">
    > <p>
    <br />
    > Advertising Categories: <a
    href="#">Residential Real Estate</a> |
    > <a
    > href="#">Commercial Real Estate</a> | <a
    href="#">Recruitment</a> | <a
    > href="#">Small Business</a> | <a
    href="#">Automotive</a> | <a
    > href="#">Franchise</a> | <a
    href="#">Legal</a> | <a href="#">Obituary</a>
    > | <a
    > href="#">Online Verticals</a></p>
    > <p>
    Audience: <a href="#">Profiles</a> | <a
    > href="#">Circulation</a> |
    > <a href="#">Testimonials</a> </p>
    > <p>
    Solutions: <a href="#">Small Advertiser</a> |
    <a
    > href="#">Medium
    > Advertiser</a> | <a href="#">Larger
    Advertiser</a>| <a
    > href="#">Advertisment
    > Dimensions</a></p>
    > <p>
    Purchase Now: <a href="#">Purchase
    Now</a></p>
    > </div>
    > </div>
    > </body>
    > </html>
    >
    >

  • How can I shrink the spacing between the icons in the bookmarks toolbar?

    Hello everyone!
    I would like to open up some space in my bookmarks toolbar (also on the navigation toolbar if I can) by reducing the spacing between the icons. Is there any way to do this without the need of some third party program? If not, which one should I download?
    Curious thing is that a few days ago I did not have this problem at all, all my bookmarks were visible in the toolbar regularly, neat and tight. Now there is that boring guillemet sitting there at the corner...
    And this is the line where I thank you quite a bit for your interest towards my problem. So thank you very much:)
    With respect
    Arial

    You're welcome
    You can also remove the text labels with code in userChrome.css and if necessary adjust the margins as you like.
    Add code to the userChrome.css file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>#personal-bookmarks .bookmark-item > .toolbarbutton-text {
    display:none !important;
    #personal-bookmarks .bookmark-item > .toolbarbutton-icon {
    margin:0px !important;
    padding:0px !important;
    </nowiki></pre>
    *https://developer.mozilla.org/en/CSS/margin
    *https://developer.mozilla.org/en/CSS/padding

  • Locking the GUI, spinning dial (simillar to JXLayer)

    Hello,
    I am looking for a way to lock the GUI (and display a spinning dial) when a long running thread is running.
    How would one do this with JavaFX?
    Thanks in advance

    Yes. Using a progress indicator instead of a cursor is a good idea.
       import javafx.application.Application;
    import javafx.beans.binding.When;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.concurrent.Task;
    import javafx.concurrent.Worker.State;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    import javafx.scene.Cursor;
    import javafx.scene.control.ProgressIndicator;
    public class TaskProgs extends Application {
        @Override
        public void start(Stage primaryStage) {
            Button btn = new Button();
            btn.setText("Submit");
            btn.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event) {
                    System.out.println("click...");
            final StackPane root = new StackPane();
            root.getChildren().add(btn);
            final Scene scene = new Scene(root, 300, 250);
            primaryStage.setTitle("Hello World!");
            primaryStage.setScene(scene);
            primaryStage.show();
            Task<Integer> task = new Task<Integer>() {
                @Override
                protected Integer call() throws Exception {
                    int iterations;
                    for (iterations = 0; iterations < 10000000; iterations++) {
                        if (isCancelled()) {
                            updateMessage("Cancelled");
                            break;
                        updateMessage("Iteration " + iterations);
                        updateProgress(iterations, 10000000);
                    return iterations;
            final ProgressIndicator pi = new ProgressIndicator();
            pi.setProgress(ProgressIndicator.INDETERMINATE_PROGRESS); 
            scene.getRoot().mouseTransparentProperty().bind(task.runningProperty());
            Thread th = new Thread(task);
            th.start();
            task.stateProperty().addListener(new ChangeListener<State>() {
                public void changed(ObservableValue<? extends State> observable, State oldValue, State newValue) {
                    if (newValue == State.SUCCEEDED) {
                        root.getChildren().remove(pi);
                    } else if (newValue == State.RUNNING) {
                        root.getChildren().add(pi);
        public static void main(String[] args) {
            launch(args);
      

  • I recently ran monolingual and removed all but the intel-64 bit architectures.  Now my iphoto will not open.  Here's the message  that I get. Process:         iPhoto [3543] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:

    I recently ran monolingual and removed all but the intel-64 bit architectures.  Now my iphoto (along with Idvd, garage band, imovie) will not open.  Here is the message that I get.
    Process:         iPhoto [3543]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-4750000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [109]
    Date/Time:       2011-06-10 21:48:59.821 -0500
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          -4164908 sec
    Crashes Since Last Report:           8
    Per-App Crashes Since Last Report:   11
    Anonymous UUID:                      45357CCD-011B-482E-A2EA-CF42096F1321
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: no suitable image found.  Did find:
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: iMac10,1, BootROM IM101.00CC.B00, 2 processors, Intel Core 2 Duo, 3.06 GHz, 4 GB, SMC 1.53f13
    Graphics: ATI Radeon HD 4670, ATI Radeon HD 4670, PCIe, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 2.1.14.5
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Built-in Ethernet, Ethernet, en0
    Serial ATA Device: ST31000528ASQ, 931.51 GB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0x24300000
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0x24400000
    USB Device: External HDD, 0x1058  (Western Digital Technologies, Inc.), 0x0901, 0x26400000
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26500000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x06110000

    Please let me know when you find a fix. I did the same thing and have tried every suggestion I can find online. The message I get is...
    Process:         iPhoto [4991]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-6070000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [142]
    Date/Time:       2011-06-13 23:39:38.485 +1200
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          -1643976 sec
    Crashes Since Last Report:           35
    Per-App Crashes Since Last Report:   12
    Anonymous UUID:                      D4811036-EA8D-479D-8D9F-11E2FC8F6D4C
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: no suitable image found.  Did find:
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: MacBookPro7,1, BootROM MBP71.0039.B0B, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f6
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.36.9)
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HTS545025B9SA02, 232.89 GB
    Serial ATA Device: MATSHITADVD-R   UJ-898, 3.5 GB
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26100000
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8507, 0x24600000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06600000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8213, 0x06610000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x06500000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0236, 0x06300000
    I have reinstalled Mac OSX 10.6.3 and done the updates from there.
    I have reinstalled ilife 11 from disk and done the updates.
    I have deleted all the suggested files and then redone install and updates.
    I have tried just reinstalling iphoto and doing updates.
    Is there any way to get a replacement -  /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
    file with the right architecture?

  • How can we remove items from the VF04 list?

    We have a long list of items in VF04 that, for various reasons (some process related, some due to errors), are not to be billed. We have looked at applying filters to the list but there is nothing really suitable to hide these individual documents e.g. we could filter out some dates where none of the items on that date are to be billed but other dates have a mix of items we want to bill and others we don't.
    I have done a search of this forum but didn't find a previous topic with a quick and simple method to remove items from the list .
    Is there a method, other than billing them or sorting each issue individually, to permanently remove individual documents from the VF04 list?
    Thanks in advance for any help.
    David

    Hi,
    David,
    Download a list of Pending delivers doc form VF04.
    Paste the list in T.Code : VL09 (Delivery reversal) and reverse the delivery.
    Then go to T.Code: VL06G Select the list of deliveries that has been reversed, select/delete all un- wanted deliveries.
    This way you can remove all unwanted pending deliveries forn Billing due list (VF04).
    Thanks & Regards,
    R.Janakiraman

  • Unable to enter a Division for which I have proper credentials, via the GUI

    I have a Division which I am unable to enter, either as a student or as the full site Administrator, from the GUI.
    When I log into the main Site page, I see the link for the Division (as I should - I have DOWNLOAD permissions for the Division). However when I click the link (the thumbnail image) I am always, 100% of the time, rejected and sent to the login page. Ignoring that, I still have all of my proper credentials and may continue to freely access other parts of the site.
    In the past, I had this exact behavior on (1) a Division "RobotCourses:PSYC" (Psychology), and (2) my main site breadcrumb, which appears at the top of the site page to the right of the "iTunes U" breadcrumb and says "Maiko Covington @ University of Illinois..." For reasons completely unknown to me, this behavior resolved itself yesterday, clicking both of those objects works as expected, although NO one at our site with any edit access did anything on the server.
    However, the same behavior has now reappeared, this time on a Division "RobotCourses:CLCV" (Classical Civilizations). Again, I have not done any editing of that Division, nor had anyone logged into it (these Divisions are in a test area where I am developing automation tools).
    I am, quite frankly, stumped. But I've done some investigation.
    SETUP:
    The Division has identity "RobotCourses:CLCV".
    This Division contains a single Course with identity "RobotCourses:CLCV:CLCV115:CLCV115All-13564".
    Both the Division and the Course are restricted to properly registered academic students. I have developed automation code in a login portal which grants credentials for RobotCourses:CLCV to students registered for courses in the CLCV department (Classical Civilizations) and credentials for RobotCourses:CLCV:CLCV115:CLCV115All-13564 to students registered for CLCV 115 (Classical Civilizations 115 - Mythology of Greece and Rome) specifically.
    The Permissions set on RobotCourses:CLCV in particular are:
    <Permission>
    <Credential>Authenticated@urn:mace:itunesu.com:sites:illinois.edu</Credential>
    <Access>No Access</Access>
    </Permission>
    <Permission>
    <Credential>gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV</C redential>
    <Access>Download</Access>
    </Permission>
    The point is to deny access to Authenticated@ (merely authenticated students) and then specifically grant it for people given a "gakusei" credential for RobotCourses:CLCV in particular.
    (Note here that "gakusei" is a Japanese word meaning "student," I am using it in my credentials to ensure that my credentials and permissions are not affected by other credentials named "student" set at upper levels and used by some live users of the site, as we do not have a segregated development environment. It is our lowest level of access beyond mere Authenticated@..., designed to give students access to download and "surf to" Divisions and Courses.)
    *LOGIN: ISSUING CREDENTIALS:*
    The login portal code works successfully, and so when a student "Jane Doe" logs in, she is in fact given appropriate credentials (as she is actually registered for CLCV 115 here at UIUC). From the code generating her login URL, I see:
    Issued credentials:
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV:CLCV115:CLCV1 15All-13564
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT:STAT100:STAT1 00X1-13570
    (You can see she is also registered for STAT 100).
    With the default login URL thus generated, she is taken to the top level of the Site in iTunes, and in fact sees thumbnail links for both STAT (Statistics) and CLCV (Classical Civilizations). Clicking on STAT takes her to the STAT Division where she can then enter the Course STAT 100 with no problems.
    *PROBLEM: CAN'T GET TO CLCV FROM THE MAIN PAGE IN THE GUI*
    HOWEVER! Clicking on CLCV brings up the login page. If she ignores the login page, she can still access the rest of the site, including STAT, just fine. Logging in again (reissuing her credentials) does not help the situation.
    Note that this is not a problem only for Jane Doe, the same thing happens for anyone in CLCV and in fact happens for me as Administrator of the whole site with full access, even.
    *ACCESS DIRECTLY TO THE DIVISION BY URL WORKS*
    With a slight modification to the login to allow access directly to the RobotCourses:CLCV Division (by adding the handle of the Division to the end of the location), credentials are issued exactly as before:
    Issued credentials:
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV:CLCV115:CLCV1 15All-13564
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT
    gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT:STAT100:STAT1 00X1-13570
    and she is taken to the Division page, SUCCESSFULLY. So, it seems she actually HAS access, as expected.
    *ACCESS CONFIRMED WITH DEBUGGING:*
    Writing some code to generate not the actual login URL but rather a link that takes me to an "iTunes U Access Debugging" page for the Division (figured this out by reading some other posts! :)) I am taken to a page with the following:
    (at generated URL https://deimos.apple.com/WebObjects/Core.woa/Browse/illinois.edu.1945806043/xxx5 64?credentials=....)
    Received
    Destination illinois.edu.1945806043
    Identity "Jane X Doe" <[email protected]> (jxdoe) [xxxxxxxxx]
    Credentials gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV; ​ gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV:CLCV115:CLCV1 15All-13564; ​gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT;​ gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT:STAT100:STAT1 00X1-13570
    Time 1236877947
    Signature 42ccef92a3298684a7a09eed45adb6b788a700c01645b8b423d33ace120650b0
    Analysis
    The destination string is valid and the corresponding destination item was found.
    The identity string is valid and provides the following information:
    Display Name Jane X Doe
    Email Address [email protected]
    Username jxdoe
    User Identifier xxxxxxxxx
    The credential string is valid and contains the following 4 recognized credentials:
    1. gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV
    2. gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:CLCV:CLCV115:CLCV1 15All-13564
    3. gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT
    4. gakusei@urn:mace:itunesu.com:sites:illinois.edu:RobotCourses:STAT:STAT100:STAT1 00X1-13570
    The time string is valid and corresponds to 2009-03-12 17:12:27Z.
    The signature string is valid.
    Access
    Because the received signature and time were valid, the received identity and credentials were accepted by iTunes U.
    In addition, the following 2 credentials were automatically added by iTunes U:
    1. All@urn:mace:itunesu.com:sites:illinois.edu
    2. Authenticated@urn:mace:itunesu.com:sites:illinois.edu
    With these credentials, you have browsing and downloading access to the requested destination.
    (In case you think to check the sums, be aware I've actually changed the student's name for this example.)
    So, as expected, I have access, in fact the student DOES have access, visiting the Division page directly (specifiying its handle as part of the desired location).
    *IT'S ONLY CLICKING THE THUMBNAIL ON THE MAIN PAGE THAT BREAKS*
    Because the problem is only apparent when clicking the icon for the Division on the main Site page, I have no way (that I know of) to get any information about precisely WHAT is going on, what possibly differs in the GUI-click situation from the "generate me a URL that takes me right there" situation.
    At that point I'm fully in the GUI, I'm not sending anything via web services, so I have no idea how I can proceed to debug this from here.
    I'm also quite confused at the sudden appearance of this behavior, and the disappearance of this behavior from RobotCourses:PYSC, another Division that was broken in this same way all last week but which magically resumed allowing me access yesterday.
    Any suggestions, hints, or advice would be very welcome. Has anyone else even seen behavior similar to this?
    Thanks for any information you might have.

    Maiko,
    I'm confess I'm still trying to get a handle on your problem. You do a fantastic job of describing it ... but I'm just trying to picture it accurately in my head.
    I think, were I in your shoes, I'd begin by looking at what the debug page has to say for the specific destination in which you're interested in fixing. In other words, I'm not clear on where, exactly, this destination points ...
    Destination illinois.edu.1945806043
    Is that your site, or the division within your site that you want to fix? "Normally", you do not need to specify a site handle to get to your site within your transfer CGI ... if you say "uillinois.edu", it's enough to transfer your users to iTunes U ... but every site still has a handle, and you could, if you wanted to, actually specify it in your transfer CGI. For example, this:
    Destination uic.edu.1139051993
    is for my entire site ... it's my site handle. Whereas this:
    Destination uic.edu.1991288441
    is for a division within my site ... but it's impossible to tell the difference between "site" and "division" from just the handle (I mean, if I didn't say "this is a site" and "this is a division", there'd be no way for you to know). So when I look at your creds and permissions on your debug page, I can't quite tell if they give you download access for your site, or for the specific division you want to fix. If you could open the debug page with your division as destination (or confirm that that's what we're looking at), it'd rule out some things.

  • Need Help to update the labels in the GUI syncronously - Swing application

    Hello everyone,
    I need some help regarding a swing application. I am not able to syncronously update the counters and labels that display on my Swing GUI as the application runs in the background. But when the running of application is completed, then the labels on the GUI are getting updated, But I want update the labels and counters on the GUI syncronously as the code executes... below I am giving the format of the code I have written..............
    public class SwingApp extends JFrame{
            // here i have declared the label and component varibles like...
                      private JTextField startTextField;
           private JComboBox maxComboBox;
           private JTextField logTextField;
           private JTextField searchTextField;
           private JLabel imagesDownloaded1;
           private JLabel imagesDownloaded2;
           private JLabel imagesDidnotDownload1;
           private JLabel imagesDidnotDownload2;
                      private JButton startButton;
    //now in the constructer.............
    public Swing(){
    //I used gridbaglayout and wrote the code for the GUI to appear....
    startButton = new JButton("Start Downloading");
        startButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            try{
                 actionSearch();   //actionSearch will contain all the code and the function calls of my application...........
            }catch(Exception e1){
                 System.out.println(e1);
        constraints = new GridBagConstraints();
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 5, 5);
        layout.setConstraints(startButton, constraints);
        searchPanel.add(startButton);
    //update is a function which initiates a thread which updates the GUI. this function will be called to pass the required variables in the application
    public void update(final int count_hits, final int counter_image_download1, final int didnot_download1) throws Exception{
         Thread thread = new Thread(new Runnable() {
             public void run() {
                  System.out.println("entered into thread");
                  System.out.println("the variable that has to be set is " + count_hits);
                  server_hits_count.repaint(count_hits);
                  server_hits_count.setText( " "+ Integer.toString(count_hits));
                  imagesDownloaded2.setText(" " + Integer.toString(counter_image_download1));
                  imagesDidnotDownload2.setText(" " + Integer.toString(didnot_download1));
                  repaint();
         //this.update(count_hits);
         thread.start();
    //Now in main............................
    public static void main(String[] args){
    Swing s = new Swing();
    s.setVisible(true);
    }//end of main
    }//end of class SwingAbove I have given the skeleton code of my application........ Please tell me how to update the GUI syncronously...
    Please its a bit urgent...............
    Thank you very much in advance
    chaitanya

    First off, note that this question should have been posted in the Swing section.
    GUI events run in a separate thread (the AWT / Event Dispatch Thread) than your program.
    You should be invoking AWT/Swing events via SwingUtilities.invokeLater().
    If for whatever reason you want to have the program thread wait for the event to process
    you can use invokeAndWait().
    http://java.sun.com/javase/6/docs/api/javax/swing/SwingUtilities.html

  • Creating a connection between the GUI and a program's back end

    I have created a program (over 50 classes) and am currently a little confused as to how I should connect the back end of my program (the real functionality) to my front end (the GUI). Currently I am thinking about using a list of event listeners in my back end that will announce when certain events have completed and thus front end can handle the updates accordingly.
    But I want to ensure that the back end doesn't "know" about the front end. In other words, I would like to ensure that the back end and the front end are as independent/modular as possible.
    Can anyone make some suggestions besides event listeners?
    Thanks,
    Timmers

    From what I am able to ascertain from your post, you would advocate using EventListeners in the back end (in same VM) to inform the GUI of changes?
    Is this the commonly accepted way of communicating your back end functionality to your front-end (GUI)?
    I've read that all EventListeners are part of a single thread. So what happens if two events occur simulataneously in the back-end. Do those events get queued or do some of them get lost?
    Thanks,
    Tim
    If the back-end changes state asynchronously to the
    front-end GUI (ie does work in background threads and
    then notifies the front-end when something happens),
    then you should make it send events when this happens.
    The basic concept is the same for CORBA, RMI, JINI,
    or running everything in the local VM.
    To do this you define a set of events (or maybe you
    can use the java.beans.PropertyChangeEvent) and
    listener interfaces. The front-end then registers to
    receive events (probably via an addXXXListener()
    method in the back-end). You would have to have a
    class (or classes) in the front-end that implemented
    the event listener interfaces to receive the events.
    If you are using a distributed technology (CORBA, RMI,
    JINI, ...) the concept is the same, but the event
    mechanisms are slightly different.
    To notify the back-end of state changes in the
    front-end you probably can just do plain old method
    calls from the front-end to the back-end.

Maybe you are looking for