Extending Container for custom layout not working properly

I'm trying to extend javafx.scene.layout.Container to make a custom layout manager that centers a grid of components and fills all available area in the stage (minus some insets, eventually). I'm using some private members to do this, but it's also being done by the JFXtras library, for example. (Incidentally, I would use the new MigLayout in JFXtras 0.3, but it may have an issue that doesn't allow me to do what I'm trying to do, see [http://groups.google.com/group/jfxtras-users/browse_thread/thread/a26bb47bbbc710a0]). Here's what I'm expecting from the layout:
| 1 2 |
| 3 4 |
and after a resize something like:
|           |
|   1   2   |
|           |
|   3   4   |
|           |
-------------So far, my Container implementation is getting there, but I need to resize the window once after the application starts up to get it to work right. Right after it starts, the nodes are all drawn at 0,0. It appears as though scene.width and scene.height are only initialized properly after my impl_layout function is called the first time, but I'm relying on these to calculate the width and height of the scene/stage to do the centering. If I instead rely on scene.stage.width and scene.stage.height, it works right at startup but doesn't work properly when resizing.
What should I do to fix my layout method? Is there a better way to handle this layout? HBox and VBox don't give me what I want because they don't set the positions of the components to fill the available screen area. I'm using JavaFX 1.1 on OS X.
----- GridContainer.fx -----
import javafx.scene.Group;
import javafx.scene.layout.Container;
public class GridContainer extends Container {
    public var rows: Integer = 3;
    public var columns: Integer = 3;
    init {
        impl_layout = doGridLayout;
    function doGridLayout(g:Group):Void {
        println("width = {g.scene.width}");
        println("height = {g.scene.height}");
        def tXIncrement = g.scene.width / (columns + 1);
        def tYIncrement = g.scene.height / (rows + 1);
        var tX: Number = tXIncrement;
        var tY: Number = tYIncrement;
        var r: Integer = 0;
        var c: Integer = 0;
        for (node in g.content) {
            node.translateX = tX - (node.boundsInLocal.width / 2);
            node.translateY = tY - (node.boundsInLocal.height / 2);
            if (++c == columns) {
                tX = tXIncrement;
                c = 0;
                if (++r == columns)
                    break;
                tY += tYIncrement;
            else {
                tX += tXIncrement;
----- Main.fx -----
import javafx.scene.paint.Color;
import javafx.scene.Scene;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
def width = 640;
def height = 480;
Stage {
    title: "Layout Test"
    width: width
    height: height
    scene: Scene {
        content: [
            GridContainer {
                rows: 2,
                columns: 2,
                content: [
                    Rectangle {
                        width: 150,
                        height: 100,
                        fill: Color.BLACK
                    Rectangle {
                        width: 150,
                        height: 100,
                        fill: Color.RED
                    Rectangle {
                        width: 150,
                        height: 100,
                        fill: Color.GREEN
                    Rectangle {
                        width: 150,
                        height: 100,
                        fill: Color.BLUE
    } // Scene
} // Stage
----------

Incidentally, MigLayout is capable of doing this properly, but I had to create MigNode objects for each cell (see discussion link above).
I'm still interested in how to do this with a custom Container, because I may end up using my own layout code in the future anyway...

Similar Messages

  • Hi i buy G62 but the drivers for gaming is not working properly is there a way that i can download

    My gaming driver is not working properly Im using a ATI MOBILITY RADEON HD 4200 how can i download a new driver suit to my computer and where its nposeble to download it thanks in advance.

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • IProcurement - new VO for search results not working properly?

    Greetings
    There is a requirement for the project I´m working, where the search results on iProcurement must be filtered depending on some profiles setted for the user.
    So, basically the search shouldn´t look into ICX_CAT_ITEM_PRICES, but on a custom view that works on that table, but filtering results.
    Unfortunately, that´s not working. I extended the VO (which seems to be SearchResultsVO and ItemDetailParametersVO), so the queries are now pointing to the view. But once the search is performed, the results are not filtered. It´s the very same results as before.
    Am I doing something wrong? There is some cache that works even after the Apache server is restarted? Please I could really use some help on the subject! Thanks!
    Best Regards,
    Thiago

    Thiago,
    Why don't you use a local Jdev setup for substitution process so that testing and debugging is easier.
    Follow these steps for testing locally:
    1. Add your VO to AM.
    2. After extending VO, do the following,
    Right-click on your project in the Navigator pane, and select Edit Business Components Project (or right-click on the project's .jpx and select Edit <project>).
    a. Select the Substitutions section.
    b. From the Available list, select the base object that you want to replace and press ok.
    3. Normally, the BC4J runtime does not read a project's .jpx file. To override this default behavior in JDeveloper so you substitutions can be used, you must do the following to ensure that the classpath contains the .jpx file.
    a. Right-click on your project and select Project Settings.
    b. Then in Configurations | Development | Runner, add -Djbo.project=Name to the Java Options. Note that the Name value is the .jpx file name without the .jpx extension (for example, ExtendLabSolutions). Be sure to include a space between any existing options and the new option.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Unity Express 8.6 custom script not working properly

    Hello!
    I'm having an issue with a custom auto-attendant script for Unity Express 8.6.6.
    A brief overview of the expected call flow:
    Call comes to 2600, which is set to forward to 2699 if busy or no answer.
    Call to 2699 is sent to CUE, which is set to answer with the auto-attendant script.
    Script does a time-and-day check to determine if the site is within business hours.
    If within business hours, a prompt stating line is currently busy, please leave a message is played, and call is forwarded to 2601.
    If outside business hours, a prompt stating office is closed is played, and call is forwarded to 2601.
    Calls to 2601 are all forwarded to voicemail.
    My first version had a Business Hours object, with a schedule parameter set so that the schedule could be chosen in the CUE GUI. This script did not appear to work properly, as the AfterHours option was always selected by the script. My current version removed this object and replaced it with manual Time-and-Day objects, but the same behavior as above occurs – the AfterHours option is always selected.
    Both scripts validated in the editor, and the CUE has been rebooted since the script was first uploaded. TAC validated that nothing in the "show run" is causing CUE to ignore the time-and-day checks. I've attached a ZIP file that contains the scripts, "show software version" and "show license status application" output.
    Am I missing anything?

    I read through the document, and it says that the atrace.log file that is generated is not cleartext. Is there any application I can use to read the traces I generate?
    EDIT: Apologies, it appears this documentation needs to be rewritten. I was looking at the process to enable traces on an AIM module, when our Unity Express module is on an Internal Services Module 300. I issued "show trace buffer trail" and placed a test call, and this is what I see:
    3700 05/25 14:26:12.254 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=188,Step Class=com.cisco.wfframework.steps.core.StepComment,Step Description= /* Open/Closed check */
    3700 05/25 14:26:12.255 ACCN ENGN 0 Execute step of Task 19000000034 :  /* Open/Closed check */
    3700 05/25 14:26:12.255 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=261,Step Class=com.cisco.wf.steps.ivr.DayOfWeekStep,Step Description=Day of Week
    3700 05/25 14:26:12.255 ACCN ENGN 0 Execute step of Task 19000000034 : Day of Week
    3700 05/25 14:26:12.255 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=275,Step Class=com.cisco.wfframework.steps.core.StepGoto,Step Description=Goto AfterHours
    3700 05/25 14:26:12.255 ACCN ENGN 0 Execute step of Task 19000000034 : Goto AfterHours
    3700 05/25 14:26:12.256 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=37,Step Class=com.cisco.wfframework.steps.core.StepLabel,Step Description=AfterHours:
    3700 05/25 14:26:12.256 ACCN ENGN 0 Execute step of Task 19000000034 : AfterHours:
    3700 05/25 14:26:12.256 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=228,Step Class=com.cisco.wfframework.steps.core.StepComment,Step Description= /* Play VTG_Closed prompt ... */
    3700 05/25 14:26:12.256 ACCN ENGN 0 Execute step of Task 19000000034 :  /* Play VTG_Closed prompt ... */
    3700 05/25 14:26:12.256 ACCN APMG 0 EXECUTING_STEP:Executing a step: Application=App[name=autoattendant,type=Cisco Script Application,id=1,desc=autoattendant,enabled=true,max=2,valid=true,cfg=[ApplicationConfig[,name=autoattendant,id=1,type=Cisco Script Application.description=autoattendant,enabled=true,sessions=2,script=SCRIPT[aa_vtgnwd.aef],access=0,privilege=1,script=SCRIPT[aa_vtgnwd.aef]]]],Task id=19000000034,Step id=214,Step Class=com.cisco.wf.steps.ivr.OutputStep,Step Description=Play Prompt (--Triggering Contact--, pAfterHours)
    3700 05/25 14:26:12.256 ACCN ENGN 0 Execute step of Task 19000000034 : Play Prompt (--Triggering Contact--, pAfterHours)
    It appears as though the script engine is seeing the Day of Week object, acknowledging it without somehow doing anything with it, and then choosing a "goto AfterHours" step within that object and playing that prompt, which is consistent with the behavior we're seeing.
    Any thoughts? 

  • Transaction for a Zreport not working properly

    Hi all gurus,
    I developed a report which extracts some data from the system based on an user selection via select-option.
    A simple schema of execution:
    - the user completes a selection mask;
    - F8 to execute;
    - the report extracts required data and performs some check filling a return table containing the desiderata info;
    - ALV to show the results.
    The report works fine; the problem is the transaction I created over it.
    I simply created a transaction (ZCHECKPRiCE) for the report, but it doesn't work properly. Once the tx is called, the selection mask is properly shown and the user can fill it. So far, everything seems to be fine. But when the user presses F8 to start the process, the report suddenly quits and the SAP welcome screen is shown. What could it be the cause of this strange behaviour? I guess there's something I missed creating the transaction, but now I can access the tx property and don't see anything wrong. Can you please help me solving this problem? Thanks in advance.

    Hi all and thanks for your help.
    I don't remember exactly which selections I made in order to create the transaction; since it's a work I've done many times, I did it quite quickly. Now, what I can see in the transaction property is what follows:
    Transaction code        ZCHECKPRICE                                 
    Package                 ZSRM                                                                               
    Transaction text      Report di verifica prezzi                    
    Program                   Z_CHECK_PRICEI                         
    Screen number        1000                                         
    Authorization object (blank)
    X Maintanance of standard transaction variant allowed
    Transaction classification:
    Professional User Transaction (radiobutton: selected)
    Easy Web transaction (radiobutton: not selected)
    GUI support:
    all the check are active (but seems irrilevant in this case)
    I'd prefer to apply modifications on the current transaction (ZCHECKPRICE) and not to create a new one from scratch.
    Any idea?
    Thanks again

  • "Use presets for responsive layout" not working in Chrome

    I am building a responsive website. I am going to have parts of the website animated using Edge Animate. I will make the animation and then insert it into a div in the responsive website I am building.
    The Adobe Edge animation has a width of 100%, so that it resizes according to the area that it occupies the full width of the div no matter how wide that div may be in px.
    It is all working fine, but:
    I have an image in the Edge animation that is center aligned. It must stay center aligned no matter what width the animation ends up being.
    Within Adobe Edge, in Properties, in Position and Size, there is a option where, if you hover your mouse cursor over the top right button a tool tip says "Use presets for responsive layout"
    With the image on the stage selected, I can click on the "Use presets for responsive layout" button and then choose "Centre background Image".
    It works perfectly in all browsers accept Chrome (even IE is playing ball this time). In chrome the width of the image stretches out as the div stretches out..
    The "Centre background Image" setting says that it won't scale the image. But in Chrome it does.
    What can I do to "tell" Edge Animate to center the image but not scale it in the Chrome browser?
    I can see that in the image properties it is set to Background image x axis and y axis 50%. And the width is set to pixels. But in Chrome, the image stretches.
    If you go to http://www.brainstormadvertising.co.uk/demo/services.html you will see what I mean. The circle image is centering BUT stretching in chrome browsers while centering nicely and NOT stretching in other browsers.

    Thank you for your reply Josh. But the point of this setting in Edge Animate is that you can set it up that the background image is center aligned and does not scale. Yet it produces code that gives the width as 21.72%.
    A little further along I see background-size: 48px; .  This is correct.
    So all the browers are reading background-size: 48px; as the scale measurement but Chrome is reading the width only, not the background-width. So this "Use presets for responsive layout" works in all browsers except chrome.
    I don't know how to change that code after the artwork has been published. I can see the code using Firebug, but where do I change it in my code on my computer before uploading to the server?
    I have reported this bug to Adobe.
    Please see the attachment. You can see where all the settings are made and where I am getting a problem.

  • Pdf Filter for Sharepoint 2003 not working properly

    We are having some problem in crawling pdf documents in Sharepoint sites.
    We installed Adobe's IFilter 6.0 on the Sharepoint Farm.
    But, found that crawling is not happening properly. i.e, when full text search is given for some key words present in pdf documents, for some of the words search is not returning the documents.
    Here is a senario.
    There is a document called 'Best Practices.pdf', in 3 sub sites.
    'Throw EDMSException from catch blocks.' - a line that is present in the above document.
    In full text search if 'EDMSException from' is given, all the 3 documents under 3 sites are being displyed in the search results.
    But, if 'Throw EDMSException' is given, no documents are getting displayed in the search results.
    Please help on this issue.
    P.S. : There is a table in that pdf document and within a cell, the above line is present.

    Hi there,
    We are developing an application where we are storing pdf files as Image in SQL Server 2000. We tried to implement Full Text Search for the same, but it works only for text files and not for pdf files stored in database. We have installed Adobe's IFilter 6.0 and followed all instructions that i found in one article (http://www.indexserverfaq.com/Blobs.htm). We are not getting what we wre missing. Any help whill be greatly appriciated. My emailid is [email protected]
    Thanks in advance.

  • Help - Extended Controller for Blanket PO not working

    Isupplier portal : PO details page
    On page /oracle/apps/pos/changeorder/webui/PosViewPOPG , I extended ViewOrderPGCO.
    All the items in PO, which have bill of material are made as hyper links and clicking on them pops up a window with bill of mateiral displayed.
    All worked fine untill I opened Blanket PO, there is an item which should be displayed as link, but its static. so I put SOPs in extended controller after each line, and to my consternation it does not print any SOP.
    Blanket POs in isupplier portal have hyphens in PO Number. Has anyone faced this problem ? why is the extension not reflecting in case of blanket po ? What am i missing ?
    Thanks in advance.

    Anyone please help.
    Extended CO for blanket PO doesnt seem to be called whereas for standard PO it works.
    Steps taken
    - MAViewOrderPGCO extends ViewOrderPGCO and replaced the new CO through personalization at site level.
    public class MAViewOrderPGCO extends ViewOrderPGCO
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
       System.out.println("___________________________________");  //This prints for STANDARD PO  but not for Blanket PO }
    }could someone help me in debugging this. I am terribly stuck.

  • Apple software update for windows does not work properly

    Apple software update does not work properly

    I FIXED IT!! I can't believe it . I actually figured out how to make it work(well sort of). My Apple Software Updater now works (almost) perfectly and I just successfully downloaded and installed itunes 10.6.3.25 through it!!!
    Ok , the way I see it, either the latest itunes update or the recent Windows Patch Tuesday on June 12th, 2012 must have inadvertently removed the Administrative Rights from the Apple Software Update Tool .lnk file.
    So you must go to where the file resides on your hard drive - for me that was C:\Program Data\Microsoft\Windows\Start Menu\Programs - Right click on the Apple software Tool icon and choose properties. Click on the compatibility tab. At the bottom of this tab click on "change settings for all users" and hit Yes at the UAC pop-up. Now make sure you place a check in the "Run this program as Administrator" under the Privilege level section at the bottom. Hit Apply and then OK. The hit Ok again to get off the properties pop-up.
    When I went back and clicked on the Apple Software Update shortcut, I got a UAC pop-up asking me if I wanted to proceed(something I had always, in the past, gotten but haven't since this problem started). The Apple Software Update tool came up and to my suprise the progress bar STAYED and started to slowly fill up partially with the green progress bar. Viola, the itunes 10.6.3 update showed up on the top part of the screen as a new update needing to be installed - the bottom screen, as usual, had the changelog info for the 10.6.3 update. I clicked on install and , again, Viola. the update downloaded and installed flawlessly. I had to reboot my computer and when it restarted, itunes was working perfectly and it was correctly showing as itunes v10.6.3.25.
    I say it is almost or sort of fixed because when you click on the Apple Software Update shortcut after the 10.6.3 install it goes back to doing the same thing it did before(i.e. processing for a second and then saying there are new updates but showing a blank field). Maybe this is the way the software now looks if there are no updates available to install - maybe Apple is working on this to eventually get it back to normal. All I know is the process I outlined above worked for me(at least to get the ASU to recognize and properly download and install itunes 10.6.3). It's certainly not perfect, but it worked. Please try this method and let me know what results you have with it. Good luck.

  • Custom component not working properly

    Hi all - I am trying to create a custom component. I have followed the suggested MVC architecture, and created the following classes:
    1. SuperLineModel (the MODEL)
    2. SuperLine (the actual component,e.g. the CONTROLLER)
    3. BasicSuperLineUI (the UI Delegate class, e.g. the VIEW)
    4. SuperLineUI (an abstract type class for my UI Delegate)
    I also have a fifth class that draws a frame and panel, and then adds the custom component to the panel. In the main method of this class, I
    register the UI delegate like this:
    UIManager.put(BasicSuperLineUI.UI_CLASS_ID, "com.volant.mapit.view.BasicSuperLineUI");Everything compiles without any problems, but the custom component is never painted for some reason. In fact, I added a print line to the UI delegates paint method just to see if it was ever called, and it wasn't. I know I'm missing something here, and it's probably something small. I'm hoping some of you Swing gurus can take a look at my code below and point out the problem for me.
    I really appreciate any help you can give me. Thanks.
    The classes are listed below:
    // SuperLineModel
    import javax.swing.*;
    import javax.swing.event.*;
    public class SuperLineModel
      private double sourceXCoord = 0;
      private double sourceYCoord = 0;
      private double targetXCoord = 0;
      private double targetYCoord = 0;
      private EventListenerList listenerList = new EventListenerList();
      public SuperLineModel()
      public SuperLineModel(double sourceXCoord, double sourceYCoord,
                           double targetXCoord, double targetYCoord)
        this.sourceXCoord = sourceXCoord;
        this.sourceYCoord = sourceYCoord;
        this.targetXCoord = targetXCoord;
        this.targetYCoord = targetYCoord;
      public void setSourceXCoord(double x)
        this.sourceXCoord = x;
        return;
      public void setSourceYCoord(double y)
        this.sourceYCoord = y;
        return;
      public void setTargetXCoord(double x)
        this.targetXCoord = x;
        return;
      public void setTargetYCoord(double y)
        this.targetYCoord = y;
        return;
      public double getSourceXCoord()
        return this.sourceXCoord;
      public double getSourceYCoord()
        return this.sourceYCoord;
      public double getTargetXCoord()
        return this.targetXCoord;
      public double getTargetYCoord()
        return this.targetYCoord;
      public void addChangeListener(ChangeListener cl)
        listenerList.add(ChangeListener.class, cl);
      public void removeChangeListener(ChangeListener cl)
        listenerList.remove(ChangeListener.class, cl);
    // SuperLine
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import com.volant.mapit.view.*;
    import com.volant.mapit.model.*;
    public class SuperLine extends JComponent implements ChangeListener
      private SuperLineModel model;
      public SuperLine()
        init(new SuperLineModel());
      public SuperLine(SuperLineModel model)
        init(model);
      public void init(SuperLineModel model)
        setModel(model);
        setMinimumSize(new Dimension(50, 50));
        setPreferredSize(new Dimension(50,50));
        updateUI();
      public void setUI(BasicSuperLineUI ui)
        super.setUI(ui);
      public BasicSuperLineUI getUI()
        return (BasicSuperLineUI)ui;
      public void updateUI()
        setUI((BasicSuperLineUI)UIManager.getUI(this));
        invalidate();
      public String getUIClassID()
        return SuperLineUI.UI_CLASS_ID;
      public SuperLineModel getModel()
        return model;
      public void setModel(SuperLineModel model)
        SuperLineModel oldModel = model;
        if(oldModel != null)
          oldModel.removeChangeListener(this);
        if(model == null)
          model = new SuperLineModel();
        else
          model.addChangeListener(this);
        firePropertyChange("model", oldModel, model);
      public void stateChanged(ChangeEvent evt)
        repaint();
    // BasicSuperLineUI
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    import com.volant.mapit.control.*;
    public class BasicSuperLineUI extends SuperLineUI
      public static ComponentUI createUI(JComponent c)
        return new BasicSuperLineUI();
      public void installUI(JComponent c)
        SuperLine sl = (SuperLine)c;
      public void uninstallUI(JComponent c)
        SuperLine sl = (SuperLine)c;
      // This method is never called and I don't know why!!!
      public void paint(Graphics g, JComponent c)
        super.paint(g, c);
        System.out.println("test2");
        g.fillRect(0, 0, 200, 400);
    // SuperLineUI
    import javax.swing.plaf.*;
    import com.volant.mapit.control.*;
    public abstract class SuperLineUI extends ComponentUI
      public static final String UI_CLASS_ID = "SuperLineUI";

    A quick glance at the code and it looks ok with the exception of the following which I don't understand what you're trying to do:
      public void installUI(JComponent c)  {
        SuperLine sl = (SuperLine)c;
      public void uninstallUI(JComponent c)  {
        SuperLine sl = (SuperLine)c;
      }Here are my comments:
    1) I expect Superline sl to be a global variable for use elsewhere in your program.
    2) I have no idea what your uninstallUI does.
    This is what I would do:
      SuperLine sl;
      public void installUI(JComponent c)  {
        sl = (SuperLine)c;
      public void uninstallUI(JComponent c)  {
      }Finally, I am assuming that the changelistener will trigger a repaint which in turn will call your paint method, right?
    ;o)
    V.V.

  • After using apogee duet, mac's built in mic & logic's track headers for recording are not working properly.  How do I fix it?

    I use logic 9
    After using apogee duet for mac, I was away from my home studio without the duet and wanted to record vocals via the internal microphone on my mac book pro.  (Obviously, I know it wouldn’t be the same quality.  I wanted to do it as a draft, because I had a melody in my head and wanted to record it so I could remember it later.)
    After opening up a project I was unable to record audio.  I noticed the track headers had changed.  Sometimes the “record ready” button was missing.  But whether it was there or wasn’t, the same thing kept happening… After pressing the “record button” or the “record ready” button a window would pop up that said, “No input source selected!”  I tried to trouble shoot by configuring track header and by going to prefereces>audio>devices>core audio, and switched the “input device” to “built in microphone,” and things like that, but I still would get the same pop up window indicating “no input source selected.”   To be thorough, in preferences under “core audio,” I have selected universal track mode, 24 bit recording, and software monitoring.
    Do I need to reset something?
    If your recommendations help fix the immediate issue temporarily, how do I keep it from reverting back to the same problem if I feel like switching between the duet interface and the built in mic in the future?  How do I keep it permanently from this malfunction?  It seems like this is something simple that would be addressed.
    Also, as I was trying to think of anything it could possibly be.  I wonder if it could be the driver I installed for an old m-box2 possibly causing an issue.  After getting my new mac book pro, I downloaded a driver for m-box2 (the second generation that came out in 2005 and used pro tools LE.)  I used the m-box on my previous computer and it worked well.  Since I purchased a new macbook, I tried to use it on my new computer, but since the m-box2 is a 32 bit system, it didn’t work very well, which is why I got the duet.  I don’t know if that could possibly be messing anything up.  If so, should I uninstall it somehow?
    Thanks

    Ok, think this through... you've changed from a stereo source to a mono source.
    The message reads: “No input source selected!”
    On the track you're trying to record there is an Input section directly underneath the  I/O label. Click and hold to select the correct Input for that track.
    Also, the project you opened was saved with the Duet's driver/interface parameters.. if you open the same project without the audio interface Logic will do it's best to pick I/O that's compatible but I've never seen any DAW do this perfectly.. it always takes a small amount of user input. Especially since you've changed from the Apogee to the internal mic.

  • Peak detection function for sawtooth waveform not working properly

    I am using peakdetector function for finding peaks in a sawtooth wave. The peaks it detects is 2 units higher then the actual peak. But when i do the same thing for sine wave it detects the peaks properly.
    Can anyone please tell me why am I having this problem and how to resolve it? Any help would be greatly appreciated. Thanks in advance 

    With that line i got a sawtooth wave having 10 cycles. It dtects  all the 10 peaks but at an amplitude 2 units higher the the actual peak. I have attached a picture of what I got... 
    Attachments:
    sawtooth.jpg ‏206 KB

  • IGoogle custom layout not loading properly in Firefox 4

    When using the new Firefox version 4 - iGoogle does not display correctly, most of the objects display nothing more than their titles, and some do not display anything at all.
    Tested on IE9, no issues.

    If you use Avast try disabling the WebRep add-on. I had the same problem, it was working fine in safe mode to I guessed it was a problem with an add-on, when I disabled Avast it now displays perfectly. I have WOT so thankfully Avast was superfluous anyway. Hope that helps.

  • New update for Pages is not working properly, loosing many features. Where is the citation skill for instance?

    Very bad moment to change Pages version for a cloud-light version of Pages. Many features lost. No citations anymore. How is possible Apple release this software without proper testing?

    By the way, relying on instanceof is kind of poor. Sometimes it's unavoidable, but if you can redesign your program so that it doesn't have to do this, it would be good.
    You could add the Student objects to two different lists (it's still the same object, just used twice, so there's little waste of resources), one list represents all students, and one list represents just postgraduates or just undergraduates.
    You could also perhaps have a method in Student which basically says "add yourself to the appropriate list", and when you want to display student lists, call that method on all students.

  • After update to 33.0.2 html 5 for youtube is not working properly..its flickering..

    please help ..i dont want to use flash player ,,

    You can try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    You need to close and restart Firefox after toggling this setting.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check if there is an update for your graphics display driver.
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers

Maybe you are looking for