How to copy the text from textfield to jlist(please help me)..
hi to all,i am making chat application , in my program user enters ip in the text field to connect to other computer.whenever user wants to send the message ,he has to enter ip in the text field , all i want to do is to copy the ip from text field to jlist , so user does'nt enter same ip every time , he can just select from the jlist . please help me in this ,can u tell me code for that , i would be thankful to u
Thankyou
Naresh
You've asked a lot of questions the last few days. I think its time you do some reading. The Swing tutorial titled "Creating a GUI Using JFC/Swing: has sections on every component and example code of how to use them. You can even download the entire tutorial and all the example from the following link:
http://java.sun.com/docs/books/tutorial/
Here's the link specific link to the section on "Using Lists"
http://java.sun.com/docs/books/tutorial/uiswing/components/list.html
Similar Messages
-
How to copy the payload from onMessage Activity in BPEL interface
Hi All,
how to copy the payload from onMessage Activity in BPEL interface when it is there at the starting of the process and when clicking on the OnMessage Activity
i'm able to see the View XML Document link. By Clicking on View XML Document Payload is getting opened for me but at this point i'm not able to copy the payload and more over the scroll bar is also not there.
When i'm saving it as .xml i'm able to see the payload but not in an xml format.
When trying the payload in SOAPUI it's not getting reformatted.
How can we solve the issue.
Regards,
CHThe input payload can be seen from "Audit Trail" tab and "Flow" tab of any BPEL instance. The XML shown in "Flow" tab are not rightly formatted XMLs and you may not able to copy them "as is" to a text editor. But, the XML shown in "Audit Trail" should be in the right XML format and you should be able to click on any audit trail entry and copy the XML payload to a text editor. soapUI should also be able to format such XMLs without any issue. Just make sure that you don't overwrite soap header/body section when pasting to soapUI request.
-
Unable to update software or upload pics from SD card-how do I remove files from startup disk? Please help!
Hello Smile_333
The article below will assist with finding things and help increase the hard drive space for your computer. The best way is to have an external hard drive to copy things to if you do not want to delete and loose things.
OS X Mountain Lion: Increase disk space
http://support.apple.com/kb/PH10677
Thanks for using Apple Support Communities.
Regards,
-Norm G. -
How to use the LAN NetStream for peer transmission, please help, write a sample code
How to use the LAN NetStream for peer transmission, please help, write a sample code
No reply, I reply, Oh
-
How to pass the text from a table to the field label on the selection scre
hi guru's
i have requirement were in i have to pass the text from a table as field label for
a input field on the selection screen.
EX: selection screen
(xxxxxxx ) __________
field label
please help
regards,
varahi all,
can you please check the code, and suggest am i doing wrong any were.
types: xtab(200).
data : ttab type table of xtab,
w_so type xtab.
data: routine(32) value 'TEMP_ROUTINE',
program(8),
message(128),
line type i.
AT SELECTION-SCREEN OUTPUT.
select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
DESCRIBE TABLE t_fieldlabel LINES N.
w_so = 'REPORT ZTEMP_PROGRAM.'.
append w_so to ttab.
w_so = 'FORM TEMP_ROUTINE.'.
append w_so to ttab.
loop at t_fieldlabel.
w_field = t_fieldlabel-field.
CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
append w_so to ttab.
endloop.
w_so = 'ENDFORM.'.
append w_so to ttab.
generate subroutine pool ttab name program
message message
line line.
if sy-subrc = 0.
perform (routine) in program (program).
else.
write:/ Message.
endif.
The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
very urgent requirement please help
thanks,
vara -
How to copy the Data From Oracle Table To SAP Table
Hi Friends,
We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
I appreciate any suggestions regarding this.
Regards
CSM ReddyHi,
since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement.
Regards
Frank -
How to copy the data from one database to another database without DB link
Good Day,
I want to copy the data from one database to another database with out DB link but the structure is same in both.
Thanks
NiharYou could use SQL*Plus' COPY command
http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM -
How to Copy the PLD from one database to another
Dear Members,
i have designed the PLD for Purchase Order, i want to copy the particular PLD into another Database.
i tried to copy the PLD from one database to another through copy express.. i copied the PLD sucessfully. But the problem is,it copies all PLD's from one database to another. i want only the Purchaseorder PLD has to be copied in to another database.any body can help me in this regard.
With Regards,
G.shankar GaneshHi,
select * into A1 from RDOC where Author !='System'
select * into A2 from RITM where Doccode in (select Doccode from A1 )
select * from A1
select * from A2
sp_generate_inserts 'A1'
sp_generate_inserts 'A2'
you will get Insert scripts of A1 and A2 tables .After that You 'll Replace A1 to RDOC and A2 to RITM.
So that you can RUN this SQL srcipts any where (In any Database)
but First u have to run sp_generate_inserts Storeprocedure(from websites) .
drop table A1,A2 -
How to center the text displayed in a JList
Hi,
The width of the JList display area is wider than the text displayed. I tried to center the text displayed to make it look nicer. I had tried using "setAlignmentX(Component.CENTER_ALIGNMENT)" in my own ListCellRenderer class but did not work. Any idea how to center the text?
Fai.Yes, I am using JLabels in my renderer and the following is the code:
public class MyCellRenderer extends JLabel implements ListCellRenderer {
private static final Color HIGHLIGHT_COLOR = new Color(0, 0, 128);
public MyCellRenderer() {
setOpaque(true);
setIconTextGap(12);
public Component getListCellRendererComponent(
JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
String entry = (String)value;
setText(entry);
setFont(new Font("Ariel", Font.BOLD, 18));
setAlignmentX(Component.CENTER_ALIGNMENT);
if(isSelected) {
setBackground(HIGHLIGHT_COLOR);
setForeground(Color.white);
} else {
setBackground(Color.white);
setForeground(Color.black);
return this;
Can you point out where to implement the centering logic?
Thanks,
Fai. -
I need help to log out from my stolen Ipad. please help.
If you had installed iOS 7 it would be Activation locked, but I see you only have iOS 5. You do have a backup of you iPad files on your computer or iCloud, don't you?
If the iPad was running iOS 7, the thief/finder will not ever be able to use it.
iCloud: Find My iPhone Activation Lock in iOS 7
http://support.apple.com/kb/HT5818
Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
Report to police along with serial number. Change all your passwords.
These links may be helpful.
How to Track and Report Stolen iPad
http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
Reporting a lost or stolen Apple product
http://support.apple.com/kb/ht2526
What to do if your iOS device is lost or stolen
http://support.apple.com/kb/HT5668
How to Find a Missing iPad with FindMyiPad
http://www.dummies.com/how-to/content/how-to-find-a-missing-ipad-with-findmyipad .html
iCloud: Locate your device on a map
http://support.apple.com/kb/PH2698
iCloud: Lost Mode - Lock and Trace
http://support.apple.com/kb/PH2700
iCloud: Remotely Erase your device
http://support.apple.com/kb/PH2701
Report Stolen iPad Tips and iPad Theft Prevention
http://www.stolen-property.com/report-stolen-ipad.php
General steps to follow for a Stolen iPad
http://stolen-ipad.com/
How to recover a lost or stolen iPad
http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
How to Find a Stolen iPad
http://www.ehow.com/how_7586429_stolen-ipad.html
What NOT to do if your iPhone or iPad is lost or stolen
http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
Apple Product Lost or Stolen
http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st Len
Oops! iForgot My New iPad On the Plane; Now What?
http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
How to Find Your iPad Serial Number
http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
http://support.apple.com/kb/HT4061
Check the serial number (located on back/bottom) in this lost/stolen iPad database. However, most owners are not aware of this database and don’t enter the serial number.
Stolen iPad Database
http://www.stolenlostfound.org/online-stolen-ipad-database
Also do a search, using the serial number, on your local Craig’s List. Some users list the serial number of a stolen iPad to thwart the sale of a stolen device.
Cheers, Tom -
Hi
I am following below link to hide/show my columns dynamically. See "Column Formatting"
http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187.pdf
As per doc, element can be made private/public.
<items type="PUBLIC">
<item>
<name>Plasma TV</name>
<quantity>10</quantity>
<price>4000</price>
</item>
<item>
And same can be used to hide the column using condition
<?if@column:/items/@type="PUBLIC"?>
MY QUESTION IS HOW TO DO THIS IN MY XML BELOW?
Below is part of my XML code which I am using in Data Definition for RTF.
<group name="GH3" source="QH3">
<element name="COLUMN_HEAD3" value="COLUMN_NAME" />
</group>
<group name="GH4" source="QH4">
<element name="COLUMN_HEAD4" value="COLUMN_NAME" />
</group>
I am getting output like this.
<LIST_GH3>
<GH3>
<COLUMN_HEAD3>REBILL_TO_OTHER_BUSINESS_UNIT</COLUMN_HEAD3>
</GH3>
</LIST_GH3>
<LIST_GH4>
<GH4>
<COLUMN_HEAD4>XYZ</COLUMN_HEAD4>
</GH4>
</LIST_GH4>
In order to use logic as per oracle document I want output like this.
<LIST_GH3 type="PUBLIC">
<GH3>
<COLUMN_HEAD3>REBILL_TO_OTHER_BUSINESS_UNIT</COLUMN_HEAD3>
</GH3>
</LIST_GH3>
<LIST_GH4 type="PRIVATE">
<GH4>
<COLUMN_HEAD4>BLANK</COLUMN_HEAD4>
</GH4>
</LIST_GH4>
What changes I need to make in my XML code to get the runtime output as above? Please help. Where do i need to make changes in the above xml? Group name? Element name?
I am planning to use below condition in RTF template to hide the column, but dont know how to set the type of column as PRIVATE/PUBLIC in the XML output used to populate data in the RTF at runtime.
<?if@column:/BTSPIEXP/LIST_GH3/@type=”PUBLIC”?>COLUMN_HEAD3<?end if?>
Regards,
Swapnil K.Hi,
Issue has been resolved. I used the value of the element to determine to display it or not.
Regards,
Swapnil K. -
is there a certain file in the '''mozilla firefox directory''' that has the saved passwords ,etc info in TXT form, somewhere on my compputer that i havent discoverd yet?
@dmcritchie
I don't see any "sort" done at all on the resulting output. And the code on my page doesn't have any sort functions included, that I can see. ''(I know little about writing Javascript.)'' It sure doesn't "sort" as displayed in the Firefox Saved Passwords window, which is alpha from left to right - chrome:// - ftp:// - http:// - https:// - as the primary sort. And within each of those protocols there are mutli-levels of alpha sort, which are separated by each period in the URL, it seems.
The resulting output from my page seems like it may be in the order the passwords were originally saved, which is the order that data would have been originally saved in the signons.sqlite file. I can't say that 100% though, as the Profile I used earlier to test that it still works in Firefox 5.0 has been through hell and back over the last 8 or 9 years. I honestly can't remember the last time I started saving passwords from scratch in a new Profile, I have passwords from websites that I haven't been to in the last 8 years in there. I just copy the two password files into any new Profile I may create and I'm then sure I have any of the passwords I have saved since I started using Firefox.
Sorry, I don't have any idea about how to add another column with (xerox.com) pulled out of this URL (www.office.xerox.com), if I am following you. The script used basically takes the data saved in Firefox an outputs it direct, without modification, just placing that data into the correct place as per the script. I'm not sure that would even be possible, we're already hitting two security alerts in Firefox as it is. -
How to copy Chinese text from MS Word to Indesign CS5.5
Hello, I am a beginner and wanted to simply copy Chinese characters from MS WOrd to indesign CS 5.5. But it showed up in indesign as a bunch of squares. ANyone knows how to do it right? Thanks
Joel Cherney wrote:
If you cannot find any of these, the InDesign installation disk comes with a bunch of free high quality fonts, courtesy of Adobe.
Use those.
The chances are quite small that you will offend your Chinese readership by setting text in an overtly Japanese font like Mincho or Kozuka - but the chance is a non-zero chance. All the right glyphs are there, of course (thank you Unihan), but typographic standards differ between the two languages, and there's no sense in taking the risk.
Ah -- apologies! Wait, let me check my ID ... I got
* Apple LiGothic, Apple LiSung (installed by default on OS X)
* BiauKai (umm, don't know)
* Adobe Fan Heiti
* STHeiti
* LiHei Pro
* LiSong Pro
* Adobe Ming Std
* Adobe Fangsong Std
* GB18030Bitmap (exactly what it says: a bitmap font, and you can use it in InDesign! A bad idea...)
* Hei
* Heiti SC
* Adobe Heiti Std
* Hiragino Sans GB
* Kai
* Adobe Kaiti Std
* Adobe Song Std
.. and yet even more. If you are working on Windows, you get a couple of "MS Xxx" fonts as well, and in that case you are definitely better off with Adobe's set.
I must admit I only see the difference because Japanese fonts usually do not include a "full" set of glyphs (at least, not the "usual" 3,000 to 10,000). Joel, care to point out some tell-tale glyph forms? -
How to copy link text from links?
Currently when selecting a link, there is no easy option to copy link text. This feature should be implemented to be one of the options in the popup menu once a link is selected, alongside with "Open Link in New Tab"; "Copy Link"; !"Copy Link Text"!; "Share Link"; "Bookmark Link".
This menu option will provide a convenient way to browse through search results and other various links and will add to the efficiency of navigation of web pages.Hi eva88, are you copying from a webpage or from the address bar? If you copy a link from a webpage, Gmail should pick up the HTML as is from the original. But when you copy from the address bar, you need to take the extra step of using the "link" button in Gmail. Due to changes in the Gmail UI, this may be harder to find, but for me, it appears when mousing over the lower part of the compose box. I've attached a series of screen shots showing where I see it.
-
How to get the text from me52n/me52?
I used rp-read-infotype in getting the text in HR. Please guide me how to get it in ME52. Thanks!
HI
GOOD
CAN YOU GIVE SOME MORE BRIEF ABOUT YOUR REQUIREMENT.ANYWAY YOU CAN GO THROUGH THIS REPORT HOPE CAN HELP YOU SOMETHING
REPORT Z_LEAVES_AND_COMMENTS line-size 255 line-count 65 no
standard page heading .
=====================================================
DATA DECLARATIONS
=====================================================
infotypes : 0002 ,
2001 .
TABLES : t554t .
DATA : BEGIN OF ITAB_LEAVES OCCURS 100 ,
PERNR LIKE P2001-PERNR ,
NACHN LIKE P0002-NACHN ,
VORNA LIKE P0002-VORNA ,
SUBTY LIKE P2001-SUBTY ,
ATEXT LIKE T554T-ATEXT ,
YEAR(4) TYPE C ,
SEQNR LIKE P2001-SEQNR ,
BEGDA LIKE P2001-BEGDA ,
ENDDA LIKE P2001-ENDDA ,
KALTG LIKE P2001-KALTG .
DATA : END OF ITAB_LEAVES .
DATA : S_DATE_LOW LIKE SY-DATUM .
=====================================================
SELECTION SCREEN - DEFAULT
=====================================================
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME .
parameters : P_PERNR LIKE Pa0002-PERNR
MATCHCODE OBJECT PREM OBLIGATORY.
PARAMETERS : S_DATE LIKE SY-DATUM DEFAULT SY-DATUM .
SELECTION-SCREEN END OF BLOCK B1 .
=====================================================
TOP-OF-PAGE
=====================================================
TOP-OF-PAGE .
WRITE : 'Report of Leaves - Infotype 2001' COLOR COL_HEADING .
ULINE .
WRITE : /
'CODE' COLOR COL_HEADING ,
'DESCRIPTION OF LEAVE ' COLOR COL_HEADING ,
'YEAR' COLOR COL_HEADING ,
'STARTING ' COLOR COL_HEADING ,
'ENDING ' COLOR COL_HEADING ,
'DURATION ' COLOR COL_HEADING .
ULINE .
======================================================
START OF SELECTION
======================================================
START-OF-SELECTION .
S_DATE_LOW = S_DATE - 365 .
CLEAR : P2001 , P2001[] .
RP-READ-INFOTYPE P_PERNR 2001 P2001 S_DATE_LOW S_DATE .
IF SY-SUBRC = 0 .
LOOP AT P2001 .
CLEAR : ITAB_LEAVES .
ITAB_LEAVES-PERNR = P2001-PERNR .
ITAB_LEAVES-SUBTY = P2001-SUBTY .
ITAB_LEAVES-SEQNR = P2001-SEQNR .
clear t554t .
select single * from t554t
where MOABW = '99'
and awart = P2001-SUBTY
and sprsl = SY-LANGU .
if sy-subrc eq 0 .
ITAB_LEAVES-ATEXT = T554T-ATEXT .
endif .
ITAB_LEAVES-BEGDA = P2001-BEGDA .
ITAB_LEAVES-ENDDA = P2001-ENDDA .
ITAB_LEAVES-YEAR = P2001-BEGDA(4) .
ITAB_LEAVES-KALTG = P2001-KALTG .
CLEAR P0002 .
REFRESH P0002 .
RP-READ-INFOTYPE P_PERNR 0002
P0002 '18000101' '99991231'.
IF SY-SUBRC = 0 .
ITAB_LEAVES-NACHN = P0002-NACHN .
ITAB_LEAVES-VORNA = P0002-VORNA .
ENDIF .
APPEND ITAB_LEAVES .
ENDLOOP .
ENDIF .
======================================================
END OF SELECTION
======================================================
END-OF-SELECTION .
LOOP AT ITAB_LEAVES .
WRITE : /
ITAB_LEAVES-SUBTY ,
ITAB_LEAVES-ATEXT ,
ITAB_LEAVES-YEAR ,
ITAB_LEAVES-BEGDA ,
ITAB_LEAVES-ENDDA ,
ITAB_LEAVES-KALTG .
PERFORM GET_NOTES_OF_AN_INFOTYPE
USING '2001'
ITAB_LEAVES-SUBTY
ITAB_LEAVES-PERNR
ITAB_LEAVES-BEGDA
ITAB_LEAVES-ENDDA
ITAB_LEAVES-SEQNR .
ENDLOOP .
uline .
write : ' *** End of Report *** ' COLOR COL_HEADING .
uline .
*======================================================
=========> FORM GET_NOTES_OF_AN_INFOTYPE <===========
*======================================================
FORM GET_NOTES_OF_AN_INFOTYPE
USING MINFTY MSUBTY MPERNR MBEGDA MENDDA MSEQNR .
DATA: TX-KEY LIKE PSKEY.
DATA: BEGIN OF TEXT-VERSION,
NUMMER TYPE X VALUE '02',
END OF TEXT-VERSION.
DATA: BEGIN OF PTEXT OCCURS 200.
DATA: LINE(78).
DATA: END OF PTEXT.
data : is_first type i .
DATA : LINES_OF_NOTES TYPE I .
Preparing Key for Reading Texts of
Infotype
CLEAR TX-KEY .
CLEAR: PTEXT .
REFRESH: PTEXT .
TX-KEY-PERNR = MPERNR .
TX-KEY-INFTY = MINFTY .
TX-KEY-SUBTY = Msubty .
TX-KEY-ENDDA = MENDDA .
TX-KEY-BEGDA = MBEGDA .
TX-KEY-SEQNR = MSEQNR .
READING CLUSTER TX - (Texts)
IMPORT TEXT-VERSION
PTEXT
FROM DATABASE PCL1(TX)
ID TX-KEY
USING PCL1_EXP_IMP(SAPFP50P) .
IF SY-SUBRC NE 0 .
CLEAR: TEXT-VERSION .
CLEAR: PTEXT .
REFRESH: PTEXT .
SY-SUBRC = 4 .
ENDIF .
Writing texts retrieved
DESCRIBE TABLE PTEXT LINES LINES_OF_NOTES .
IF LINES_OF_NOTES GT 0 .
is_first = 1 .
LOOP AT PTEXT .
if is_first = 1 .
WRITE : / 'Comments' , ptext-line .
is_first = 0 .
else .
WRITE : / ' ' , ptext-line .
endif .
ENDLOOP .
ENDIF .
ENDFORM.
THANKS
MRUTYUN
Maybe you are looking for
-
My graphics tablet doesn't align with screen in Photoshop Elements 10
Hello, I had been using my Wacom Bamboo tablet on Photoshop Elements 10 with no problems whatsoever. Today it seems is a different story. As you can see in the image below, the tablet seems to not be aligned correctly with the screen. I am limited to
-
Encrypt/decrypt in c++ and java
Hi, I have a problem in encryt a file using RC2 in java and decrypt in c++. I am using the bouncycastle.org as my RC2 provider in JCE. Here is the code in c++ void CEScoreDlg::encrypt(BYTE *pData, unsigned long dwDataSize, unsigned long *dwOutSize)
-
How do we retrieve data from SO10 into smart form?
Hello Experts, Could you pls help me out in extracting data from SO10 into smartform.And how do we create a check box in a smartform(The check box should be always checked). Thanks and Regards, Shilpa
-
Hi all, I'm having problems running a simple test report on Reports Builder 9.0.2. I've created a report based on an Html file saved from Excel, as in the "Output to Excel with Oracle9i Report" from the "Getting Started with Oracle9i Reports" demonst
-
Question about implementing a clock using a Timer object
Hello all, I'm not sure if this is the correct forum to post this question but I think so, as it regards a Swing component. I want to add a timer (a clock that starts at 0:00 and keeps track of how long the app is running) to a frame. I am just curio