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
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
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.
Current author of nobdy.
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
![]()
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
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
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
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
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
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
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
Bookmarks