Help with component placement

I need help getting the components on my gui to go in the right place
I want it to look like
|-----------------------------------------|
timeInLabel timeInField
timeOutLabel timeOutField
calculateButton
dailyAreaLabel
dailyArea
totalAreaLabel
totalArea
exitButton
|-----------------------------------------|
but ti keeps coming out
|------------------------------------------------|
timeInLabel timeInField
timeOutLabel timeInField
calculateButton dailyAreaLabel
dailyArea totalAreaLabel
totalArea exitButtton
|-------------------------------------------------|
this is the code im using
// get the content pane
          Container c = mainFrame.getContentPane();
               // set layout manager
          c.setLayout(new FlowLayout());
          Panel p = new Panel();
          p.setLayout(new BorderLayout());
          p.add(timeInLabel,BorderLayout.NORTH);
          p.add(timeInField,BorderLayout.NORTH);
          p.add(timeOutLabel,BorderLayout.SOUTH);
          p.add(timeOutLabel,BorderLayout.SOUTH);
          c.add(p);
          Panel p2 = new Panel();
          p2.setLayout(new FlowLayout());
          p2.add(calculateButton);
          c.add(p2);
          Panel p3 = new Panel();
          p3.setLayout(new BorderLayout());
          p3.add(dailyLabel,BorderLayout.NORTH);
          p3.add(dailyArea,BorderLayout.NORTH);
          p3.add(totalLabel,BorderLayout.SOUTH);
          p3.add(totalArea,BorderLayout.SOUTH);
          c.add(p3);
          Panel p4 = new Panel();
          p4.setLayout(new FlowLayout());
          p4.add(exitButton);
          c.add(p4);
pls let me know how to do this.

