How to put minimise, maximize buttons on jDialog box
I have a dialog box whose default option is close button provided at top, i have to put minimize, maximize(Restore) buttons.
Use JFrame?
Similar Messages
-
hi all
i'm using jdev 10g 10.1.3. i'm tring to put a back button in my pages that when i click on it will go back to the page from which it came but am getting lost how to go about it.
I created a backing bean with the following code for the Action property:
import javax.faces.context.FacesContext;
public class BackButtonBean {
private String url;
public BackButtonBean() {
public void setUrl(String url) {
this.url = url;
public String getUrl() {
return url;
public String backButton_action() {
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(url);
return url;
Can someone help me out what to do next?
thanks
preetiHi,
if you use JSF then you can navigate back by setting the previous ViewId to the UIViewRoot you access from FacesContext.getViewRoot(). So all you really need to do is to track the ViewId of the previous page
Frank -
How to put a push button in the top of page of ALV
Hi at all,
I need to put a push button in TOP OF PAGE .
My code is below and i'd like to put a push button to do something.
FORM top_of_page USING r_ddoc TYPE REF TO cl_dd_document.
DATA: text TYPE sdydo_text_element.
DATA: text_table TYPE sdydo_text_table.
CALL METHOD r_ddoc->initialize_document.
Title
text = text-301.
CALL METHOD r_ddoc->add_text
EXPORTING
text = text
sap_style = 'HEADING'.
CLEAR text.
endform.
Thanks at all.
ENDFORM.Hi Domenico,
For pushbuttons on Dynamic Documents please refer to this link:
http://help.sap.com/saphelp_nw70/helpdata/EN/b6/ab3a7503ac11d4a73f0000e83dd863/frameset.htm
Regards
Marcin -
How to put images on buttons?
I am currently working a project and need to mount an image onto a button, so when the image is clicked on it makes the button event work?
set icons? , do i have to have the image in the same
folder as where the code is saved? I have not been
able to find any code showing how to apply images
onto buttons on a GUI.Did you atleast read reply 2 and 4?Have you ever read the JButton API?There's no necessity that the image has to be in the same folder.You use have to specify the absolute path of the image when you create an instance representing it. -
How to put icon in buttons in 9ids
pl let me know how i can make a button with icon in 9ids. i mean a push button with icon on it. thanks.
pl let me know how i can make a button with icon in 9ids. i mean a push button with icon on it. thanks.
-
I have never used my mac for desktop publishing before and am running into some real problems. How do you put a border around a text box? Can you edit the border - color, thickness, etc.? Help!
I think the best solution is to read Pages documentation, go to Help and you have a long list of options. Pages is capable of quite sophisticated things, some features are above Nisus or Mellel, so it is not so simple to summarize things in a few lines.
-
How to change a background to an image? and how to put a 'clear' button.
Hi guys, im new here & i really newbie in java. Recently i found code for java applet that can draw a line. I want put image as a background and draw some lines over the image and provide a button to clear the lines. Is there any one can help me to solve my problem. Here is the code :
import java.awt.*;
import java.applet.*;
public class DrawLines extends Applet {
//Variables
Point Start[] = new Point[20]; //X,Y info of start of lines
Point End[] = new Point[20]; //X,Y info of end of lines
Point current_start;
Point current_point;
int numlines= 0;
Point boundary; //to represent the boundary of the applet
//Set background to yellow, register listeners
// get boundary of applet
public void init() {
setBackground(Color.white);
current_point = null;
boundary = new Point(this.size().width,this.size().height);
//Mouse Clicked Down...save in current_start
public boolean mouseDown(Event e, int x, int y) {
if(numlines < 20) {
current_start = new Point(x,y);
return true; }
else
{ System.out.println("Can Not Take Any More Input Lines");
return false; }
//Mouse Drag....reset current_point to current position
public boolean mouseDrag(Event e, int x, int y) {
if(numlines <20) {
current_point = new Point(x, y);
repaint(); //will draw this current line
return true;
else
return false;
//Mouse Up ...save created line if can and call repaint
// to draw it. Make sure the end point is inside the applet
public boolean mouseUp(Event e, int x, int y) {
if( (numlines < 20) && (x < boundary.x) &&
(y < boundary.y) )
{ Start[numlines] = current_start;
End[numlines] = new Point(x, y);
numlines++;
//Reset current points to empty
current_point = null;
current_start = null;
//repaint will draw all lines including this one
// just created.
repaint();
return true;
else
return false;
//Draw all of the lines stored in Start[], End[].
//Draw the current line from current_start to current_point
public void paint(Graphics g) {
//set drawing color
g.setColor(Color.red);
//Draw stored lines
for (int i=0; i<numlines; i++) {
g.drawLine(Start.x, Start[i].y,
End[i].x, End[i].y);
//Draw current line if one exists
g.setColor(Color.blue);
if (current_point != null)
g.drawLine(current_start.x, current_start.y,
current_point.x, current_point.y);
//Set numlines back to zero
public void start() {
numlines=0;
//In case mouse exits the applet region...reset current points
public boolean mouseExit(Event e, int x, int y) {
current_point = null;
return true; }
and this is code in HTML
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="Grey">
<CENTER>
<APPLET
code = "DrawLines.class"
width = "500"
height = "500"
>
</APPLET>
</CENTER>
</BODY>
</HTML>
Thanks & appreciate for the help.Hey thanks, but i find another way by looking other ppl code for image back ground. And its working! but i still dont know how to create the button (im so very noob in java sigh)
The link u gave to me is very good but its hard for very newbie like me to understand. I just change the code like this :
Using offscreen image
Image off, back; //to represent background image
Graphics offG; //to represent offscreen image
public void init() {
off = createImage(getSize().width, getSize().height); // create your offscreeen image
offG = off.getGraphics();
back = getImage(getDocumentBase(),"images/Area.jpg"); // load your background image
current_point = null;
boundary = new Point(this.size().width,this.size().height);
// Draw all of the lines stored in Start[], End[].
// Draw the current line from current_start to current_point
public void paint(Graphics g) {
offG.drawImage(back, 0, 0, this); // draw everything to your off screen first
g.drawImage(off, 0,0, this); // copy your off screen to on screen now
g.setColor(Color.red); // set drawing color
//Draw stored lines
for (int i=0; i<numlines; i++) {
g.drawLine(Start.x, Start[i].y,
End[i].x, End[i].y);
//Draw current line if one exists
g.setColor(Color.blue);
if (current_point != null)
g.drawLine(current_start.x, current_start.y,
current_point.x, current_point.y);
Now my problem is the 'clear' button, i really dun know how to make button which is can clear the lines. Any one have idea? -
Newbie How to put spaces between buttons
I have a CANCEL and a SAVE button in a REGION.
I tried putting  :
I would like to put about 4 spaces between them.
Suggestions?
Thanks.
SteveYou can try putting &nbsp;&nbsp;&nbsp;&nbsp; (that's a semi-colon, not a colon) in the Post Element Text of the first button.
Regards,
John -
How to put a radio button ina table
Hi Frndz..
I want to show a radio button in a table which table contains multiple rows, so with this radio button user can select only one row out of multi rows.
My table like this am getting the data from RFC...
PONum BarCode OptionButton
100032 rnsnsv-e3r radiobutton
100043 sae489-q3 radiobutton
100034 fs88a7-df4 radiobutton
So with the option of radio button user can select only one row..
while using Insert Table cell editor am adding a radio button but am not able go ahead...suggest me if u have any ideas.
Thanks in Advance
Regards
RajeshHi Rajesh,
Try this:
Step1: Right click on RootUIElementContainer and manually insert the Table
Step2: Now right click on Table and Insert the TableCoulmn Group
Step3: In the TableColumnGroup Insert TableColumn
Step4: Now Insert TableCellEditor Radio Button Type.
Step5: Bind the value attributes to the Radio Button property called selectedKey and KeyToSelect and deploy the application
Thanks
Krishna -
How to put a border around locked text boxes?
I have a number of locked text boxes. I need to place a border (a box) around them. How do I do that?
Govan,
1. It's helpful to give a full and complete description of your problem when first posting in order to get a complete answer and avoid follow up posts.
2. There's no need post the same answer twice.
My answer: The stroke/line around a text box is all or nothing. If you want to eliminate the line between adjacent text boxes you'll have to draw a white line over the offending line to cover it up. Once this is done, select both text boxes and the line (using shift-click or command-click) open the Arrange menu and choose Group (or press Option-Command-G). This will keep the white line in place if the text boxes move.
Good luck,
Terry -
How to disable maximize button on a window?
Can anyone please tell me how to disable the maximize button (on the top right corner of a window)
in java?Hi,
In JDK1.1.8 and above (if I am not mistaken) you can use the method: setResizable(false);
So yourframe.setResizable(false);
However in applets in the standard webbrowsers this won't work. (Netscape 4.7x, IE). As they use an older JDK version (lower than 1.1.8).
Martijn -
Hello,
Can you tell me how to disable the maximize button from the
RoboHelp HTML output, so that run-time window size cannot be
changed.
Thank you,
Anu.Anu,
If you are calling your help from an application that can run
JavaScript or from a website, I think you can do this with
JavaScript. Do a search on the Web for "JavaScript disable
maximize." It looks like the key is to have the attribute
"resizable=no", so you could add that to your search, too. The
JavaScript would have to be put in the link that calls the help
from the application or site, not in RoboHelp or any of the topics.
Hope this helps,
Ben -
Acrobat 9.1 Mac How do you change from Radio buttons to Check boxes?
I have a DMV Form I Downloaded and had to convert to PS then back to PDF (written originally on PC Acrobat was in XML format).
So on new form, I am able to add fields. I used the the Forms manager to automatically create the fields. Fields that were made Radio Buttons should have been Check boxes. How do change the Radio buttons to check boxes. There are a lot of them and I don't wish to have to re-key them in.
Suggestions?Well when I click on the box it shows a Check mark in the box. That exactly what I need because in the instructions it requires a Check mark in each of the check boxes. Normally the Med form is sent as a paper copy from DMV every two years.
Also another Tip. A PDF that has XML Content. (PC Acrobat Version).
If you want a usable PDF on Mac and get rid of the XML do the following:
Open the XML Based PDF on Mac Acrobat 9.X .
Now choose export and save as Postscript File (.ps).
Now locate and drop on Distiller 9.X.
When PDF created will be a Pristine exact replica of the XML file except Mac Acrobat can edit and create forms with it. -
How to disable the maximize and minimize button of JDialog
How to disable the maximize and minimize button of JDialog. I have an application which has JDialog box, but in that i should not have maximize and minimize button.If any one come across this problem and got a solution please helpout me.
Btw, isn't it a little strange to ask thisquestion...
Actually, I thought it was meant to be sardonic...
Dialogs don't have those buttons, so the question
n should be to the OP how did he/she get them in the
first place? Cuz they aren't using JDialog to do it,
unless it's something to do with a specific look &
feel.I somehow missed that, good point :-) -
APEX:How to put dynamic buttons in a Report.
Hello all,
I am creating one application in which i want two buttons in every record. I can't put it manually because it should change according to records in a table So Can anyone tell me how to put dynamic buttons in a report.
Thanks & Regards,
Jiten PansaraHi Jiten,
you cannot create buttons in the report, but you can always create link columns with some css class to show it as button.
So in the both link column report attributes you will have class="button1" and class="button2"
And in dynamic actions you need to bind the events based on your link column's jquery selector like:
.button1
.button2Thanks
Maybe you are looking for
-
Datasource does not appear on the console, intermittent problem
I am using Weblogic 9.2 MP3 I've created an Oracle DataSource and successfully targeted it to a Managed Server. When I click on it in the console and navigate to the "Monitoring" tab, it would sometimes appear in the "Test DataSource" table and somet
-
Loading EJB problem with deployejb !
I am working with Oracle 8.1.5 and jdk 1.1.6, when I am running the deployejb tool with the HelloWorld example of the demo directory, I have a problem when loadind EJB files into the database: deployejb -v -u workuser ... done Compiling Stubs...done
-
Data guard standby restart in rocover mode
Hi, I inherited a data guard database and found that the secondary DB has been out of sync with primary. I perform SCN recovery to the secondary and now they are fine syncing. I figured I had to manually put the standby in recover mode after open in
-
Getting errors while opening SAP MMC for NWCE
Hi Frndz .. I installed NWCE 7.1 trail version it was installed well, but when am trying to start the server thru rightcklick start all services on SAPSID(CE1), itz giving follwoing errors.. Start failed :2 *NIEHOSTUNKNOWN*_ *NRawConnect failed in pl
-
New to Epubs and InDesign is Crashing
hi, I'm a rookie when it comes to forums and to publishing epubs, but I have run into several walls and I'm in need of some help, so here goes ... I've done a lot of research on ePubs and I have a document that's ready to go. It initally started out