How to judge the mouse enter which one of buttons?
There two buttons(no text,only icon on them),
and how to judge the mouse enter which one of
them and show the different message at one textfield?
Try this. I don't know if the code works, but the true solution will be like it.
void mouseClicked(MouseEvent e)
int mask = e.getModifiers();
if((mask & InputEvent.BUTTON1_MASK) != 0)
System.out.println("You touched to the button 1!");
else if((mask & InputEvent.BUTTON2_MASK) != 0)
System.out.println("You touched to the button 2!");
else if((mask & InputEvent.BUTTON3_MASK) != 0)
System.out.println("You touched to the button 3.");
}Ghys
Similar Messages
-
How to check the value entered in one co from anethor CO
Dear All,
I have a Debrief screen in which one main region is attached to CO1 and a tab region is attached to CO2, the tab region is an independent region in the main rdebrief main RN,
Here i have a requirement if one of the field of the tab region is entered , that has to be captured in the Debrief main Region CO.
could you help in assisting this.
Regards
AKAK,
You can get handle of any item in the page from the mainCO by getting handle of the bean. You will have to get the handle of the tabbed region and get the handle of the corresponding field.
Alternatively, you can get the value from the VO Attribute, if the field is mapped to a VO attribute.
Cheers
AJ -
Firefox is refusing to start. It says that my profile is missing, which it appears to be. Yet the way in which one goes about creating a new profile wont' work either. Anybody have a bloody clue what's going on and how to fix it?
AIR give you classes to detect an on-line or off-line status, it's in
this way for the sake of flexibility for instance what happens if you
only what to sync data only on Saturdays at 2 am? If it were done
automatically that'll be a problem. And it isn't so complicated.
You can download the SalesBuilder from AIR examples at www.adobe.com/devnet/air
it's an application that does everything you have in mind.
I don't understand your question abou file types.
An AIR app can communicate with almost every backend served tech
CF, .Net, PHP, RoR.
Sincerely,
Michael
El 14/05/2009, a las 8:48, IrishAIRMax <[email protected]> escribió:
>
I have to say that I'm loving the picture! well cool!
>
Sorry but I don't quiet understand. I thought AIR did the updating
automatically? I didn't realise the developer had to program the
logic of how the updates take place? Is it a case in most AIR apps
that when online the app updates the server and once every intervel
(of however long) the local SQLite DB is synced to the more updated
server DB. Then when offline the developer has to sense that the app
is offline and store a log manually of the updates without any help
from AIR itself, and then update once it comes online again?
>
Can AIR link to anything more than a database on the server side
apart from webservices, for example .as files or any other file types?
>
What type of server is a Flex app stored on, is it a specific Adobe
server rather than a Java or .NET server?
>
Thank you so much for your last comment!
IrishAIRMax
> -
How to reverse the Batch number which was enter wrongly during GRN posting
Hi Folk,
How to reverse the Batch number which was enter wrongly during GRN posting .
Please revert.
Thank you.You can either do a transfer posting and move quantity from this batch to another batch e.g. in MB1B with movement 311, or you cancel the entire material document using MBST transaction and redo your receipt correctly.
Then you can flag the wrong batch for deletion in MSC2N.
The batch itself gets deleted physically with the archiving transaction SARA object MM_SPSTOCK -
How to get the user entered data?
Hi all,
I have created an HTMLB DynPage component.
In That i have created my input screen with textboxes using response.write method.
i have added one onConfirm event on which the data whould validate.
so onConfirm method im trying to get the data with request.getParameter method which returns null...
how to do...how to get the user entered data to do my validations...can anyone plz advice.
Thanks,
ViswesHi
inputfield or textbox component entered directly using response.write(...) are not htmlb , but html.
to create portal input field (ie HTMLB), you should do something like
this in the doProcessBeforeOutput member function
InputField field1 = new InputField("Id1");
field1.setSize(8); // 8 characters
this.getForm().addComponent(field1);
and in doProcessAfterInput member function
InputField field1 =
(InputField) this.getComponentByName("Id1");
you can then manipulate the content of the field.
Hope this help,
Guillaume -
How to specify the directory in which we want to store the uploaded files
Hello !!
I am using apache commonfile upload for uploading my files.I followed the user guide and tried to run a program,but my problem is I am not able to understand as to how to mention the directory in which the uploaded file will be saved..My code is given below :
package r;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
import java.util.*;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.servlet.*;
import org.apache.commons.fileupload.disk.*;
import org.apache.commons.io.*;
import java.lang.Exception;
public class fileupload extends HttpServlet
public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException
// Check that we have a file upload request
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
System.out.println(isMultipart);
if (ServletFileUpload.isMultipartContent(request))
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
try {
List items= upload.parseRequest(request);
Iterator iter = items.iterator();
while (iter.hasNext())
FileItem item = (FileItem) iter.next();
if (item.isFormField()) //NORMAL FORM FIELD
String name = item.getFieldName();
String value = item.getString();
System.out.println(value);
else
String fileName = item.getName();
System.out.println(fileName);
String contentType = item.getContentType();
File saveTo = new File("/info/upload_files/myFile.jpeg");
try
item.write(saveTo);
System.out.println("File written" );
catch(Exception e)
System.out.println("File not written");
// InputStream fs= item.getInputStream();
fileName = FilenameUtils.getName(fileName);
System.out.println(fileName);
}//end of try
catch (Exception e) { }
public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
doGet(request,response);
The problem is that the control doesn't reach the try statement and I get " File not written" on the console because it enters catch everytime..Please tell me how the path to the directory should be given...Rest of the code is working fineNo, the problem is that when an Exception is thrown, you ignore it completely and throw away all the information associated with it. That leaves you to guess at what the problem is. So instead of answering your guess at a good question, I'm going to suggest that in all of your catch blocks you put this code:e.printStackTrace();Then you can look at the output in the log file and see what the problem is. Start from there.
-
How to capture the data entered in a textfield in a JTable
How to capture the data entered in a textfield present in a cell of a textfield or how to add listener to this textfield
A sample of my code is:
model = new GridDisplayTableModel(gridDisp,columnName,getRows(),getCols());
final ComboRenderer cRenderer = new ComboRenderer();
final TextFieldRenderer tRenderer = new TextFieldRenderer();
combo.addItem("one");
combo.addItem("two");
combo.addItem("three");
final JTextField textfield = new JTextField();
final DefaultCellEditor cmbEditor = new DefaultCellEditor(combo);
// final JEnterDataCellEditor textEditor = new JEnterDataCellEditor(12);
final DefaultCellEditor textEditor = new DefaultCellEditor(textfield);
rm = new RowEditorModel();
table = new JTable(model){
public TableCellRenderer getCellRenderer(int row, int column) {
int posx = 0;
int posy = 0;
TableCellRenderer renderer = null;
for(int l=0;l<getDataVec().size();l++)
beanObj =(Helperbean)dataVec.elementAt(l);
posx = beanObj.getPosx();
posy = beanObj.getPosy();
if(row==posx && column==posy)
if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("textfield"))
rm.addEditorForRow(row,textEditor);
renderer = tRenderer;
else if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("combo"))
rm.addEditorForRow(row,cmbEditor);
renderer = cRenderer;
break;
renderer = super.getCellRenderer(row, column);
// System.out.println("getEditor"+rm.getEditor(1));
return renderer;
public TableCellEditor getCellEditor(int row, int col) {
int posx = 0;
int posy = 0;
TableCellEditor tmpEditor = null;
for(int l=0;l<getDataVec().size();l++)
beanObj =(Helperbean)dataVec.elementAt(l);
posx = beanObj.getPosx();
posy = beanObj.getPosy();
if(row==posx && col==posy)
if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("textfield"))
System.out.println("celleditorval "+textEditor.getCellEditorValue());
tmpEditor = textEditor;
else if(beanObj.getModeofDisplay() != null && beanObj.getModeofDisplay().equalsIgnoreCase("combo"))
tmpEditor = cmbEditor;
break;
tmpEditor = super.getCellEditor(row, col);
return tmpEditor;
public boolean isCellEditable(int row,int col){
boolean isEditable = false;
int posx = 0;
int posy = 0;
for(int l=0;l<getDataVec().size();l++)
beanObj =(Helperbean)dataVec.elementAt(l);
posx = beanObj.getPosx();
posy = beanObj.getPosy();
if(row==posx && col==posy)
if(beanObj.getModeofDisplay() != null )
isEditable = true;
else
isEditable = false;
break;
isEditable = false;
return isEditable;
public void changeSelection(final int row, final int column, boolean toggle, boolean extend) {
super.changeSelection(row, column, toggle, extend);
//my attempt to avoid editCellAt from being called twice in a row
if (getModel().isCellEditable(row, column) && !(isEditing() && getEditingRow() == row && getEditingColumn() == column))
if (editCellAt(row, column)) {
getEditorComponent().requestFocus();
// Select the text when the cell starts editing
public boolean editCellAt(int row, int column) {
boolean result = super.editCellAt(row, column);
final Component editor = getEditorComponent();
if (editor != null && editor instanceof JTextField) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
((JTextField)editor).selectAll();
return result;
public boolean hasFocus()
Component editorComponent = getEditorComponent();
// Try to install the editor
int anchorRow = getSelectionModel().getAnchorSelectionIndex();
int anchorColumn = getColumnModel().getSelectionModel().
getAnchorSelectionIndex();
if (anchorRow != -1 && anchorColumn != -1 && !isEditing())
if ((this.getSelectedRow() == anchorRow) && (this.getSelectedColumn() == anchorColumn))
if (!editCellAt(anchorRow, anchorColumn)) {}
return super.hasFocus();
public void valueChanged(ListSelectionEvent e)
super.valueChanged(e);
if ((this.getSelectedRow() == 2) && (this.getSelectedColumn() == 3))
DefaultFocusManager focusManager = new DefaultFocusManager();
focusManager.focusNextComponent(this);
model.fireTableStructureChanged();
-
if i have three numbers under one contact, how do i change or designate which one to dial first
in this case the third number down has a star and this is the number that gets dialed if i hit the left sit of the contact. how can i move the star?
-
I want to replace one of the dual hdd-which one is which?
i want to replace one of the dual hdd-after opening the back cover which one is which? They are both exactly the same #'s etc
Your statement :
for whatever reason there were indications of which was which...
Maybe what you meant to say :
for whatever reason there were no indications of which was which.
Anyways, no it shouldn't be that difficult, open the DVD drawer using the end of a small paper clip by inserting it in the release hole in the front of the drawer.
Insert your first recovery disc or OS installation disc and upon boot up start tapping away at the f9 key. Select to boot from the internal CD/DVD ROM Drive and push enter.
It should be that simple.
Maybe the new drive is faulty, but some times people also have problems with a drive that is not purchased through HP when they use their HP recovery discs.
Buying a drive not bought from HP shouldn't make a difference though.
It will be interesting what the computer store will have to say, they will have a drive to try out to rule out the possibility that your new one may be faulty, it's not unheard of. -
Please give me idea how I highlight the gird row which have
Sir
I have gird with 5 column
Vno
Code
Dept
Date
Amount
Sir my need is which record have above 5000 amount that color read and other color blue
It means above 5000 highlight in grid
Please give me idea how I highlight the gird row which have above 5000 maount
Thank
aamirPROCEDURE pr_Set_VA (p_VA IN VARCHAR2) IS
v_Feld VARCHAR2 (30);
v_Item VARCHAR2 (61);
v_Block VARCHAR2 (30);
BEGIN
v_Block := :SYSTEM.CURSOR_BLOCK;
v_Feld := Get_Block_Property (v_Block, FIRST_ITEM);
WHILE (v_Feld IS NOT NULL) LOOP
v_Item := v_Block || '.' || v_Feld;
Set_Item_Instance_Property (v_Item, CURRENT_RECORD, VISUAL_ATTRIBUTE, p_VA);
v_Feld := Get_Item_Property (v_Item, NEXTITEM);
END LOOP;
END; -
How to create the SWF file which was included surrogate pairs.
I would like to make sure how to create the SWF file which are included surrogate pairs.
The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
Ex, I set the ' '(UTF-16 is '20B9F') to 'Unicoderange'.
However, I cannot add the surrogate pairs.
The error of outside the scope of Unicode occurred when I compiled the AS file.
The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
Then, I read the following pages.
These pages are written that unicode-range supported surrogate pairs.
http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
So please let me know how to create the SWF file which are included surrogate pairs.
Environment
- Flex3.5a
- TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
Thanks,
Takeshi Ishihara.I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..
-
How to locate the source code which populate the SO number?
Hi,
For example:
In T-code: VA01
Put your cusor on the screen field : Standard Order
Then press F1, get the technical info of this field as below shows:
Screen field VBAK-VBELN
Program name SAPMV45A
Screen no. 4001
So my question is, how to locate the source code which exactly to populate the SO number into VBAK-VBELN by the system automaticallly.
As assumed that the system is generate this kind of SO autuomatically, and its number range is defined in SPRO.
I just want to find out the coding part which gengerate the SO number.
Want to see the source code of that...
How to find it???
Thanks.Hi Deepak,
Thanks for the info..
But i think i am also know that.
Questions is dont know how to find the KEY statements that exactlly to generate the number...
Anyway, 2 points to you. -
HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?
HI ALL,
CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
THANKS
HARITHAHi,
First and foremost let me advice you to be very careful while doing this.
For Rescheduling
RSPC> chain > Goto > Planning view and
click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
For terminating active chain
You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
The next step will be to go to targets that you were loading and remove the red requests from those targets.
Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
Re: Kill a Job
Re: Killing a process chain.
Regards,
JituK -
Question
How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID prompts the previously used email user IDs... Want to disable this feature---How can it be done ?*Click the (empty) input field on the web page to open the drop down list
*Highlight an entry in the drop down list
*Press the Delete key (on Mac: Shift+Delete) to remove it.
*http://kb.mozillazine.org/Deleting_autocomplete_entries
* Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
* Tools > Options > Privacy > History: "Remember search and form history"
* https://support.mozilla.com/kb/Remembering+passwords
* https://support.mozilla.com/kb/Form+autocomplete -
I have a airport time capsule, an older airport extreme, and an older airport express. I want to hard wire my Mac Mini to the network. What is the best arrangement of the devices? which ones should be hard wired to optimize extending the network?
I am using TM Unifi with an ASUS RT-N18U Wi-Fi router. I would like to know could I use Apple AirPort Time Capsule to extend (repeater, booster) my Wi-Fi to a part of the house where the Wi-Fi signal is poor
Yes,, if you plan to connect the AirPort Time Capsule to the ASUS router using an Ethernet cable connection that will remain fixed and permanently installed at all times.
No, if you were planning to have the AirPort Time Capsule connect wirelessly and extend the Asus WiFi signal, since it would not be compatible with another manufacturer's router for that purpose.
Another way of saying the same thing here would be that if you want to extend the network wirelessly, it will take two Apple routers to do so
Maybe you are looking for
-
I just bought 2 new iPhone 4 one for and my husband. I want to sync them on the same computer without it runing my sisters already syned 3s. When tried syning my old and i mean very old iPhone's contacts it said i could only merge them with my sister
-
Why is the 'Next' button in 508 Screen Reader mode not working for RichTree
Hi ADF Experts, My JDeveloper version is 11.1.1.8. The 'Next' button in 508 Screen Reader mode for tables works fine. However, it does not work for trees, I can see only the first 23 or so items. Any ideas? What am I missing here? Regards, -ab
-
Does anyone know if the USB on the Airport Extreme supports USB 2.0?
I am looking for an external hard drive to connect to the Airport USB connection. I am looking a a 750Gig eSATA/USB 2.0 Micronet G-Force drive. Does anyone know if this will work?
-
How do I continue to download my movie ?
I was downloading a movie onto my ipod touch from itunes on my ipod and my ipod went dead and so I let it charge and it came back and then i try to resume my download process and it says: download error .....HELP!
-
I have a iMac Core 2 Duo, 7 years old, running Yosemite. I want to give it away to a charity. I need to get all my personal information off first. How do I do this. I already did an erase and reinstall. It doesn't do the trick because when it gets to