Next code looks like your draw in my PC
|-----------------------------------------|
timeInLabel timeInField
timeOutLabel timeOutField
calculateButton
dailyAreaLabel
dailyArea
totalAreaLabel
totalArea
exitButton
|-----------------------------------------|
public static void main(String[] args) {
          JFrame f = new JFrame();     
          final JTabbedPane tabPane = new JTabbedPane();
          f.getContentPane().add(tabPane);
// get the content pane
Container c = f.getContentPane();
// set layout manager
c.setLayout(new BoxLayout(c, BoxLayout.Y_AXIS));
Panel p = new Panel();
p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS));
JLabel timeInLabel = new JLabel("timeInLabel");
p.add(timeInLabel);
JTextField timeInField = new JTextField("timeInField");
timeInField.setMaximumSize(timeInField.getPreferredSize());
p.add(timeInField);
c.add(p);
Panel pj = new Panel();
pj.setLayout(new BoxLayout(pj, BoxLayout.X_AXIS));
JLabel timeOutLabel= new JLabel("timeOutLabel");
pj.add(timeOutLabel);
JTextField timeOutField = new JTextField("timeOutField");
timeOutField.setMaximumSize(timeOutField.getPreferredSize());
pj.add(timeOutField);
c.add(pj);
Panel p2 = new Panel();
p2.setLayout(new FlowLayout());
JButton calculateButton = new JButton("calculateButton");
p2.add(calculateButton);
c.add(p2);
c.add(Box.createVerticalGlue());
/*Panel p3 = new Panel();
p3.setLayout(new BorderLayout());*/
JLabel dailyLabel= new JLabel("dailyLabel");
c.add(dailyLabel);
JTextField dailyArea= new JTextField("dailyArea");
dailyArea.setMaximumSize(dailyArea.getPreferredSize());
c.add(dailyArea);
JLabel totalLabel= new JLabel("totalLabel");
c.add(totalLabel);
JTextField totalArea= new JTextField("totalArea");
totalArea.setMaximumSize(totalArea.getPreferredSize());
c.add(totalArea,BorderLayout.SOUTH);
//c.add(p3);
/*Panel p4 = new Panel();
p4.setLayout(new FlowLayout());*/
JButton exitButton = new JButton("exitButton");
c.add(exitButton);
//c.add(p4);
          f.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent we) {
                    System.exit(0);     
          f.setSize(500, 300);
          f.setVisible(true);

Similar Messages

  • HT4433 Requesting help with the placement of dimms in relation to ram performance?

    Does the placement onto the memory cards of dimms of different capacities/size matter when it comes to performance ?
    I want to know if it matters how I install a new pair (2 pcs) of 4gb dimms in a machine currently with 8 x 1 gb dims?
    IF it matters, which exhisting dimms should I replace for best performance?
    Should they be paired in slots 1 and 2 of the upper (or lower) memory card, or separated into slot 1 of each card?
    Is there a preferred slot number for dimms of a larger capacity than the rest.I hope I am being clear enough in my description.
    Thank you in advance for any advice.

    8 DIMMs = 17% improvement tested by Barefeats in 3,1 2008s.
    4GB FBDIMM cost is prohibitive.
    8x2GB $138 from Amazon would be more cost performance effecitve UNLESS  you feel you need more than 16GB.

  • Help with image placement in new browser window.

    I need help trying to position images that are being opened
    in a new browser window. I have created a photo gallery with
    thumbnails that are links to the larger image. Ive used the
    behaviors panel to open the new image in a new browser window but
    the image is always shown at the top left margins of the new
    window. Is there a way to 1. center the image in the new window, 2.
    change the background color of the new window that opens.
    Any help would be appreciated.
    Stu

    If, as I read it, you are simply opening the image, it will
    always be upper
    left and cannot be changed. IF you wnat to position it, you
    will need to
    create a new html page and position your image on that page,
    then call the
    page, not the image from your thumbnail link.
    In Dreamweaver in the command menu try the "Create Web Photo
    Album" command.
    It will create all of your pages, links and thumbnails for
    you. (requires
    Fireworks)
    Michael Hager
    www.cmhager.com
    "Stu127" <[email protected]> wrote in
    message
    news:eo70n5$qo5$[email protected]..
    >I need help trying to position images that are being
    opened in a new
    >browser
    > window. I have created a photo gallery with thumbnails
    that are links to
    > the
    > larger image. Ive used the behaviors panel to open the
    new image in a new
    > browser window but the image is always shown at the top
    left margins of
    > the new
    > window. Is there a way to 1. center the image in the new
    window, 2.
    > change the
    > background color of the new window that opens.
    >
    > Any help would be appreciated.
    > Stu
    >

  • Need help with Component- TileList

    Hi,
    I'm trying to make a gallery using the component: TileList. Here is what I've done so far:
    I've created two arrays(aTop & aBottom) to store the movie clips(mc1-mc10 & mc11-mc20 respectively) which will be shown when the corresponding drop down menu is selected. I've placed the movie clips mc1, mc2, mc3...,mc20 off the stage so that they are not visible right now. What I need is when the user selects the drop down menu, then the corresponding images(movie clips) will be shown in the TileList that I've created.
    I've used the following code. Instance name for the TileList is: tlGallery & instance name for the Combo Box is cbClothes.
    import flash.events.MouseEvent;
    import flash.events.Event;
    import fl.data.DataProvider;
    import flash.display.*;
    var aTop:Array = new Array(mc1,mc2,mc3,mc4,mc5,mc6,mc7,mc8,mc9,mc10);
    var aBottom:Array = new Array(mc11,mc12,mc13,mc14,mc15,mc16,mc17,mc18,mc19,mc20);
    function showGallery(evt:Event):void
        if (evt.target.selectedIndex == 0)
            var dpImage1:DataProvider = new DataProvider(aTop);
            tlGallery.dataProvider = dpImage1;
        else if (evt.target.selectedIndex == 1)
            var dpImage2:DataProvider = new DataProvider(aBottom);
            tlGallery.dataProvider = dpImage2;
    cbClothes.addEventListener(Event.CHANGE,showGallery);
    After selecting the top-down menu, I'm getting 10 placeholders in the TileList but I can't view the images(movie clips). I need to find out where I'm making the mistake. Am I following the correct procedure to load  and show the TileList with the movie clips?

    Flash CS3 has this Example and it should work for any version:
    This example demonstrates how to create a TileList instance and dynamically populate its  contents with a symbol from the library.
    To run the example, follow these steps:
    Add the TileList component to the library.
    Draw a star and create a movie clip symbol from it named "star".
    In the symbol properties for star, check the box that says  "Export for ActionScript".
    Save this code as TileListExample.as in the  same directory as your FLA file.
    Set the Document class in the FLA file to TileListExample.
    package
        import fl.controls.TileList;
        import fl.data.DataProvider;
        import flash.display.Sprite;
        import flash.events.Event;
        public class TileListExample extends Sprite
            public function TileListExample() {
                var dp:DataProvider = new DataProvider();
                var totalEntries:uint = 42;
                var i:uint;
                for(i=0; i<totalEntries; i++) {
                    dp.addItem( { label:"star"+i, source:star, scaleContent:false} );           
                var myTileList:TileList = new TileList();
                myTileList.allowMultipleSelection = true;
                myTileList.columnWidth = 125;
                myTileList.rowHeight = 150;
                myTileList.dataProvider = dp;
                myTileList.columnCount = 3;
                myTileList.rowCount = 1;
                myTileList.move(10,10);
                addChild(myTileList);

  • Help with component progressBar and Loader

    The progress bar doesn't work if the .swf movie that's being loaded is being loaded into another movie. If the loader is on the main stage it works fine both in testing and on the internet.
    For example, I created a parent movie and a child movie with a loader and progressBar. The child movie works perfectly by itself. If I load the child movie into the parent movie the progressBar doesn't work.
    I'm a designer not a programmer. Is there a fix for this?

    When using the Loader component, the progress-bar needs to be in the parent movie to work.

  • Need help with component label

    Hi all,
    I want to have label for my components. so when any existing components on the page is opened for editing(for example if I open any components in edit mode from foundation, Tab name is seen and if there is multiple tab like in textImage component its confusing what component is that)I am using fieldLabel properties to show label in my component but this properties is not working for me. Please advice...
    Thanks A lot in Advance..

    Hi,
    Yeah, its clear now. sorry for confusion. So as i understood you actually want to show label for your component not the tabs and OOTB using title will not help you. If you want to achieve this then you have to change your hierarchy.
    Yake an example:
    If your current hierarchy is like below
    dialog (tabpanel) --> items (widgetcollection) --> tab1 (panel)--> items (widgetcollection) --> etc.....
    then you have to move your tabpanel inside another panel which has property "layout" and value as "fit", so the new hierarchy will look like this
    dialog (panel) -->items (widgetcollection)-->Main Tab(tabpanel) --> items (widgetcollection) --> tab1 (panel)--> items (widgetcollection) --> etc.....
    and at panel use property "title" to set the main title
    The look and feel will be different than to normal tab panel obviously as you used panel but hope it will be fine.
    Let me know you need more information.
    I would also suggest you to refer - http://dev.day.com/docs/en/cq/current/widgets-api/output/CQ.Ext.TabPanel.html from more info.
    Thanks,
    Pawan

  • Need help with photo placement & sizing in iPhoto Calendar

    Hi,
    I am in the process of creating a photo calendar for my wife for Xmas in iPhoto. Initially I just dragged and dropped most of the photos into the layouts I selected without any cropping or anything figuring that they would print out on the calendar exactly as they appeared on the screen. When I was almost all done I needed to crop a photo and in reading about how to do this I got nervous as the manual said iPhoto is not a WYSIWYG program.
    My question is if you drag and drop photos into preselected photo layout (1, 2, 3, etc photos to a page without cropping is it safe to assume that they will appear on the final calendar just as they appear on the screen?
    Thanks!
    Winston

    Winston:
    Yes, you should see what you see on the screen. However, to make sure all is as it should be, hold down the Option key and click on the Buy button. This will automatically put you is a create pdf file mode for the calendar at the same size as will be printed, 13 x 10.4 inches. You can check the pdf file to make sure all the photos appear as you want them and that all of the text is correct, typos, etc.
    Happy Holidays
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Need help with CF component call, please

    Hi!
    I've been working with component lately but still learning. In one of my logic I need to use an existing component and I'm not sure how to correctly call the function and get the return result from that.
    Can anyone help me please?
    Basically I created a component:
    <cfcomponent displayname="X">
         <CFFUNCTION name="GetNames">
           <fargument name="1" type="String" required="TRUE">
           <cfargument name="2" type="String" required="TRUE">
           <!---- I do my work here ---->
            within my logic, I need to call an existing function located at
            in a different component And I  need to use the result returned by this function.
            (see below)
            I'm not sure how to correctly call that function from here
            Can I simply do:
            <cfinvoke component="the location of Y component" method="Compare" MyVar = "MyNames" Returnresult="Z">
            <CFIF #Z# NEQ 0>
                <!---  DO something --->
           <CFELSE>
              <!--- do something else --->
           </CFIF>
         </CFFUNCTION>
    </cfcomponent>
    This is the existing componen that I need to use. It's located at the same directory:
    <cfcomponent displayname="Y">
    <!--- assuming this is the function that I need to call --->
         <CFFUNCTION name="Compare" hint="verify names">
           <cfargument name="MyVar" type="String" required="TRUE">
          <cfscript>
                some logic here
                 return return_struct;
         </cfscript>
         </CFFUNCTION>
    </cfcomponent> 
    Please advice, thank you!

    I hopo the following example will be helpful for. Please let me know if you have any questions.
    childComponent.cfc:
    <cfcomponent displayname="childComponent">
        <cffunction name="childComponentFunction" access="remote" returntype="string">
            <cfargument name="myArgument" type="string" required="yes">
            <cfset var finalString="">
            <cfinvoke component="baseComponent" method="baseComponentFunction" returnvariable="finalString">
                <cfinvokeargument name="stringArgumentToReturn" value="#arguments.myArgument#">
            </cfinvoke>
            <cfreturn finalString>
        </cffunction>
    </cfcomponent>
    baseComponent.cfc:
    <cfcomponent displayname="baseComponent">
        <cffunction name="baseComponentFunction" access="public" returntype="string">
            <cfargument name="stringArgumentToReturn" required="yes" type="string">
            <cfreturn arguments.stringArgumentToReturn>
        </cffunction>
    </cfcomponent>
    FYI - There several other methods through which we can call functions of different functions.

  • I have a "Contact" organization issue I need help with.  I organize multiple customers under their account affiliation. I place the people with their contact info under each account name by their dept/role in the notes section of their account. I am l

    I have a "Contact" organization issue I need help with.  I organize multiple customers under their account affiliation. I place the people with their contact info under each account name by their dept/role in the notes section of their account. I am looking to be able to directly dial / email from this info in yet notes section located within a contact. On Blackberry, the notes area entered in a contact can connect directly but on the iPhone those numbers/emails are inactive. I am trying to avoid having to create each of these individuals as a separate contact and keep them under their account affiliation. It is easier to find them.  This does not seem like that complicated of a request and hoping someone can tell me how or share an app that will enable the "notes" within a contact be "active". Hope this makes sense.

    I seem to recall that this question has been asked before and I'm pretty sure that the answer is that you can't do what you want to do with the native contact app. However, there are lots of contact apps out there that pull from the built app's data but have other features. Perhaps one of them would meet your needs.

  • OniPhone 6 Plus. Connectinge 6 Plus. Connecting Bluetooth to my Prius bluetooth has been successful However, I am unable to answer or place calls via the bluetooth connection even though the connection has been established. Can anyone help with this?

    With my new iPhone 6 Plus. Connectinge 6 Plus. Connecting Bluetooth to my Prius bluetooth has been successful. However, I am unable to answer or place calls via the bluetooth connection even though the connection has been established. It worked well with my previous iPhone 4S. Can anyone help with this?

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • Hello everyone, hoping for some help with my new Apple Cinema Display 20"

    Hi everyone, I bought an Apple Cinema Display 20 inch LCD monitor, just about 3 weeks ago. I have two issues I am hoping to get some help with.
    1) I am using the screen on a PC with Windows XP, and I was very disappointed at the lack of PC support. I have no on screen display (OSD), so I can't see what percentage I have my brightness set to, and I can't alter the colour or contrast of the display, etc. Luckily it defaulted to very good settings, but I would really like to be able to use the (fan made?) program called "WinACD". If I would be best asking somewhere else, please direct me there. If not, my problem is that I installed it added the "Controls" tab, but it just says, Virtual Control Panel "None Present". I have tried googling for an answer, and I have seen many suggestions, but none of them worked. I installed the WinACD driver without my USB lead plugged in, and someone said that was important. So I have tried uninstalling, rebooting, then reinstalling it again with the USB plugged in, and a device plugged in to my monitor to be sure. It didn't seem to help. I have actually done this process a few times, just to be sure. So I would really like to get that working if possible.
    2) I am disappointed at the uniformity of the colour on the display. I have seen other people mention this (again, after a google search), and that someone seemed to think it is just an issue we have to deal with, with this generation of LCD monitors. Before I bought this screen, I had an NEC (20wgx2), and it had a very similar issue. Most of the time, you cannot see any problem at all, but if you display an entire screen with a dark (none prime) colour, like a dark blue green colour, you can see areas where it is slightly darker than others. It was more defined on the NEC screen, and that is why I returned it. I now bought this Apple Cinema Display, because it was the only good alternative to the NEC. (It has an 8bit S-IPS / AS-IPS panel, which was important to me). But the problem exists in this screen too. It isn't as bad thankfully, but it still exists... I have actually tried a third monitor just to be sure, and the problem existed very slightly in that one, so I think I am probably quite sensitive in that I can detect it.
    It is most noticable to me, because I do everything on this PC. I work, I watch films, and I play games. 99% of the time, I cannot see this problem. But in some games (especially one)... the problem is quite noticeable. When you pan the view around, my eyes are drawn to the slight areas on my screen which are darker, and it ruins my enjoyment. To confirm it wasn't just the game, like I said, I can use a program to make the entire screen display one solid colour, and if you pick the right type of colour (anything that isn't a bright primary colour), I can see the problem - albeit fairly faintly.
    I am pretty positive that it is not my graphics card or any other component of my PC, by the way, because everything is brand new and working perfectly, and the graphics card specifically, I have upgraded and yet the problem remains - even on the new card. Also, the areas that are darker, are different on this screen than on the other screens I have used.
    So basically, I would like to register my disappointment at the lack of perfect uniformity on a screen which cost me £400 (over double what most 20 inch LCD screens cost), and I would like to know if anybody could possibly suggest a way to fix it?
    It is upsetting, becuase although this problem exists on other screens too, this is, as far as I know, the most expensive 20" LCD monitor available today, and uses the best technology available too.
    p.s. If anyone would like to use the program that lets you set your entire PC screen a specific colour, it is called "Dead Pixel Buddy", and it is a free piece of software, made by somebody to check for dead pixels. But I found it useful for other things too, including looking at how uniform the colour of the screen is. That's not to say I was specifically looking for this problem by the way... the problem cought my eye.
    Thanks in advance!
    Message was edited by: telelove

    I've been talking about this on another forum too, and I made some pictures in photoshop to describe the problem. Here is what I posted on the other forum:
    Yes, "brightness uniformity" definitely seems to be the best description of my issue.
    Basically it just seems like there are very faint lines down the screen, that are slightly darker than the other areas on the screen. They aren't defined lines, and they aren't in a pattern. It's just slight areas that are darker, and the areas seem like narrow bands/lines. Usually you can't see it, but in some cases, it is quite noticeable. It is mainly when I'm playing a game. The slightly darker areas are not visible, and then when the image moves (because I am turning in a car, or turning a plane, or turning in a shooter etc.) the image moves, but these slightly darker areas stay still, and that makes them really stand out.
    As for how it looks, I tried to make an example in photoshop:
    Original Image:
    http://img340.imageshack.us/img340/3045/td1ja9.jpg
    Then imagine turning the car around a bend, and then it looks like this:
    http://img266.imageshack.us/img266/959/td2hq7.jpg
    It's those lines in the clouds. If you can tab between the two images, you can see the difference easily. Imagine seeing those lines appear, every single time you move in a game. (I haven't tested this in movies yet, but I am assuming it's the same).
    It isn't very clear on a static image. But when the image moves, the darker areas stay in the same place and it draws your eyes towards them. It isn't terrible, but it is annoying, especially consider how much this screen cost.
    Message was edited by: telelove

  • Help with systemd problems/reply to closed thread

    @Everyone; as the previopus topic was closed, I am opening a new one here, partly to reply to some things that was said to me in the previous thread/topic (and I do not like to leave people hanging), but mainly to try and get some help with my systemd config (that I was not able to find help with in the wiki or manpages).
    @czubek; eww, that sounds rather similiar to some other operating systems I've heard of (not just, but obviously including, windows)... For me, subjectively, that is not very attractive, as being able to have a single application do a single thing, and then mixing and matching as I personally see fit is a great thing.
    @tomegun: I can indeed see your point, but if I made direct quotes on all the things I reply too, my posts would reach biblical proportions.
    Mmm-hmm, I do indeed know of "the Arch Way"; however, the system that you expose can be of varying complexity as well, and I found that the system that was presented to me by way of Sysvinit/initscripts was a way simpler system than that presented to me by systemd.
    Indeed, and I do like that; I enjoy knowing how my system works and learning more about it; however, the truth is that reading manpages and the wiki isn't always enough. And I use the numbers instead of letters in certain places as a jest, please, do not get offended by that; if you have to, get offended by my opinions.
    Ah, I have now scanned the wiki, the manpages, and have already faced problems. While part of me is saddened by this fact (as I was hoping for a smooth transition to systemd), part of me is glad that I can at least prove that everything isn't quite as simple as some people would make it out to be. More on this later in this post, as I do need help with the problems I have faced.
    And I wouldn't say that the new and old way are equally trivial, as I immediatley faced problems with "the new way". More on this later.
    Ok, I find that if the debate is polarized, then there is nothing wrong with describing it as such. I spell what I see.
    Oh my... Ignored as a matter of principle? I would say that that is an excellent way to stagnate; by that logic, moviemakers, gamemakers etcetera should ignore any and all criticism they recieve, as the critics are not contributing.... Wouldn't that lead to a complete halt in development? Isn't criticism (so long as it is constructive, obviously) a key component of (media/software) evolution?
    Ah, I see, then I  misunderstood the current state of the install media
    "Some adjustements"... Well, I guess we'll have to see how that goes, then. Hopefully it'll be smooth.
    @Everyone; Awebb possesses stunning accuracy as far as his observations go.
    @zb3; My point exactly.
    @tomegun; I believe you to be wrong; complaining (but not whining) is the first step towards improvement, as I think that I and zb3 has shown.
    Further, your last point (where you talk about "deep understanding of Y" and whatnot) is basically saying that only devs and programmers can contribute, so zb3's observation would be correct.
    Also, making suggestions is part of constructive criticism; you can do that even if you can't code, e.g. by saying "X works badly because it makes Y crash; couldn't we replace X with something akin to Z?". This is a valid point even if you have no intricate understanding of X, Y or Z, and if it is impossible to replace X for one reason or the other, it's not hard to reply with "Replacing X is impossible because of reason Q", and then see if someone can solve reason Q etcetera.
    zb3's example is obviously helping; for one, it would allow people to know taht they can't boot with systemd in certain cases, or that installing/runing systemd can break their system. I would consider that rather important information.
    @Everyone; Now then, to see if I can (or rather, if I can get help to) shed some light on some problems I've been having.
    My transition to systemd went pretty smooth (besides the fact that I couldn't use 'systemctl' to set anything, and neither duckduckgo nor any posts in the forums could help me (the error I continously got was "Failed to issue method call: Launch helper exited with unknown return code 1") and that there are no manpages/tips on how to configure the files for "localtime" and "adjtime", which would've been good considering some syntax have changed) to about halfway through, to the point where I was supposed to start using systemd for my daemons.
    Now then, to the main problem; first, I tried running
    "systemctl enable syslog-ng.service"
    and got the following message;
    "ln -s '/usr/lib/systemd/system/syslog-ng.service' '/etc/systemd/system/syslog.service'
    ln -s '/usr/lib/systemd/system/syslog-ng.service' '/etc/systemd/system/multi-user.target.wants/syslog-ng.service'"
    Since it doesn't exclusively say that something went wrong (at least as far as I can understand), I pondered the message a bit, but moved on to try and start dbus by issuing
    "systemctl enable dbus.service",
    to which I got the reply
    "The unit files have no [Install] section. They are not meant to be enabled using systemctl."
    This I can only assume is an error message of some sort, especially seeing as it says "not meant to be enabled using systemctl", but the wiki rather explicitly states that that is what I am supposed to do.
    I dare not move on (or attempt to start other daemons) without further advice, as I fear I might break my system. Any ideas as to how to solve this would be greatly appreciated.

    tcmdvm wrote:
    The message;
    "ln -s '/usr/lib/systemd/system/syslog-ng.service' '/etc/systemd/system/syslog.service'
    ln -s '/usr/lib/systemd/system/syslog-ng.service' '/etc/systemd/system/multi-user.target.wants/syslog-ng.service'"
    indicates that running "systemctl enable syslog.service" is now enabled.
    If you try running sytemtctl enable <whatever>.service and get
    "The unit files have no [Install] section. They are not meant to be enabled using systemctl." means there is no <whatever>.service file available to enable.
    The dbus.service as far as I know is already enabled when installing systemd and doesn't require any action.
    Ah, right, systemd is chatty (I'm of the old skool; if nothing is/goes wrong, a program should keep quiet).
    Oh ok, then I should dare more on.
    ZekeSulastin wrote:To be a bit more precise, it means the service is there but it's only used as a dependency for something else; the [Install] section of the file is what tells systemctl where to link it and such.  Also, where exactly in the wiki were you told explicitly to 'systemctl enable dbus.service'?  I can easily point you to the sections in both installation guides that tell you how to set things like /etc/localtime et. al (also `man 7 archlinux`), but not the one that said to manually enable dbus.
    Ah, I see; and well, I was told right here, going from the top, to "Enable Daemons formerly listed in rc.conf [...] For a translation of the daemons from /etc/rc.conf to systemd services, see: List of Daemons and Services.", and, using the list, dbus is mentioned there, as you can see. Since I started from the top, I did not know that you didn't need to enable that service. Perhaps it could be added to the descriptions of the relevant services in the Wiki which ones are autostarted?
    ZekeSulastin wrote:Lastly, I don't think trying to continue conversations from a closed thread is a very good idea, let alone doing it in a giant undivided wall of text that makes it quite difficult to pick out much any single topic.
    Meh, I directly refer to the relevant people, they can easily see their own old posts in the previous thread, etcetera... I think te ones who have something to say will be able to find my replies to their previous statements (or so I hope). For now, as everyone can see, I quote stuff (but man might I make some huge posts if I ever post again in the future, if I quote what I reply to).
    fsckd wrote:This is not really a technical support subforum. Moving from Arch Discussion to Newbie Corner.
    Ah ok, thanks (or perhaps a cautious thanks? Moving it to "newbie corner" might, after all, be a subtle insult...).
    tomegun wrote:It is not really possible to follow your message as you don't quote what you are replying to. Moreover, as the thread was closed I think that means we should stop the discussion ;-)
    Hmm, I think it means cop-out for lack or proper arguments/responses... But ok, I'll let it slide, for now (mainly as I can't do much else).
    tomegun wrote:You are not meant to enable dbus.service as it is enabled unconditionally. To check the enabled/disabled state of your services try "systemctl list-unit-files". "static" means that you are not supposed to enabled/disable it.
    Ah ok, thank you. Now, having abandoned all hope, I'll start configuring again and see how it goes... May the void protect me. If I die, grieve not for me, but remember me in the fight against hard-to-configure applications.
    (edit/addon)
    Actually, what am I supposed to do with "hwclock"? the List of Daemons only says that I shouldn't run that in tandem with ntpd, but I'm not running ntpd, so... How do I get hwclock with systemd?
    Edited for additional question.
    Last edited by incassum (2012-11-07 08:44:42)

  • Please help with our project

    We are media students and we have an exam in a few hours.
    Could you please help us out with these question.
    1. A _____________is single occurence of a cast member.
    2 Two types of window in director, __________ window and
    __________window
    3. Guides are ___________ or _____________ lines that you can
    either drag around the stage or lock place to asist user with
    sprite placement.
    4. __________ is used for navigation and user interaction
    5. A film loop is an animated sequence that is used as
    ________________ cast member
    true or False
    1. In tool palette default view combines elements from other
    classic and flash component.
    2. Director can perfrom any editing on digital video
    3. A director file can contain more than one movie script.
    4. Vector shapes an bitmaps are the two types of graphics
    used with director.
    5. A frame is an individual point of time in the score.
    6. importing media element is similar to importing
    images.

    Hi Preethi,
    SAP Mobile Infrastructure is a Java Framework for building offline (or occasionally connected) mobile applications.
    The framework runs on PPC 2003se/WinMobile2005 as well as on Win32 (XP/2000). It offers 2 ui paradigms: AWT or JSP.
    The supported java VM is the Creme 3.27(a) on PPC and java 1.3./1.4. on the win32 platform. The Creme 3.27a implements Java 1.1.8 API.
    To get info on how implement MI Apps please refer to the mobile dev. kit:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21eba3a7-0601-0010-b982-92f1fca3258a
    As well you can check out the following track:
    New to this
    Rgds Thomas

  • Help with Custom calculation script in Acrobat 8

    Hi all, I am using acrobat 8 on OS 10.5
    I am trying to add certain fields (numbers) and then subtract another field value to give an end result.
    I don't know anything about Javascript, would anyone be able to help with any info on how I achieve this result? I can only see Add, x and average etc... nothing there for subtraction
    Thanks for any help in advance
    Swen

    This should get you started:
    >if (event) {
    // get values from two text fields
    var a = Number(this.getField('Text1').value);
    var b = Number(this.getField('Text2').value);
    // subtract the values and show it
    this.event.target.value = a - b;
    Place this in a 3d text field, as a Custom Calculation Script.

  • Help with if statement for a beginner.

    Hello, I’m new to the dev lark and wondered if someone could point me in the right direction.
    I have the following (working!) app that lets users press a few buttons instead of typing console commands (please do not be too critical of it, it’s my first work prog).
    //DBS File send and Receive app 1.0
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.Font;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import java.applet.Applet;
    public class Buttons extends JFrame
         public Buttons()
              super("DBS 2");          
              JTextArea myText = new JTextArea   ("Welcome to the DBS application." +
                                                           "\n" +
                                                           "\n\n1. If you have received an email informing you that the DBS is ready to dowload please press the \"Receive DBS\" button." +
                                                           "\n" +
                                                           "\n1. Once this has been Received successfully please press the \"Prep File\" button." +
                                                           "\n\n2. Once the files have been moved to their appropriate locations, please do the \"Load\" into PAS." +
                                                           "\n\n3. Once the \"Load\" is complete, do the \"Extract\"." +
                                                           "\n\n4. When the \"Extract\" has taken place please press the \"File Shuffle\" button." +
                                                           "\n\n5. When the files have been shuffled, please press the \"Send DBS\" Button." +
                                                           "\n\nJob done." +
                                                           "\n", 20,50);
              JPanel holdAll = new JPanel();
              JPanel topPanel = new JPanel();
              JPanel bottomPanel = new JPanel();
              JPanel middle1 = new JPanel();
              JPanel middle2 = new JPanel();
              JPanel middle3 = new JPanel();
              topPanel.setLayout(new FlowLayout());
              middle1.setLayout(new FlowLayout());
              middle2.setLayout(new FlowLayout());
              middle3.setLayout(new FlowLayout());
              bottomPanel.setLayout(new FlowLayout());
              myText.setBackground(new java.awt.Color(0, 0, 0));     
              myText.setForeground(new java.awt.Color(255,255,255));
              myText.setFont(new java.awt.Font("Times",0, 16));
              myText.setLineWrap(true);
              myText.setWrapStyleWord(true);
              holdAll.setLayout(new BorderLayout());
              topPanel.setBackground(new java.awt.Color(153, 101, 52));
              bottomPanel.setForeground(new java.awt.Color(153, 0, 52));
              holdAll.add(topPanel, BorderLayout.CENTER);
              topPanel.add(myText, BorderLayout.NORTH);
              setSize(700, 600);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              getContentPane().add(holdAll, BorderLayout.CENTER);
              Container c = getContentPane();
              c.setLayout(new FlowLayout());
              final JButton receiveDBS = new JButton("Receive DBS"); //marked as final as it is called in an Inner Class later
              final JButton filePrep = new JButton("Prep File");
              final JButton fileShuffle = new JButton("File Shuffle");
              final JButton sendDBS = new JButton("Send DBS");
              JButton exitButton = new JButton("Exit");
    //          JLabel statusbar = new JLabel("Text here");
              receiveDBS.setFont(new java.awt.Font("Arial", 0, 25));
              filePrep.setFont(new java.awt.Font("Arial", 0, 25));
              fileShuffle.setFont(new java.awt.Font("Arial", 0, 25));
              sendDBS.setFont(new java.awt.Font("Arial", 0, 25));
              exitButton.setBorderPainted ( false );
              exitButton.setMargin( new Insets ( 10, 10, 10, 10 ));
              exitButton.setToolTipText( "EXIT Button" );
              exitButton.setFont(new java.awt.Font("Arial", 0, 20));
              exitButton.setEnabled(true);  //Set to (false) to disable
              exitButton.setForeground(new java.awt.Color(0, 0, 0));
              exitButton.setHorizontalTextPosition(SwingConstants.CENTER); //Don't know what this does
              exitButton.setBounds(10, 30, 90, 50); //Don't know what this does
              exitButton.setBackground(new java.awt.Color(153, 101, 52));     
              topPanel.add(receiveDBS);
              middle1.add(filePrep);
              middle2.add(exitButton);
              middle3.add(fileShuffle);
              bottomPanel.add(sendDBS);
              receiveDBS.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == receiveDBS);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\ReceiveDBSfile.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              filePrep.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == filePrep);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\filePrep.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              exitButton.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        System.exit(0);
              fileShuffle.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == fileShuffle);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\fileShuffle.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              sendDBS.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        if (ae.getSource() == sendDBS);
                        try
                             Runtime.getRuntime().exec("cmd.exe /c start c:\\DBS\\sendDBSFile.bat");
                        catch(Exception e)
                             System.out.println(e.toString());
                             e.printStackTrace();
              c.add(receiveDBS);
              c.add(filePrep);
              c.add(fileShuffle);
              c.add(sendDBS);
              c.add(exitButton);
    //          c.add(statusbar);
         public static void main(String args[])
              Buttons xyz = new Buttons();
              xyz.setVisible(true);
         }What I would like help with is the following…
    I would like output to either a JLabel or JTextArea to appear if a file appears on the network. Something along these lines…
    If file named nststrace*.* is in \\[network path] then output “Download successful, please proceed.”
    btw I have done my best to search this forum for something similar and had no luck, but I am looking forward to Encephalopathic’s answer as he/she has consistently made me laugh with posted responses (in a good way).
    Thanks in advance, Paul.

    Hospital_Apps_Monkey wrote:
    we're starting to get aquainted, but I think "best friend" could take a while as it is still as hard going as I recall, but I will persevere.Heh, it's not so bad! For example, if I had no idea how to test whether a file exists, I would just scan the big list of classes on the left for names that sound like they might include File operations. Hey look, File! Then I'd look at all of File's methods for something that tests whether it exists or not. Hey, exists! Then if I still couldn't figure out how to use it, I'd do a google search on that particular method.

Maybe you are looking for

  • How to write Date/Time property of tdms file

    On the root page of the tdms file, there is a built-in property called "Date/Time" in the first row. I would like to use it to save the time stamp when the tdms file is created. But in the help file, I only find the following property constant. So, h

  • Jython FTP Error in ODI

    Hi All, I am using jython code to ftp to a server. When i hard code the username and password it works fine, but when i try to read the username and password from a file, it doesnt work, i get the following error: org.apache.bsf.BSFException: excepti

  • Insert  date   '05-JAN-06' becomes 0006 instead of 2006

    when inserting a date column using '05-JAN-06', the year becomes 0006 instead of 2006. sysdate shows 2006 correctly. can anyone help? Thanks.

  • I can't see or import media in media library panel.

    Howdy, I'm sure this is the simplest thing ever and just a button, but my media is not showing up in the media library panel and when I try to drag and drop into to it I get the Ghostbusters red circle with the line. Any tips amigos? Thanks!

  • SAP HR Function Module for reading RT

    Hi, Is there any function module in SAP HR which takes multiple employee numbers and period as input and gives payroll results as output. Thanks, Nidhi