UI Layers design decision help needed
I'm finisihing a very simple application framework - docking menus and icon bars and such. Last thing is the dropdown menus from the menu bar and I'm having real trouble. My dropdowns keep getting painted over by stuff that I want to stay underneath.
So byte the bullet and decide to figure out the LayeredPane stuff. Just when I think I'm ready to go back to coding I see one more item in the 1.4 API: "1.5 will give you direct control of the Z-order so you won't need layered panes." Ugh. Hard not to read that as "we tried this, but decided it really wasn't such a good idea, after all."
I'm trying to write a product that will be widely useful, so I don't want to write for 1.5 only. On the other hand, I'm not keen on mastering a technology that's already obsolete. So what to do?
a) assume 1.5 will take over rapidly and go that way? (Not be liking this as long as Sun can't decide if it's 1.5 or 5.)
b) master and use LayeredPanes? (Not be liking this, since if it's obsolete I can't count on bug fixes.)
c) try and fake it using the undocumented LAFP (last added, first painted) principal? (Not be liking the use of undocumented stuff.)
If you've used both Layered Panes and the 1.5 Z-order, I really want your advice! If you've got a long memory, I'd like to hear that LAFP really has been the case all along.
camickr:
Not mixing, getting outsmarted. I have a JPanel named "content" that holds the application. My menu is built on another JPanel. When I pop the menu, the Swing (or AWT) code says "Oh dear. We've damaged 'content' - better repaint it." And bingo, my popup's gone. (Problem is, I'm trying to use my own menu, not an AWT or Swing popup menu.)
Am seriously thinking about ditching Sun's stuff altogether, putting my own content pane in, and doing all my own painting off that. I've done that before and it's possible, but that road too is full of gotchas.
Similar Messages
-
Design / Formatting Help Needed
Good Afternoon,
I am in the process of developing a help system to support a
proprietary green screen application that we use in our
organization… the green screen application is very convoluted
and all steps/processes etc to be completed in the system have many
many steps to complete. In order to not overwhelm the end user, in
any given help topic there are multiple subtopics that are
“hidden” until the DHTML dropdown hot spot is
activated.
Within each hotspot, there are also “sub hot
spots”. However, this is confusing to the user… there
are so many hotspots etc (both hotspots from the main topic page
and “sub” hotspots within a hotspot) that the user is
losing track of where they are at.
I was wondering if anyone had an general design
recommendations or best practice recommendations that I should be
adhering to in order to eliminate this confusion.
Thanks!I've used hotspots within hotspots without issues. I suggest
you break the information into smaller chunks if you can. If a
particular task is very long, consider making it a book instead of
a single topic. For example, if you assign one topic to each of
five tasks, but the third task involves six steps, turn the third
task into six steps/topics, and bind them as a book in your Help
file. So you'll go from this:
1. Task 1 (single topic)
2. Task 2 (single topic)
3. Task 3 (single topic)
4. Task 4 (single topic)
5. Task 5 (single topic)
To this:
1. Task 1 (single topic)
2. Task 2 (single topic)
3. Task 3 (one book with six topics)
4. Task 4 (single topic)
5. Task 5 (single topic)
This kind of solution should cut down on some of the
nesting. -
Design Pattern help needed for MDI application
Hi,
I am writing an mdi application which contains a JSplitPane. The left pane contains a JTree and the right contains a JDesktopPane which houses n number of JInternalFrames. The JInternal Frames need access to the JTree. Also both panes (objects w/in) need access to elements of the JFrame. I am currently implemeting access by making most of the JFrame objects static and creating getter/setter methods for access. Does anyone know any desing patterns I might use to solve this dilemma?
Thanks,
JohnThe observer design pattern causes the child objects to chage state when the parent changes state. The type of pattern I need would allow the child objects of the parent JFrame to be available globally without having to make them static. I am wrong in this? Would the observer pattern solve this issue.
-
Design pattern help need urgently please
Hi I need you to tell me if the following code looks like its a facade or not?
The method make the table calls another method in the class project4
which contains instances of itself and student class and supervisor class and the method prints out data from these classes.
Iv to hand this in tomorow and would like to know
Is that a facade or not?
Please help
public class TableFacade
TableFacade()
System.out.println("This is the table of projects");
public Project4 makeTheTable()
Supervisor5 sup = new Supervisor5();
Project4 project =new Project4();
project.readRelevantProjectsFromFile(sup);
return project;
}Sorry to be continuously replying but desperate times call for desperate measures anyway
Im trying to adapt from my project4 class
is this in the adaptor pattern?
class AdaptProject
Project4 project;
Supervisor5 supervisor;
void readProjectDetails()
project.readProjectDetails();
void readRelevantProjectsFromFile(Supervisor5 v)
project.readRelevantProjectsFromFile(supervisor);
String projName()
return project.projName;
String projSubject()
return project.projSubject;
} -
Changing Icon Design! help needed
i tried chaning the Photoshop icons from its original to antoher one, throught going to package contents, rescours etc.
now both .icns dont wont work when i put either one of them in there!
help what should i do?Have you tried this?
http://docs.info.apple.com/article.html?artnum=304735
Best of luck. -
FORM design customization - help needed!!
Hi,
I'm working on several forms for a project and I was wondering:
1. How do I change the color of a PUSH BUTTON? The default is gray and changing either foreground/background color don't do anything.... I also tried applying visual attributes and SET_ITEM_PROPERTY built-ins but still couldn't resolve it.
2. Any way I can also change the color scheme of the WINDOW itself during run-time? The default is blue gradient on the top and gray all over. I know this might be a hard one as it might involve editing some default setting of FORMS...
Any help is appreciated!
Regards,
EricaErica, I assume you are having this problem on Windows. Windows does not expose the button color as runtime property and so Forms cannot set this. This is controlled by the Forms window manager so if you want a button to be green you have to see the windows setting - and this means all buttons will be green.
Is a limitation of Windows.
Regards
Grant Ronald
Forms Product Management -
Migration q and decision help needed
I am moving from a macbook pro to a mac mini. I need to migrate. Which is the best method to do so? I can 1 - migrate using the MBP in firewire target disk mode 2- clone the mbp hd to an external drive and then migrate from that external drive 3- clone the MBP drive to the new mac mini desktop drive but I am worried that some of the system software might be different between the two machines? or 4 - migrate from my time machine back up???
I have done the Firewire target disk mode a few times and one time, it completely wiped the drive that was in TDM and I lost everything so I am wary of that. The easiest would be to just clone the drive from the MBP to the mac mini desktop but will there be any issues with the different hardware running the same system? The time machine option will be realllllllly sloooooooow will it not?
Thoughts, Ideas, Tips? Much appreciated. Thank youThanks for the feedback. BTW, if you're running SL, please update your profile info. For speeding up your new machine, start with:
Mac Maintenance Quick Assist,
Mac OS X speed FAQ,
Speeding up Macs,
Macintosh OS X Routine Maintenance
Essential Mac Maintenance: Get set up,
Essential Mac Maintenance: Rev up your routines,
Maintaining OS X, and
Myths of required versus not required maintenance for Mac OS X for information. -
Hello,
I am in a dilemma of making a design decision . We are developing a business tier component. This is going to talk to webservices on the backend. Right now it is going to integrate with 2 different backend systems through web services. In future it might support more of such backend systems.
And there are clients (web app, xml app) who interface with the component.
Most of the data elements passed over to backend systems is similar for both the systems, but some are different.
Now is it a good design to make 2 different client interfaces for 2 backend systems ? so that ,clients upfront decide which interface to use. This is more cleaner and easier implementation.
Or is it good to have a generic interface, and component then figures out which data to use and to which backend system to talk to.
Please help,
ThanksThere are several patterns that could apply, but the most widly used is probably the MVC (Model View Controller) pattern.
With the pattern the View layer is the front end (in your case this would be the web app / xml app).
The Controller would be your middle tier, this layer is responsible for relaying requests of the View layer to the Model layer.
The Model layer would be your backend webservices.
As said, the controler is responsible for relaying the requests from the view layer to the correct webservice. This means you need to have some way to know how to do this. You can employ several methods to do this.
You could have different methods for the different webservices, this is the most straight forward way.
Or you could look at the provided parameters and decide where you need to go based on that. This is slightly more difficult, but when you have two or more webservices that do almost the same thing, this might be the better way to go.
If you really wanted to make things fancy, you could employt the second method and have the checks be based on rules you configure through a dynamically loaded file, this way, you could (theoratically) build your middle tier in such a way that you can add new front ends / back ends without having to redo the middle tier. This might eventually be the cleanest / best way to go, but it is also the most difficult and takes a lot of planning beforehand.
Mark -
Help needed working with layers and exporting from acrobat3d
hi, i am repostng this message becaus eihad no success last time, and I am working under a tight deadline for a school project. any help will be tremendously appreciated
I received an Acrobat 3d file with a model that was originally created in CATIA v4 embedded in it.
I need to export the model for use in rhino. Currently the model size is enormous as an IGES that Windows runs out of memory when attempting to open. This is a bit wasteful since I do not need all of the model, I just need a layer of it. I noticed that when exporting to IGES you have the option to export hidden or not, and I have hidden the layers i do not need (via Isolation) and still I get the whole file.
Is there a way I can do this? export the file With the layers under the model tree? or is there a way I can delete a layer? or how can I make the hidden object feature work when Exporting IGES as not to get the things I dont need?
I read that you can open the model in Toolkit to edit it but it wont let me, open it... no "edit 3d in toolkit" option and when i open the pdf in toolkit it says unknown file....
is there a way i can open the embedded model in CATIA again?
thanks for the helpPlease email me your contact information at [email protected] and I might be able to help you.
Thanks. -
Help needed with a design!
HELP! I need help with designing something!
IMAGE on this link " http://i1072.photobucket.com/albums/w362/jjnilsson/DSC_0188.jpg "
i need this patch on the picture to be "remade" in higher definition and the text should be MILF HUNTERS intstead of milf hunter... Anyone that might be able to help me out?
reson for all this is that its gonna be made to a 30x40cm big patch fitting the back of our Team jackets!
send me a pm or a mail ([email protected]) if you need any futher info or if you can help me out! I am really thankful for all the help i can get!
With best regards J. Nilsson, Milf Hunters McI simply did as i got a tip on FB to do
quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
Date: Tue, 5 Jun 2012 13:41:48 -0600
From: [email protected]
To: [email protected]
Subject: Help needed with a design!
Re: Help needed with a design!
created by in Illustrator - View the full discussion
This really isn't the place to ask for free services.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Illustrator by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Help needed with Report Design
Hi All,
Here is the requirement.
Period Type(holds 2 values) : Payment and Vested.
we have field 'Total Days' which is calculated based on "User Selected" Period Type.
For example, When Period Type is Payment,
If start date is less than or equal to grant date and end date is less than or equal to vest date, then calculation is (End Date - Grant Date)+1
If start date is greater than grant date and end date is less than or equal to vest date, then calculation is (End Date - Mobility Start Date)+1 (similarly 2 more if conditions) ...we have similar calculation for Period Type - 'Vested'.
This Period Type is a multiselect Prompt. How can this be achievable.
Any thoughts will be greatly appreciated.
Thanks.I simply did as i got a tip on FB to do
quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
Date: Tue, 5 Jun 2012 13:41:48 -0600
From: [email protected]
To: [email protected]
Subject: Help needed with a design!
Re: Help needed with a design!
created by in Illustrator - View the full discussion
This really isn't the place to ask for free services.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Illustrator by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Help needed in selecting Design
Hi all,
I need your help in designing WLI.We need to receive messages(string) from network(sockets) and process it in WLI, send it back.Can any one pls help me which connection method(HTTP/TCP/JMS) is suitable, how to configure WLS for that?
Thanks in AdvanceHI,
I think kf3 can easily be created at query level itself without writing complex logic..As far as i understand your requirement kf3 is a differnce of kf2 and kf1.
so jst make local formula and in that put kf2-kf1.it will give you the desired output for kf3.
Kf4 i need to think,i will update you soon -
hi, i am really new to photo shop and i have a logo design which i need to have the background made transparent from a white square? can anyone assist please?
i have already got the image on my screen but cant seem to find the tool in which to make it transparent as i do with other softwares.hi aknaloku,
is the background apart of your image or is the image on a different layer?
if the white background is on a different layer you can simply delete the layer for the layers window which you can find in Window>Layer. you will need to delete the background layer by dragging it into the little rubbish bin icon down the bottom right of the layers window.
i hoped this helped
Matty -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
HELP NEEDED!! (please) CS6
HELP NEEDED! I have been working for 3 days in a "new doc". Of course i have saved several times (control+s)
but i do not remember it asking me about file name or folder. Today my comp crashed and i do not find the file. Just found 2 files (a tmp and one with no extension)
: one with 174 mg and another one with almost 2 gb. Is there any possibility to recover my work? Photoshop did not oppened a thing when i restarted comp
Thanks in advanceThe TMP file is your Scratch Disk file, and cannot be "recovered" to an Image file.
Your second file might be almost anything. Though designed more for video files, both G-Spot and MediaInfo (both free file info utilities), CAN read several Still Image file types, and might help point out what that file (the one with no extension) really is. OTOH, as it could be almost anything, it could be that there is no header info in the file, for either to read.
Good luck,
Hunt
PS - Before I did much additional work, I would investigate WHY your computer shut down. If you are on a PC, I would go into Event Viewer, at the time of the shutdown, and see if you can track down any warning, or error messages, in both the System and Applications Tabs. I am pretty sure that a Mac has similar, but have not a clue where, or even what it would be called.
Maybe you are looking for
-
How to suppress "enter parameter values" screen in crystal reports for Visu
Hi, I am passing parameters to the report through program. But still the "Enter Parameter Values" Dialog is shown every time I run the application. Code used to pass parameters is given below: rptCBBookRpt objRptCBBook = new rpt
-
How can I display de last items of a region from other page in Portal?
I want to display de last five items (f.e.) included in a region (with attributes created) from other page. I've tried using custom search, but it also shows the attribute names, and I want show the attribute values (I don´t know how can I format the
-
Can a dynamic select stmt in a ref cursor be done?
Hello all! I have a form in which a user can select a number of checkboxes that coorespond to fields in a table. After checking the desired boxes, the user can then click on a button and a variable (v_query) in a "when button pressed" trigger is popu
-
The Search Function Seems Limited
My old PDA was a Palm Pilot with a great search function. There was no time limit and it search all aspects of Contact Info even notes and job description plus the contents of all documents, and all aspects of the Outlook calendar. My 32G iPod Touch
-
Servlet, ejb, wls 510, ClassCastException
Hello, I have an Entity Bean deployed in WLS 5.1.0. I wrote a standalone application that obtains the initial context, does a lookup, get back a home interface, then the business interface (using narrow...), an