Page 1 of 7 1234567 LastLast
Results 1 to 10 of 62

Thread: Building A Completely Java Based Front End

  1. #1
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718

    Building A Completely Java Based Front End

    Not sure what I'll call it yet but it'll be completely Java based and the front end will be separate from the back end so you'll be able to build your own GUI and run it on your machine if you're so inclined. But here's what I have after just a few days....more questions than anything really....


    Here's a hacked up version of the skin I'm using now with a few new features added:



    The top bar will display the current song and to the right of it is a digital clock. The bottom left is a slider style control for the volume and above that is a box containing the heading and next to that is the temperature in the car with up/down arrows for controlling it. Functionality not important for now.

    So here are the containers I was going to build to hold all this stuff:



    In this image I've got the JFrame which will be 800x600 and three containers inside the JFrame labeled 1, 2 and 3.

    Each container will hold more containers:



    Each of those containers holds more contianers:



    And each of those containers will contain a bunch of JPanels which will eventually each contain a button or label:



    Now I have a few questions:
    1. Am I doing this totally wrong? I know it will work but what's better for laying it out?
    2. Do I have to add containers to the JFrame and then JPanels to the container and then labels tot he JPanels and then buttons to the labels? Can I just add buttons to the Frame, or JPanels straight to the JFrame or any other weird combination?
    3, Any other ideas?
    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  2. #2
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,560
    having panels/containters isn't a "bad" idea it just seems rather limiting.

    I am also just wondering, why java?

    keep up the good work
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  3. #3
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    It's the only language I know. Why does everyone ask that? Who cares.
    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by kev000 View Post
    having panels/containters isn't a "bad" idea it just seems rather limiting.

    I am also just wondering, why java?


    Quote Originally Posted by Maheriano View Post
    It's the only language I know. Why does everyone ask that? Who cares.
    We ask because Java is very limiting, bloated, and slow. It is cross platform though so you may get that first all OS support that no-body has. But you do know that java is one of the slowest languages, so smoothness will be hard to achieve with big graphics and low-end media.

    But I dont think this has been done before, so keep at it!

    As for how to do it, I am pretty sure the best way to do it, would be to just put everything in 1 panel. Define where by point locations and size. This way you are not limited by the number of panels. Then when a click happens, iterate through every thing in that 1 panel, until the mouse intersects that area.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  5. #5
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    Been working on it yesterday and today.

    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  6. #6
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    Been coding all day, even took it to the restaurant while waiting for food.

    Clock - dynamically pulls current time from computer clock
    Songs - dynamically pulls current files located in predetermined songs directory. Doesn't yet pull level 0 files, just top level.
    Album Cover - doesn't yet pull dynamically
    Buttons - not yet mapped to anything

    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  7. #7
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    updates:

    - song list recursively populated from a specified directory
    - double tap a song in the list and it plays
    - double tap a new song in the list and the first one stops, the new one plays
    - new buttons

    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  8. #8
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    Is anyone even following this thread?

    Had some more time yesterday. I'm not doing much at work right now so I got a lot of time to browse the Swing forums over at Sun.

    - to play a song you can double click the song name or single click it and hit play
    - song list is just song names now, not the full path
    - when you play a song it loads the song name up top
    - buttons fit to window
    - volume bar which moves from green to red to control volume
    - border removed around song list
    - album cover loads when song is played

    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

  9. #9
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    I check in every now and then to see what you've got.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  10. #10
    FLAC
    Join Date
    May 2006
    Location
    Calgary, Alberta
    Posts
    1,718
    That makes me feel better!
    Ampie Case
    2.5" Hard Drive 80GB Samsung 5400RPM
    256 MB DDR2 PC5400
    Xenarc 700TSV - VGA Monitor
    Intel D945GCLF Motherboard
    M2-ATX-HV

    2005 Honda Civic

Page 1 of 7 1234567 LastLast

Similar Threads

  1. EniCar the RR Clone
    By enitalp in forum Software & Software Development
    Replies: 296
    Last Post: 12-13-2008, 05:12 PM
  2. Why should I run a front end???
    By Slightly_Stoopi in forum General MP3Car Discussion
    Replies: 13
    Last Post: 06-28-2006, 02:32 PM
  3. This is an awesome front end, and here is why:
    By WhiteRabbit in forum NeoCar Media Center
    Replies: 47
    Last Post: 08-27-2005, 09:43 PM
  4. Web Based Front End
    By Zenith_Warrior in forum Software & Software Development
    Replies: 10
    Last Post: 07-02-2005, 06:03 PM
  5. Front end needed for semi commercial venture
    By Orange Bus in forum Software & Software Development
    Replies: 10
    Last Post: 04-28-2005, 01:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •