Trying to find a class or method for showingStatus in application StatusBar
hey ever language has a class or method to show the status of the application in the status bar but i have not been able to find one in java uptill now i am still searching for some thing to help is there any one that can help me
Implementing a status bar is up to you, but it's not
hard. Use BorderLayout as the layout manager of your
main window, add JLabel statusJLabel to
BorderLayout.SOUTH, and call statusJLabel.setText with
each status message.can you be more specific about the call thingy
let say i have manu items like
File > open
Close
Save
Print
Exit
now when i bring my mouse on it or go up and down the list the status should show like open, close, save, print, exit.
Similar Messages
-
FM/Class to find the class and characterstics for a given material
Hi All,
Is there any Class/FM to find the class and characterstics for a given material.I tried some BAPI_OBJCL* BAPI's but lot of the BAPI's need classnum as input parameter. But i need a BAPI or tables or class which can give the class and its characterstic values for a given material.Hi Ben
Try ..
BAPI_OBJCL_GETCLASSES
BAPI_OBJCL_CREATE -
I'm trying to find a class I may attend for Microsoft Powerpoint 2008 for Mac. Charlotte, NC
As PowerPoint is not an Apple product, you may get faster results by postin in this forum:
Office for Mac forums -
Where to find Java Class File Specification for Java 5.0?
Where to find Java Class File Specification for Java 5.0?
thank you in advance.same place you found it for 1.4Can u give more details? I thought the class spec for Java 1.4 is the same as Java 1.2.
anyone can tell where to find Java Class File Specification for Java 5.0?
Thanks. -
Hello, I am trying to find a GPS Tracker/Watch for my kids, Apple Iphone 5s compatible. Any suggestions?
Hi, Please use the following link: http://support.hp.com/us-en/product/HP-Pavilion-10-x2-PC/7439381/model/7499063/manuals/ Regards.
-
I am trying to find a program called XMP for putting metadata in pictures. Any ideas?
I am trying to find a program called XMP for putting metadata in pictures. Any ideas?
You can either enter metadata in bridge in the bridge metadata panel, or in Photoshop by selecting the file>File Info...
-
I am trying to find the network security key for my airport extreme router
I am trying to find the network security key for my airport extreme so I can hook up my pc lap top.
I am afraid that the "key" will be of no use to you (it is 64 characters long).....but I hope I am wrong.
Since you indicate that you are using an iPad, I assume that you are also using AirPort Utility on the iPad.
On the iPad home screen, tap AirPort Utility
Tap on the AirPort Extreme
Tap on Edit
Tap on Advanced
Tap on Show Passwords
Tap on Main Network and "key" will be revealed -
Trying to find action class that acts behind the search button in a jsp
Hi all,
I am trying to change the Search Functionality of Standard B2B Web Shop. In B2B Web shop , if we click on Products tab on left hand side, we get a search box and if we search for a product, in standard system the search will return duplicates. If a product is assigned to more than one area in the catalog, it will show up on the results of the search more than one time.
But my requirement is that I have to filter out the duplicates and display the link for the first instance found. For that I figured out the jsp and it is b2b/organizer-content-product-search1.jsp and now I want to find out which action class it is calling. Does anyone know which action class is it calling?
Regards,
Jessica SamHi Jessica,
File b2b/organizer-content-product-search1.jsp call action="<isa:webappsURL name="b2b/nextquicksearch.do" />" you can find which class is calling in config.xml file. Below is the entry from config.xml file.
<action path="/b2b/nextquicksearch" input="/b2b/organizer-content-product-search1.jsp" type="com.sap.isa.isacore.action.QuickSearchAction" name="quickSearchForm" validate="true">
<forward name="success" path="/b2b/organizer-content-product-search1.jsp"/>
<forward name="failed" path="/b2b/organizer-content-product-search.jsp"/>
</action>
It is calling com.sap.isa.isacore.action.QuickSearchAction Action class. To get more idea and clear picture about how search is working in ISA please refer [Dev and Ext guide|https://websmp206.sap-ag.de/%7Esapdownload/011000358700000469462006E/SAP_ISA50_DevAndExtGuide.pdf]
Please Goto Page 101-Generic Search It will give you more detail about how search is working in ISA.
I hope this inofrmation will help you.
eCommerce Developer -
Can I use classes and methods for a maintenance view events?
Hello experts,
Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!Hi viraylab,
1. The architecture provided by maintenance view
for using EVENTS and our own code inside it -
It is provided using FORM/PERFORM
concept only.
2. At this stage,we cannot use classes.
3. However, inside the FORM routine,
we can write what ever we want.
We can aswell use any abap code, including
classes and methods.
(But this classes and methods won't have any
effect on the EVENT provided by maintenance view)
regards,
amit m. -
How we can use class and methods for the FM of reuse_alv_list_display
Hi Abapers,
Please provide the sample code of class and method of REUSE_ALV_LIST_DISPLAY.
Which Class i can use for this Function module.
I need to write a code using OOPS concept.
I was done the GRID display using this class cl_gui_alv_grid.
But i want only List Display using the class & methods.
Plz provide sample code.
Thanks
Nani.Hi Nani,
This is the sample code..
*& Report Z_OO_ALV
*& We can Use Two containers in OOALV
REPORT z_oo_alv LINE-COUNT 50.
*types gt_struct type sflight.
DATA BEGIN OF gt_struct.
INCLUDE STRUCTURE sflight.
DATA rcol(4) TYPE c.
DATA colors TYPE lvc_t_scol.
DATA END OF gt_struct.
*ALV GRIDs
DATA gr_alvgrid TYPE REF TO cl_gui_alv_grid.
DATA gr_alvgrid1 TYPE REF TO cl_gui_alv_grid.
DATA gc_custom_control_name TYPE scrfname VALUE 'CC_ALV'.
DATA gc_custom_control_name1 TYPE scrfname VALUE 'CC_ALV1'.
*CONTAINERs
DATA gr_ccontainer TYPE REF TO cl_gui_custom_container.
DATA gr_ccontainer1 TYPE REF TO cl_gui_custom_container.
*FIELDCATALOGs
DATA gt_fieldcat TYPE lvc_t_fcat WITH HEADER LINE.
DATA gt_fieldcat1 TYPE lvc_t_fcat WITH HEADER LINE.
*LAYOUTs
DATA gs_layout TYPE lvc_s_layo.
DATA gs_layout1 TYPE lvc_s_layo.
DATA pt_exclude TYPE ui_functions. "internal table declaration to be passed.
*DATA pt_cell TYPE lvc_t_cell with header line.
DATA : gt_list LIKE gt_struct OCCURS 50 WITH HEADER LINE,
gt_list1 LIKE gt_struct OCCURS 50 WITH HEADER LINE.
*DATA v_ucomm TYPE sy-ucomm.
CALL SCREEN 100.
*& Module display_alv OUTPUT
text
MODULE display_alv OUTPUT.
PERFORM display_alv.
ENDMODULE. " display_alv OUTPUT
*& Module PAI INPUT
text
MODULE pai INPUT.
CASE sy-ucomm.
WHEN 'EXIT'.
PERFORM exit_program.
WHEN 'PICK'.
PERFORM cell_info.
ENDCASE.
ENDMODULE. " PAI INPUT
*& Form display_alv
text
FORM display_alv.
PERFORM prepare_field_catalog CHANGING gt_fieldcat[].
PERFORM prepare_layout CHANGING gs_layout.
PERFORM data_retrival.
IF gr_alvgrid IS INITIAL.
CREATE OBJECT gr_ccontainer
EXPORTING
container_name = gc_custom_control_name
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
CREATE OBJECT gr_alvgrid
EXPORTING
I_SHELLSTYLE = 0
I_LIFETIME =
i_parent = gr_ccontainer
I_APPL_EVENTS = space
I_PARENTDBG =
I_APPLOGPARENT =
I_GRAPHICSPARENT =
I_NAME =
I_FCAT_COMPLETE = SPACE
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM exclude_tb_functions CHANGING pt_exclude.
PERFORM set_col.
CALL METHOD gr_alvgrid->set_table_for_first_display
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME =
IS_VARIANT =
I_SAVE =
I_DEFAULT = 'X'
is_layout = gs_layout
IS_PRINT =
IT_SPECIAL_GROUPS =
it_toolbar_excluding = pt_exclude "excluding toolbar functions
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
IR_SALV_ADAPTER =
CHANGING
it_outtab = gt_list[]
it_fieldcatalog = gt_fieldcat[]
IT_SORT =
IT_FILTER =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
CALL METHOD gr_alvgrid->refresh_table_display
EXPORTING
IS_STABLE =
I_SOFT_REFRESH =
EXCEPTIONS
finished = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
PERFORM prepare_field_catalog1 CHANGING gt_fieldcat1[].
PERFORM prepare_layout1 CHANGING gs_layout1.
PERFORM data_retrival1.
IF gr_alvgrid1 IS INITIAL.
CREATE OBJECT gr_ccontainer1
EXPORTING
container_name = gc_custom_control_name1
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
CREATE OBJECT gr_alvgrid1
EXPORTING
I_SHELLSTYLE = 0
I_LIFETIME =
i_parent = gr_ccontainer1
I_APPL_EVENTS = space
I_PARENTDBG =
I_APPLOGPARENT =
I_GRAPHICSPARENT =
I_NAME =
I_FCAT_COMPLETE = SPACE
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM set_col1.
CALL METHOD gr_alvgrid1->set_table_for_first_display
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME =
IS_VARIANT =
I_SAVE =
I_DEFAULT = 'X'
is_layout = gs_layout1
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
IR_SALV_ADAPTER =
CHANGING
it_outtab = gt_list1[]
it_fieldcatalog = gt_fieldcat1[]
IT_SORT =
IT_FILTER =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
CALL METHOD gr_alvgrid1->refresh_table_display
EXPORTING
IS_STABLE =
I_SOFT_REFRESH =
EXCEPTIONS
finished = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDFORM. "display_alv
*& Form prepare_field_catalog
text
-->GT_FIELDCAT text
FORM prepare_field_catalog CHANGING pgt_fieldcat TYPE lvc_t_fcat.
DATA ls_fieldcat TYPE lvc_s_fcat.
ls_fieldcat-tabname = 'gt_list'.
ls_fieldcat-fieldname = 'CARRID'.
ls_fieldcat-scrtext_m = 'Air line code'.
ls_fieldcat-col_pos = 0.
ls_fieldcat-outputlen = 10.
ls_fieldcat-emphasize = 'C400'.
ls_fieldcat-key = 'X'.
APPEND ls_fieldcat TO pgt_fieldcat.
ls_fieldcat-tabname = 'gt_list'.
ls_fieldcat-col_pos = 1.
ls_fieldcat-fieldname = 'CONNID'.
ls_fieldcat-scrtext_m = 'Connection code'.
ls_fieldcat-emphasize = 'C900'.
APPEND ls_fieldcat TO pgt_fieldcat.
ls_fieldcat-tabname = 'gt_list'.
ls_fieldcat-fieldname = 'PRICE'.
ls_fieldcat-scrtext_m = 'PRICE'.
APPEND ls_fieldcat TO pgt_fieldcat.
ENDFORM. "prepare_field_catalog
*& Form prepare_layout
text
-->GS_LAYOUT text
FORM prepare_layout CHANGING gs_layout TYPE lvc_s_layo.
gs_layout-stylefname = 'FIELD_STYLE'.
gs_layout-zebra = 'X'.
gs_layout-grid_title = 'FLIGHT'.
gs_layout-sel_mode = 'A'.
gs_layout-ctab_fname = 'COLORS'.
ENDFORM. "prepare_layout
*& Form data_retrival
text
FORM data_retrival.
SELECT carrid
connid
price
FROM sflight
INTO CORRESPONDING FIELDS OF TABLE gt_list
UP TO 50 ROWS.
ENDFORM. "data_retrival
FORM EXIT_PROGRAM *
FORM exit_program.
CALL METHOD gr_ccontainer->free.
CALL METHOD gr_ccontainer1->free.
LEAVE TO SCREEN 0.
ENDFORM. "exit_program
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STAT'.
SET TITLEBAR 'xxx'.
IF W_CUSTOM_CONTAINER IS INITIAL.
**sets TITLEBAR
PERFORM TITLEBAR.
ENDMODULE. " STATUS_0100 OUTPUT
*& Form prepare_field_catalog1
text
-->GT_FIELDCAT text
FORM prepare_field_catalog1 CHANGING pgt_fieldcat1 TYPE lvc_t_fcat.
DATA ls_fieldcat TYPE lvc_s_fcat.
ls_fieldcat-tabname = 'gt_list1'.
ls_fieldcat-fieldname = 'SEATSMAX'.
ls_fieldcat-scrtext_m = 'MAX. SEATS'.
ls_fieldcat-col_pos = 0.
ls_fieldcat-outputlen = 10.
ls_fieldcat-emphasize = 'C400'.
ls_fieldcat-key = ' '.
APPEND ls_fieldcat TO pgt_fieldcat1.
ls_fieldcat-tabname = 'gt_list1'.
ls_fieldcat-col_pos = 1.
ls_fieldcat-fieldname = 'SEATSOCC'.
ls_fieldcat-scrtext_m = 'SEATS OCCUPIED'.
APPEND ls_fieldcat TO pgt_fieldcat1.
ENDFORM. "prepare_field_catalog
*& Form prepare_layout1
text
-->GS_LAYOUT text
FORM prepare_layout1 CHANGING gs_layout1 TYPE lvc_s_layo.
gs_layout1-stylefname = 'FIELD_STYLE'.
gs_layout1-zebra = 'X'.
gs_layout1-grid_title = 'DETAILS'.
gs_layout-sel_mode = 'C'.
gs_layout1-info_fname = 'RCOL'.
gs_layout-no_toolbar = 'X'.
ENDFORM. "prepare_layout
*& Form data_retrival1
text
FORM data_retrival1.
SELECT seatsmax
seatsocc
FROM sflight
INTO CORRESPONDING FIELDS OF TABLE gt_list1
UP TO 50 ROWS.
ENDFORM. "data_retrival
*& Form exclude_tb_functions
&---- subroutine to exclude toolbar options -
text
-->PT_EXCLUDE text
FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.
DATA ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_maximum.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_minimum.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_subtot.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_sort.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_sum.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_subtot.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_sum.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_filter.
APPEND ls_exclude TO pt_exclude.
ENDFORM. "data_retrival1
*& Form cell_info
text
FORM cell_info. "CHANGING pt_cell TYPE lvc_t_cell.
DATA lt_cell TYPE lvc_t_cell WITH HEADER LINE.
CALL METHOD gr_alvgrid->get_selected_cells
IMPORTING
et_cell = lt_cell[].
LOOP AT lt_cell.
WRITE : lt_cell-col_id , lt_cell-row_id.
ENDLOOP.
MODIFY pt_cell[] from lt_cell[].
ENDFORM. "cell_info
*& Form set_col
text
FORM set_col .
DATA ls_cellcolor TYPE lvc_s_scol.
LOOP AT gt_list.
IF gt_list-price GT 500.
ls_cellcolor-fname = 'PRICE'.
ls_cellcolor-color-col = 5.
ls_cellcolor-color-int = 1.
ls_cellcolor-color-inv = 0.
APPEND ls_cellcolor TO gt_list-colors.
else.
ls_cellcolor-fname = 'PRICE'.
ls_cellcolor-color-col = 3.
ls_cellcolor-color-int = 1.
APPEND ls_cellcolor TO gt_list-colors.
ENDIF.
MODIFY gt_list.
ENDLOOP.
ENDFORM. "set_col
*& Form set_col1
text
FORM set_col1.
data : ind type sy-tabix,
indx type sy-tabix.
loop at gt_list1.
ind = sy-tabix / 2.
indx = sy-tabix - ind.
if indx eq ind.
gt_list1-rcol = 'C500'.
endif.
MODIFY gt_list1.
endloop.
ENDFORM. "set_col
*FORM TITLEBAR.
*SET TITLEBAR 'TITLE'.
*ENDFORM.
*double click on TITLE and write ur title
Thanks,
Samantak.
Rewards points for useful answers. -
Need help finding the default payment method for supplier site in R12
I am using the following query to find out what the default payment method is for a supplier site.
select pv.vendor_id ,
pvs.vendor_site_id,
iepa.ext_payee_id,
ieppm.payment_method_code
from ap_supplier_sites_all pvs
,ap_suppliers pv
,iby_external_payees_all iepa
,iby_ext_party_pmt_mthds ieppm
where pv.pay_group_lookup_code = 'EMPLOYEE'
and pv.vendor_type_lookup_code = 'EMPLOYEE'
and pv.employee_id is not null
and pv.employee_id =92584--p_person_id
and pv.vendor_id= pvs.vendor_id
and pvs.vendor_site_code = 'HOME'
and pvs.pay_group_lookup_code <> 'ATTACHMENT'
and ((pv.end_date_active is null) or (pv.end_date_active >= sysdate))
and ((pvs.inactive_date is null) or (pvs.inactive_date>= sysdate))
and pvs.pay_site_flag = 'Y'
and pvs.vendor_site_id = iepa.supplier_site_id
and iepa.ext_payee_id = ieppm.ext_pmt_party_id
and ieppm.primary_flag = 'Y'
and pv.segment1 = '131678'
The problem is that I am returning two rows.
I have gone in to the application and changed the default payment method from 'Check' to 'Electronic' and I am able to see the change on one of the records, however I am unable to determine how I'm supposed to narrow it down to just this record. I am pulling what hair I have left out!
Please help.
ChrisHere is the generic query for some one who is faing problem like us.This query will return all the payment methods for all sites of a supplier
SELECT ieppm.payment_method_code,ieppm.inactive_date
FROM ap_supplier_sites_all assa,
ap_suppliers ass,
iby_external_payees_all iepa,
iby_ext_party_pmt_mthds ieppm
WHERE ass.vendor_id = assa.vendor_id
AND assa.pay_site_flag = 'Y'
AND assa.vendor_site_id = iepa.supplier_site_id
AND iepa.ext_payee_id = ieppm.ext_pmt_party_id
AND ass.segment1 = '10033' -- Supplier Number
AND( (ieppm.inactive_date IS NULL)or (ieppm.inactive_date > sysdate)) ; -
I am trying to find a business plan template for use in pages and numbers
Hi,
I am trying to find a template for a business plan for a start up company to allow me to submit and idea and costings to get financial investment.
There are lots available on the net but they are mostly written for WORD.Glad someone does Peggy.
The notification system seems to be quite sporadic.
I go to get links for FAQs and occassionally spot the odd irrelevant comment and spam, but really unless it is totally off the wall I leave them be. At least for a month or two, then clean them off just so it doesn't bury the valuable stuff.
Been thinking about reconstructing the entire thing using WordPress so I can get better control over the layout and sort them imto more logical groups. I have trouble locating stuff I know is there and I pity the newcomer who doesn't even know it exists.
Peter -
I am trying to find a manual in Spanish for a g4 imac
I am trying to fin a manual in Spanish for a g4 imac. The apple websites list manuals for newer models but not for a g4 (bought in 2002)
Could possibly the following manual be of some use?
http://manuals.info.apple.com/MANUALS/0/MA558/es_ES/E1000.G4-ES.pdf
Other documents can be found via the link below.
http://support.apple.com/es_ES/manuals/#macdesktops
(click several times on "Cargar más resultados" for older results)
Jan
EDIT: Sorry, just noticed that you wrote iMac. This is the area for "normal" Power Macintosh computers; G4 iMac would be handled at the iMac (PPC) community. Some manuals for older/newer machines, and even other models, can often be used to a certain extent. -
Trying to use super class's methods from an anonymous inner class
Hi all,
I have one class with some methods, and a second class which inherits from the first. The second class contains a method which starts up a thread, which is an anonymous inner class. Inside this inner class, I want to call a method from my first class. How can I do this?
If I just call the method, it will use the second class's version of the method. However, if I use "super," it will try to find that method in the Thread class (it's own super class) and complain.
Any suggestions?
Code:
public class TopClass
public void doSomething(){
// do something
=============================
public class LowerClass extends TopClass
// overrides TopClass's doSomething.
public void doSomething(){
// do something
public void testThread(){
Thread t = new Thread(){
public void run(){
doSomething(); //fine
super.doSomething(); //WRONG: searches class Thread for doSomething...
t.start();
}Classes frequently call the un-overridden versions of methods from their superclasses. That's that the super keyword is for, if I'm not mistaken.You're not mistaken about the keyword, but you're not calling the superclass method from a subclass. Your anonymous inner class is not a subtype of TopLevel. It's a subtype of Thread.
Here it is no different, except that I happen to be in a thread at the time.It's vastly different, since you're attempting to call the method from an unrelated class; i.e., Thread.
I could also be in a button's action listener, for example. It seems natural to me that if I can do it in a method, I should be able to do it within an anonymous inner class which is inside a method.If you were in an button's action listener and needed to call a superclass' implementation of a method overridden in the button, I'd have the same questions about your design. It seems smelly to me.
~ -
Mission Control: Trying to find my class in Memleak in Reference Type
Hi
I'm trying to create some demonstrations of Mission Control and I want to create an example where I have a memory leak and I want to get to my class using reference type.
This is my code:
public class ThunderBombCracker {
public ThunderBombCracker() {
public void boom() {
for (int index = 0; index < 10; index++) {
new Thread("ThunderBombCracker " + index) {
public void run() {
List<ClientTo> lista = new ArrayList<ClientTo>();
try {
Random random = new Random();
for (int index1 = 0; index1 < 120000; index1++) {
byte[] buffer = new byte[16];
for (int index2 = 0; index2 < 16; index2++) {
buffer[index2] = (byte) (65 + random.nextInt(32));
lista.add(new ClienteTo(new String(buffer)));
sleep(1);
sleep(120000);
lista.size();
} catch (Throwable e) {
e.printStackTrace();
}.start();
public static void main(String[] args) {
ThunderBombCracker boom = new ThunderBombCracker();
boom.boom();
Basically I create a lot of 16 character Strings and pass them to my own class ClientTo and wait for 1 minute. Now, when I run memleak I can see a lot of char[], a lot of Strings, a lot of ClientTo. But if I try to check the reference types of String it won't show ClientTo. Maybe I'm missing something here about how JRockit or Memleak works.
Regards,
Néstor BoscánYes that is what I'm doing with the code. I'm creating Strings that are assigned to a ClientTo object and then added to a list. But I cannot see that the MemLeak shows me the reference between ClientTo and String.
Regards,
Néstor Boscán
Maybe you are looking for
-
Creative Zen Sleek Photo Firmware Download does not recognize my pla
My Creative Zen Sleek Photo recently froze up. After restarting it, the "firmware problem" screen popped up. After reading up on it a bit, I decided to first clean, then reformat, and then reload the firmware. Everything went smoothly until I went to
-
Can not open some pages on safari like google or facebook
i can not open some pages on safari, like google or facebook have to turn off a try again then sometimes works
-
"open in new window" just comes up as a blank page
'OPEN IN NEW WINDOW' & "SEND LINK" JUST BRING UP A BLANK PAGE
-
Parallels Desktop 3.0 on Snow Leopard
We would like to upgrade to the new Snow Leopard OS. However we are presently running Parallels Desktop 3.0 for Mac on the OS X Leopard software. Part of the decision to upgrade to OS X Snow Leopard will depend on being able to do a smooth transition
-
How is the JROUTE cookie value determined?
Would it be possible for someone to describe in detail the algorithm used by the libpassthrough.so to generate the 4-character JROUTE cookie value when load balancing across SJS AS 8.1 EE UR2 instances? Is it a hash or some other encoding on the inst