About Dialog Design
Hi All
I am student of MCA.I want to know how can i develop a About Dialog.About Dialog means..A dialog have a one picture and multiple label.As we see all software have a help menu and help menu have a About Dialog.As like that i want to develop.Can any one give me example link or some code...
Plz help me..
Sir how i use this...Plz tel mewell, all I can do is repeat/summarize the (now) 27 replies in your cross-post
1) read the tutorial
2) do some research - google etc
3) write some code from what you've learned in 1) & 2)
4) post your code if it doesn't work, and we'll try to steer you in the right direction
but it is obvious (from your 'bleeding-heart' posts in the cross-post) you have no
intention of writing a single line of code. You just want someone to post the code
so you can hand it in as your own.
tip: select a nice street corner now, and start working on your signs
Similar Messages
-
About Dialog - width of dialog should be determined by one component
I have the following problem. I want to design an about dialog. The top shows an image that has a fixed size. In the center I want to show some text.
+---------------+
|image |
+---------------+
|text text text |
|text text |
+---------------+
| OK button|
+---------------+The problem is: I want the dialog to adjust its size according to the width of the image. The text should wrap to fit to this size. The dialog should grow in height but not in width. If I use a JLabel with HTML content the outcome is this, i.e. the width of the dialog is determined by the text component:
+------------------------+
|image |
+------------------------+
|text text text text text|
+------------------------+
| OK button|
+------------------------+If I use a JTextArea and switch it to line-wrapping mode, then call pack(), the image und the text area lie above each other. After increasing the height of the dialog the picture meets my expectations. But I want the layout manager to do this work.
I have tried different layout managers with many combinations of constraints (especially GridBagLayout). I cannot get it working.
Could you give me hand? After all, it seems so simple ...
Thanks,
BernhardMy inclination would be something like:
dialog.setPreferredSize( new Dimension( image.getWidth(), dialog.getPreferredSize().height ) );The code for getting the image width may vary a little depending on what type of image object you are using, but the basic idea is there. In this way, you are specifying the width, but not the height. Hope this helps! -
Hello Java group!
I have a great design for an 'About' dialog box, include a JPG image I put together. What is the best process for building an 'About' Dialog Box? Should I use JBuilder widget's factory, or should I hand crank it? Any one have any sample code? What are About Dialog Box's normal set up as ( modal or modalless?).
Thanks for your help,
JavaRobDoes anyone have any code examples to make an awesome
About box.
I'd like to include a JPG I created...Image im = ...;
JLabel l = new JLabel(im);
Dialog d = ...
d.getContentPane().setLayout(new BorderLayout());
d.add(im, BorderLayout.CENTER);
d.setBounds(...);
d.setVisible()
But actually if ur just making an about window you might want to just use JOptionPane; it's probably better for this situation. Anyway, just design your about page, put your graphic on it, and display it.
What is the standard control method (modal or
modalless)?IMO it's modal, but both get used quite a bit -
Need opinion about new design of my site
Hi,
please can you tell me what do you think about new design of my site http://www.francistravel.com
I still work on it and still try to improve it.
Thanks a lot,
PetrI would check the navigation -- when you click e. g. German version there is no link back to the English version. If you try the Czech version and then click the English version link you will not get back to the .com domain but to the .ch domain.
-
Glade, pygtk - 'close' button in the 'about dialog'
Hi!
I have a problem with the "about dialog" in glade and also in 'pure' pygtk. The dialog's close button doesn't close the window as it did in the past (about 1 month back). It does not even generate any error message etc. . I suppose there should be no need to create a signal handler for this button, and in fact it's impossible. The other buttons as 'Credits' , 'License' and their 'Close' buttons work well. Please, does anybody know what's going on here?
glade-3.0.1-1
libglade-2.6.0-1
pygtk-2.8.6-3
gtk-1.2.10-7here is an 'pure' pygtk example:
try:
import sys
import gtk
import pygtk
pygtk.require("2.0")
except:
sys.exit(1)
class about:
def __init__(self):
x = gtk.AboutDialog()
x.set_name("foo")
x.set_authors("x")
x.connect('destroy',self.close)
x.show()
def close(self,widget):
sys.exit(0)
if __name__ == "__main__":
app = about()
gtk.main()
The main 'close' button doesn't work. The 'close' button in the 'credits' dialog works well. And the same in Glade. -
I would like to inquire about the design of iphone 5 .. why, iphone 5 is designed with a slightly wider screen ..?
Apple's design team was looking to build an iphone with a screen that had a 16:9 aspect ratio. Call it pressure to keep up with the competition.
Plus, LTE is so FAST! Time to turn up the speed! -
JDialog Problem: How to make a simple "About" dialog box?
Hi, anyone can try me out the problem, how to make a simple "About" dialog box? I try to click on the MenuBar item, then request it display a JDialog, how? Following is my example code, what wrong code inside?
** Main.java**
============================
publc class Main extends JFrame{
public Main() {
super();
setJMenuBar();
initialize();
public void setJMenuBar()
JMenuBar menubar = new JMenuBar();
setJMenuBar(menubar);
JMenu menu1 = new JMenu("File");
JMenuItem item = new JMenuItem("About");
item.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
// About about = new About(this);
// about.show();
menu1.add(item);
menubar.add(menu1);
public static void main(String args[]){
Main main = new Main();
}** About.java**
=============================
import java.awt.*;
import javax.swing.*;
public class About extends JDialog{
JPanel jp_top, jp_center, jp_bottom;
public About(JFrame owner){
super(owner);
setDefaultCloseOperation( DISPOSE_ON_CLOSE );
Image img = Toolkit.getDefaultToolkit().getImage(DateChooser.class.getResource("Duke.gif"));
setIconImage( img );
setSize(500,800);
Container contentPane = getContentPane();
contentPane.setLayout(new BorderLayout());
contentPane.add(getTop(), BorderLayout.NORTH);
contentPane.add(getCenter(), BorderLayout.CENTER);
contentPane.add(getBottom(), BorderLayout.SOUTH);
setResizable(false);
pack();
setVisible(true);
public JPanel getTop(){
jp_top = new JPanel();
return jp_top;
public JPanel getCenter(){
jp_center = new JPanel();
return jp_center;
public JPanel getBottom(){
jp_bottom = new JPanel();
jp_bottom.setLayout(new BoxLayout(jp_bottom, BoxLayout.X_AXIS));
JButton jb = new JButton("OK");
jp_bottom.add(jb);
return jp_bottom;
}Code looks reasonable except
a) the code in the actionPerformed is commment out
b) the owner of the dialog should be the frame
If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
see http://homepage1.nifty.com/algafield/sscce.html,
that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided. -
"Help About" dialog still shows 8.0 after applying 8.0.1 patch
Hello all,
I was wondering if anyone who has successfully applied the patch sees version 8.0.1 in the Help > About dialog box. I updated via the Help > Update option and I did see the update downloaded. I was then asked to close Elements 8 so the patch could be applied which I did. However, how does one know if the patch was successfully applied? Most softwate show the latest version when you click Help > About. I still see ver 8.0.gtacyclist wrote:
I have a couple of them including display.dll and "Adobe Premier Elements.exe" with date modified on 2/26/2010 instead of 2/28/2010 (date created is still 9/29/2009). I assume this was the date when I intalled the patch.
Can anyone provide confirmation beyond assumptions? My files likewise have a created date of 9/29/2009, with a date modified matching the 8.0.1 patch installation date (in this case 3/13/2010). In the other forum post referenced above, Steve Grisetti unfortunately did not distinguish between date created and date modified, and I have no idea where he came up with the 2/28/2010 date. -
About bought Design CS6 on US store, can I install to HK windows PC??
About bought Design CS6 on US store, can I install to HK windows PC??
This post initially appeared in the Adobe Captivate forums. It has since been moved to the InDesign forums.
-
Extracting Project information
How can I programmably extract the project build information set in the project build specification.
So I can then use the information in an ‘About’ dialog.
DaveIn the labview\resource\appbuild folder their are some VI's that can deal with build specs! They return a variant containing the data!
It's the reason I build a variant probe.
Be aware that the build info is not present in th lvproj file of the built executable!
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
I'm in the process of entering About information and am
wondering if there's any way to do the following:
1. Can the About dialog box be made larger?
2. Can the print in the dialog box be made large to
accommodate visually impaired individuals without changing screen
resolution?
3. Can the preformatted text be changed? For instance, could
I change
Author to
Contact us?
Also, I've noticed that the line after
Generated by: Adobe RoboHelp 6.0 doesn't display in some
resolutions and only partially displays in others. Do you know what
may be causing that problem?
Thanks very much for your help.Hello friedlanders -
I don't use RH6 but in RH5 the "About" window is the file
named:
whskin_banner.htm
Open it in a plain text editor and you will see a lot of
info.
Make desired changes and save the file to a separate
directory (the default file in the project root will get over
written when you generate). After you gen your project just copy
your modified file into the root directory of your generated
project, Overwrite=Yes.
Regards,
GEWB -
I want complete information about dialog programs?
hi,
i want complete information about dialog programs?Check this out
http://www.allsaplinks.com/dialog_programming.html
dialog programming
http://fuller.mit.edu/tech/dialog_programming.html
http://www.sappoint.com/abap/dptc1.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
check sample code.
http://www.sapgenie.com/abap/example_code.htm
http://www.sap-img.com/abap.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTOO/BCDWBTOO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRFORM/BCSRVSCRFORM.pdf
http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
And also, you may want to check out the transaction DWDM for example of how to use the control framework. -
I have an idea about iphone design.
i have an idea about iphone design. but i don't know where i can submit this. i tried to send my idea at feedback link and couldn't. coz my drawing file wasn't atteched and i couldn't find out how to upload this. let me know how to submit my drawing plz..
unfortunately i don't know english well. so i can't describe in detail.Sorry, they're not going to accept your idea(s). As per Apple...
Apple or any of its employees do not accept or consider unsolicited ideas, including ideas for new advertising campaigns, new promotions, new or improved products or technologies, product enhancements, processes, materials, marketing plans or new product names. Please do not submit any unsolicited ideas, original creative artwork, suggestions or other works (“submissions”) in any form to Apple or any of its employees. The sole purpose of this policy is to avoid potential misunderstandings or disputes when Apple’s products or marketing strategies might seem similar to ideas submitted to Apple. If, despite our request that you not send us your ideas, you still submit them, then regardless of what your letter says, the following terms shall apply to your submissions. -
A book about SharePoint Designer 2010 Workflows?
Hi everyone
Can anybody of you recommend me a book about SharePoint Designer 2010 Workflows?
Thank you in advanceHow about "Beginning SharePoint Designer 2010"? However, only two chapters are about workflows.
-
Hi all,
I've written a Java app for Mac OS X and I'm trying to replace the default coffecup-and-java-version 'About' dialog with my own dialog. I have followed the guidelines in the following article:
http://developer.java.sun.com/developer/technicalArticles/JavaLP/JavaToMac2/
...but the result is that when I click 'About' I get my new dialog AND the default dialog. Of course I only want my own. The API docs for com.apple.eawt.Application state that all you have to do is:
- Create an instance of Application.
- Instantiate one or more objects that implement the ApplicationListener interface.
- Implement handlers for the appropriate events eg. handleAbout()
- Register the ApplicationAdaptor(s) with the Application object.
...which is basicall what the above link explains. I'm lost! Can anyone help me with this?
Thanks in advance,
BarryI have solved the problem so just adding this in case anyone has the same problem.
You create a custom about dialog by creating an instance of Application and adding an ApplicationListener with an over-ridden handleAbout method. Once you have executed your custom code you have to set the ApplicationEvent to handled=true in order to stop other listeners from acting on it:
import com.apple.eawt.ApplicationAdapter;
import com.apple.eawt.ApplicationEvent;
import com.apple.eawt.Application;
import javax.swing.JFrame;
public class MacOSAboutHandler extends Application
private JFrame owner;
public MacOSAboutHandler(JFrame owner)
this.owner = owner;
addApplicationListener(new ApplicationAdapter
public void handleAbout(ApplicationEvent event)
new MacOSAboutDialog(owner).show();
event.setHandled(true);
I'b buy that for a dollar, or five!
Maybe you are looking for
-
Can´t connect my macbook pro to apple tv
I can´t get my MacBook pro to connect apple tv.How to do?
-
ICal and Address book data not pushed from iCloud to 10.6 Snow Leopard
Hello, When I signed up to iCould, it said it will automatially push all data to my devices. However, the data I entered in contacts and calendar of my iPhone 4, does not appear in the Address Book and iCal of my MacBook Air with 10.6.8 Snow Leopard.
-
Can't add files or folders in 11.1
I have downloaded some MP3's and tried to add them to my iTunes library, both as individual files and putting them into one folder and adding that. Nothing shows up in the library -- artist, album, or songs. I did get the usual 'adding' and 'proces
-
When the add-ons are updated, a webpage appears stating that the update was successful. In the past I would exit the tab and this notice would not appear again. However, these pages appear to be persisting when I close Firefox down and then reopen im
-
Download of 2.1 keeps timing out and won't complete.. somethings missing?
When I am trying to download iphone update of 2.1 my computer keeps timing out. I got an error message that some component was missing...please assist