Toolbar button is disappearing when clicked table's row
Hi
I use jdeveloper Studio Edition Version 11.1.1.3.0,Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660 .
I have problem about click table row that surround with panel collection.I tested my small application on explorer 8.When I click the table's row ,table moves up and toolbar buttons disapper.How can I solve this problem.
Can anybody give suggestions.
Thks
I use jdeveloper Studio Edition Version 11.1.1.3.0,Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660 .
I my little project I use <af:inputListOfValues component.It works well but I want resize popUp window that opened by this component.How can I do it?
Similar Messages
-
Scroll bar disappears when clicking on up or down since v32.0.0
The scroll bar disappears in the main window and also in scroll boxes when clicking on up and down.
'''Note;''' Some added toolbar and anti-virus add-ons are known to cause
Firefox issues. '''Disable All of them.''' -
System Preferences Toolbar and Toolbar Button have disappeared
My Systems Preferences toolbar disappeared, and so did the small button in the upper right that toggled the toolbar off and on. Any ideas on how to fix this without reinstalling OS X?
I do not know when the toolbar disappeared (I don't change preferences often), and I do not know if any specific actions or software installations/upgrades caused the problem.iTBotB,
Welcome to Apple Discussions.
Quit System Preferences (if it's running) and trash the following file: Macintosh HD/Users/username/Library/Caches/com.apple.preferencepanes.cache
Then launch System Preferences again and check for functionality.
There is no toolbar button on the System Preferences window. My toolbar only has the following selections: ←/→, "Show All," and a "Search" field.
;~) -
SUBMIT button works only when clicked twice... Online interactive form
Hi,
I have created a interactive form with SubmitToSAP button. In this I will enter a contract number and will click SUBMIT button.
For the first time it is fetching the contract details properly.
In the same form, i am changing the previously entered value with another contract number and clicking SUBMIT.
Now the details for the previously entered contract number is only displayed. Again if i try for the same value ( which i used for the second time ) and press submit, it is workin correctly.
So, the problem is, except for the very first time SUBMIT button action, the button works fine only when clicked twice..
please help me in solving this issue..
Regards,
Surya.Hi,
In addition to my previous post, I am also using RESET FORM button from Library.
First I am entering the contract number (say 400000000) in the form and clicking submit button. The contract details are fetched and displayed in the form.
Now i am Resetting the form using Reset Button, and giving new contract number (say 400000020). When I pressed Submit button , the details of the first entered contract number (400000000) is coming.
Then again I am giving 400000020 or any other number, it is fetching the details correctly for that number...
Can anyone help me in this issue..
Thanks,
Surya. -
ALV hot spot to open a transaction when clicked on a row
hi all
can you please suggest me where i can get the best code for
adding hotspot functionality in ALV display in which I have to open a
related transaction as we click on any row of ALV.
Thanks in Advance.
Naval bhatttry this code
*& Report ZBATCHNO21N *
REPORT ZBATCHNO21N LINE-SIZE 280 .
TABLES : CHVW,ZMMSE_BATCH,LFA1,MAKT,MARA.
tables : godynpro.
TYPE-POOLS : SLIS.
DATA : IMMSE LIKE ZMMSE_BATCH OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF ITAB OCCURS 0,
CHARG LIKE CHVW-CHARG,
MATNR LIKE CHVW-MATNR,
LEVEL TYPE I,
MACID LIKE ZMMSE_BATCH-MACID,
LEGNO LIKE ZMMSE_BATCH-LEGNO,
FEDID LIKE ZMMSE_BATCH-FEDID,
MAKTX LIKE MAKT-MAKTX,
PRDATE LIKE ZMMSE_BATCH-PRDATE,
LICHA LIKE CHVW-LICHA,
NAME1 LIKE LFA1-NAME1,
LIFNR LIKE CHVW-LIFNR,
MBLNR LIKE CHVW-MBLNR,
BISMT LIKE MARA-BISMT,
END OF ITAB.
DATA : LEVEL TYPE I VALUE 1.
DATA: PA_MATNR LIKE CHVW-MATNR,
PA_CHARG1 LIKE CHVW-CHARG,
PA_CHARG LIKE CHVW-CHARG,
PA_MBLNR LIKE CHVW-MBLNR,
CH_MATNR LIKE CHVW-MATNR.
DATA : TTABIX LIKE SY-TABIX.
DATA : V_CHARG LIKE CHVW-CHARG.
DATA : IFIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WFIELDCAT TYPE SLIS_FIELDCAT_ALV,
ILAYOUT TYPE SLIS_LAYOUT_ALV.
DATA : COUNTER TYPE I VALUE 1.
DATA : V_MBLNR LIKE CHVW-MBLNR.
SELECT-OPTIONS: MATNR FOR CHVW-MATNR OBLIGATORY NO INTERVALS NO-EXTENSION,
CHARG1 FOR CHVW-CHARG OBLIGATORY NO INTERVALS NO-EXTENSION,
WERKS FOR CHVW-WERKS OBLIGATORY NO INTERVALS NO-EXTENSION.
START-OF-SELECTION.
SELECT * FROM ZMMSE_BATCH INTO TABLE IMMSE WHERE ACHARG IN CHARG1 AND OMATNR IN MATNR.
SELECT SINGLE * FROM CHVW WHERE MATNR IN MATNR AND
CHARG IN CHARG1 AND WERKS IN WERKS AND
( BWART EQ '131' OR BWART EQ '931' ).
MOVE CHVW-MATNR TO PA_MATNR.
MOVE CHVW-MATNR TO CH_MATNR.
MOVE CHVW-CHARG TO PA_CHARG.
MOVE CHVW-MBLNR TO PA_MBLNR.
SELECT SINGLE BISMT FROM MARA INTO MARA-BISMT WHERE MATNR EQ PA_MATNR .
SELECT SINGLE MAX( PRDATE ) INTO ZMMSE_BATCH-PRDATE FROM ZMMSE_BATCH
WHERE OMATNR IN MATNR AND ACHARG IN CHARG1.
* APPEND ITAB.
*ENDSELECT.
CLEAR : CHVW.
SELECT MBLNR CHARG MATNR INTO CORRESPONDING FIELDS OF ITAB FROM CHVW
WHERE MBLNR = PA_MBLNR AND BWART = '261'.
*READ TABLE IMMSE INDEX COUNTER.
*SELECT SINGLE MACID LEGNO FEDID PRDATE INTO CORRESPONDING FIELDS OF ITAB FROM ZMMSE_BATCH
* WHERE IMATNR EQ ITAB-MATNR AND CHARG EQ ITAB-CHARG AND ACHARG EQ PA_CHARG
* AND SBATCH = IMMSE-SBATCH.
*COUNTER = COUNTER + 1.
ITAB-LEVEL = 1.
APPEND ITAB.
ENDSELECT.
SORT ITAB BY MATNR CHARG.
SORT IMMSE BY IMATNR CHARG.
DATA : WTAB LIKE ITAB,
TABIX LIKE SY-TABIX,
WTAB1 LIKE ITAB.
LOOP AT ITAB.
TABIX = SY-TABIX.
MOVE-CORRESPONDING ITAB TO WTAB.
AT NEW MATNR.
LOOP AT IMMSE WHERE IMATNR = WTAB-MATNR AND CHARG = WTAB-CHARG.
WTAB-LEGNO = IMMSE-LEGNO.
WTAB-MACID = IMMSE-MACID.
WTAB-FEDID = IMMSE-FEDID.
WTAB-PRDATE = IMMSE-PRDATE.
MODIFY ITAB FROM WTAB INDEX TABIX.
TABIX = TABIX + 1.
READ TABLE ITAB INTO WTAB1 INDEX TABIX.
IF WTAB1-MATNR NE IMMSE-IMATNR.
EXIT.
ENDIF.
ENDLOOP.
ENDAT.
ENDLOOP.
LOOP AT ITAB.
*ITAB-LEVEL = LEVEL.
SELECT SINGLE MAKTX INTO ITAB-MAKTX FROM MAKT WHERE MATNR = ITAB-MATNR.
SELECT SINGLE LICHA LIFNR FROM CHVW INTO (ITAB-LICHA, ITAB-LIFNR) WHERE MATNR
EQ ITAB-MATNR AND ( BWART EQ '105' OR BWART EQ '101' )
AND CHARG EQ ITAB-CHARG.
IF ITAB-CHARG CP '2IN*'.
V_CHARG = ITAB-CHARG.
REPLACE FIRST OCCURRENCE OF '2IN' IN V_CHARG WITH '500' .
SELECT SINGLE LIFNR INTO ITAB-LIFNR FROM MSEG WHERE MBLNR = V_CHARG.
ENDIF.
SELECT SINGLE NAME1 INTO ITAB-NAME1 FROM LFA1 WHERE LIFNR = ITAB-LIFNR.
SELECT SINGLE MBLNR INTO ITAB-MBLNR FROM CHVW WHERE MATNR = ITAB-MATNR AND
CHARG = ITAB-CHARG AND
BWART IN ('101','105','561').
MODIFY ITAB.
TTABIX = SY-TABIX.
PERFORM GET_DATA.
ENDLOOP.
PERFORM BUILDFIELDCAT.
PERFORM BUILDLAYOUT.
PERFORM DISPLAYDATA.
*& Form GET_DATA
* text
* --> p1 text
* <-- p2 text
FORM GET_DATA .
SELECT SINGLE * FROM CHVW WHERE MATNR = ITAB-MATNR AND
CHARG EQ ITAB-CHARG AND WERKS IN WERKS AND
( BWART EQ '131' OR BWART EQ '931' ).
IF SY-SUBRC = 0.
MOVE CHVW-MATNR TO PA_MATNR.
MOVE CHVW-MATNR TO CH_MATNR.
MOVE CHVW-CHARG TO PA_CHARG.
MOVE CHVW-MBLNR TO PA_MBLNR.
ITAB-LEVEL = ITAB-LEVEL + 1.
SELECT MBLNR CHARG MATNR INTO CORRESPONDING FIELDS OF ITAB FROM CHVW
WHERE MBLNR = PA_MBLNR AND BWART = '261'.
SELECT SINGLE MACID LEGNO FEDID PRDATE INTO CORRESPONDING FIELDS OF ITAB FROM ZMMSE_BATCH
WHERE IMATNR EQ ITAB-MATNR AND CHARG EQ ITAB-CHARG AND ACHARG EQ PA_CHARG.
TTABIX = TTABIX + 1.
INSERT ITAB INDEX TTABIX.
ENDSELECT.
ELSE.
EXIT.
ENDIF.
ENDFORM. " GET_DATA
*& Form BUILDFIELDCAT
* text
* --> p1 text
* <-- p2 text
FORM BUILDFIELDCAT .
WFIELDCAT-FIELDNAME = 'LEVEL'.
WFIELDCAT-COL_POS = 1.
WFIELDCAT-SELTEXT_L = 'Level'.
WFIELDCAT-OUTPUTLEN = 5.
wfieldcat-key = 'X'.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'MACID'.
WFIELDCAT-COL_POS = 2.
WFIELDCAT-SELTEXT_L = 'Machine Id'.
*WFIELDCAT-OUTPUTLEN = 5.
wfieldcat-key = 'X'.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'LEGNO'.
WFIELDCAT-COL_POS = 3.
WFIELDCAT-SELTEXT_L = 'Legend No'.
*WFIELDCAT-OUTPUTLEN = 5.
wfieldcat-key = 'X'.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'FEDID'.
WFIELDCAT-COL_POS = 4.
WFIELDCAT-SELTEXT_L = 'Feeder Identification'.
*WFIELDCAT-OUTPUTLEN = 5.
wfieldcat-key = 'X'.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'CHARG'.
WFIELDCAT-COL_POS = 5.
WFIELDCAT-SELTEXT_L = 'Batch No'.
*WFIELDCAT-OUTPUTLEN = 5.
wfieldcat-key = 'X'.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'MATNR'.
WFIELDCAT-COL_POS = 6.
WFIELDCAT-SELTEXT_L = 'Part No'.
*WFIELDCAT-OUTPUTLEN = 5.
wfieldcat-key = 'X'.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'MAKTX'.
WFIELDCAT-COL_POS = 7.
WFIELDCAT-SELTEXT_L = 'Part Name'.
*WFIELDCAT-OUTPUTLEN = 5.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'LICHA'.
WFIELDCAT-COL_POS = 8.
WFIELDCAT-SELTEXT_L = 'Supplier Lot No'.
*WFIELDCAT-OUTPUTLEN = 5.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'NAME1'.
WFIELDCAT-COL_POS = 9.
WFIELDCAT-SELTEXT_L = 'Supplier Name'.
*WFIELDCAT-OUTPUTLEN = 5.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'PRDATE'.
WFIELDCAT-COL_POS = 10.
WFIELDCAT-SELTEXT_L = 'Production Date & Time'.
*WFIELDCAT-OUTPUTLEN = 5.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
WFIELDCAT-FIELDNAME = 'MBLNR'.
WFIELDCAT-COL_POS = 11.
WFIELDCAT-SELTEXT_L = 'Material Document No'.
WFIELDCAT-HOTSPOT = 'X'.
WFIELDCAT-NO_OUT = 'X'.
**WFIELDCAT-OUTPUTLEN = 5.
APPEND WFIELDCAT TO IFIELDCAT.
CLEAR WFIELDCAT.
ENDFORM. " BUILDFIELDCAT
*& Form BUILDLAYOUT
* text
* --> p1 text
* <-- p2 text
FORM BUILDLAYOUT .
ILAYOUT-ZEBRA = 'X'.
ILAYOUT-COLWIDTH_OPTIMIZE = 'X'.
*ILAYOUT-F2CODE = '&IC1'.
ENDFORM. " BUILDLAYOUT
*& Form DISPLAYDATA
* text
* --> p1 text
* <-- p2 text
FORM DISPLAYDATA .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
** I_CALLBACK_PF_STATUS_SET = 'PFSTATUS'
I_CALLBACK_USER_COMMAND = 'USERCOMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOPOFPAGE'
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
IS_LAYOUT = ILAYOUT
IT_FIELDCAT = IFIELDCAT
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = ITAB
* EXCEPTIONS
* PROGRAM_ERROR = 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.
ENDFORM. " DISPLAYDATA
FORM TOPOFPAGE.
DATA : ILISTHEADER TYPE SLIS_T_LISTHEADER,
WLISTHEADER TYPE SLIS_LISTHEADER,
TEXT(100),
TEXT1(50),
SPACES(5).
SPACES = ' '.
WLISTHEADER-INFO = 'LOGAN Product Traceablity Report'.
WLISTHEADER-TYP = 'H'.
APPEND WLISTHEADER TO ILISTHEADER.
CONCATENATE 'NIP Code :' CHARG1-LOW INTO TEXT SEPARATED BY SPACE.
CONCATENATE 'Pricol Part No :' MATNR-LOW INTO TEXT1 SEPARATED BY SPACE.
CONCATENATE TEXT TEXT1 INTO TEXT SEPARATED BY SPACE.
WLISTHEADER-INFO = TEXT.
WLISTHEADER-TYP = 'S'.
APPEND WLISTHEADER TO ILISTHEADER.
CLEAR TEXT.
SELECT SINGLE BISMT FROM MARA INTO MARA-BISMT WHERE MATNR IN MATNR.
SELECT SINGLE MAX( PRDATE ) INTO ZMMSE_BATCH-PRDATE FROM ZMMSE_BATCH
WHERE OMATNR IN MATNR AND ACHARG IN CHARG1.
CONCATENATE 'Customer Part No :' MARA-BISMT INTO TEXT SEPARATED BY SPACE.
WLISTHEADER-INFO = TEXT.
WLISTHEADER-TYP = 'S'.
APPEND WLISTHEADER TO ILISTHEADER.
CLEAR TEXT.
CONCATENATE 'Date & Time:'
ZMMSE_BATCH-PRDATE INTO TEXT SEPARATED BY SPACE.
WLISTHEADER-INFO = TEXT.
WLISTHEADER-TYP = 'S'.
APPEND WLISTHEADER TO ILISTHEADER.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = ILISTHEADER
* I_LOGO =
* I_END_OF_LIST_GRID =
ENDFORM.
FORM USERCOMMAND USING PUCOM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
CASE PUCOM.
WHEN '&IC1'.
IF SELFIELD-FIELDNAME = 'MBLNR'.
SET PARAMETER ID 'MBN' FIELD SELFIELD-VALUE.
CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.
*GODYNPRO-ACTION = 'Display'.
ENDIF.
ENDCASE.
ENDFORM.
*FORM PFSTATUS USING EXTAB TYPE SLIS_T_EXTAB.
*SET PF-STATUS 'ZSTANDARD'.
*ENDFORM.
regards
shiba dutta -
When clicking on datagrid row it throws me exception - WPF C#
Whenever I try to double click my datagrid row to edit it, I throws me a few exceptions which doesn't say anything to me. Hovever if
I set the whole datagrid to IsReadOnly to true, I want have the problem, but I need the second and third columns editable.
XAML
<DataGrid x:Name="clientList" HorizontalAlignment="Left" Height="225" Margin="11,126,0,0" VerticalAlignment="Top" Width="349" IsSynchronizedWithCurrentItem="False" AutoGenerateColumns="False" HorizontalGridLinesBrush="#FFB9B9B9" VerticalGridLinesBrush="#FF8B8B8B" GridLinesVisibility="Horizontal" CellStyle="{StaticResource Body_Content_DataGrid_Centering}">
<DataGrid.Resources>
<LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" StartPoint="0,0" EndPoint="0,1" >
<GradientStop Color="#66240000" Offset="0"/>
<GradientStop Color="#CC240000" Offset="0.65"/>
</LinearGradientBrush>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGridTextColumn Width="30" Header="Id" IsReadOnly="True" Binding="{Binding Id}"/>
<DataGridTextColumn Width="100" Header="Company" IsReadOnly="False" Binding="{Binding Company}"/>
<DataGridTextColumn Width="130" Header="Name, Surname" IsReadOnly="False" Binding="{Binding Name}"/>
<DataGridTemplateColumn Header="Actions" CellTemplate="{StaticResource myTemplate}"/>
</DataGrid.Columns>
</DataGrid>
C#
clientList.Items.Add(new DataClients { Id = 1, Company = "My Company", Name = "Jane Roe"});
Exceptions
Exception:Thrown: "'EditItem' is not allowed for this view."(System.InvalidOperationException)
Exception:Thrown: "The string was not recognized as a valid DateTime. There is an unknown word starting at index 0." (System.FormatException)You need to set the ItemsSource property of the clientList DataGrid to a collection of DataClients objects that supports editing. HashSet<DataClients> does not for example but List<DataClients> and ObservableCollection<DataClients> does.
You could call the ToList() method on the collection that you set as the ItemsSource for the DataGrid to convert it to a List<DataClients>:
clientList.ItemsSource = yourCollection.ToList();
The "The string was not recognized as a valid DateTime" error message should be pretty self-explanatory. You are trying to convert a string which doesn't contain a valid date or time value to a DateTime value somewhere, perhaps in the 'myTemplate'.
There is nothing in the DataClients class that you have posted that will cause this exception to be thrown so it is impossible for anyone to tell.
But please only ask one question per thread and then start a new thread if you have a new question.
Please also remember to mark helpful posts as answer to close your threads. -
Dynamic text disappears when clicking bold button.
Dear friends,
I have dynamic text inside a movieclip, that I can make it rotate.
the dynamic text properties are : anti-alias for anmations and I emdedded all characters.
When I click on the bold button the the text disappears.
bold_btn.addEventListener(MouseEvent.Click, on_bold);
function on_bold(e:MouseEvent):void
var my_format:TextFormat = new TextFormat();
my_format.bold = true;
my_mc.my_txt.setTextFormat(my_format);
How can I solve this problem.the easiest (and not very elegant way) is to add textfields that contain those fonts (and embed them). you can remove your textfields from the display list or otherwise, make them not visible on-stage.
-
Print widget makes answer box and buttons disappear when clicked
I've tried two print widgets so far
1. the widget that comes standard with Captivate 4 and
2. the one posted here http://forums.adobe.com/message/1937195 by a community member.
Issues:
1. standard print widget - once the user has typed in their answer (on a short answer question slide) and presses the print widget icon the preview bar shows up and makes the answer box disappear as well as the buttons on the page. So yes, they can print that slide but then there's no way for them to move forward to the next question, answer it and print again etc.
2. the print widget created by the community member in the thread linked above makes the answer box disappear entirely. The user can't even answer the question.
In both instances I can't "bring to front" because they're placed on question slides and the option is greyed out. I don't know what to do at this point but I REALLY REALLY need the print function to work for these courses.
any help would be greatly appreciated.
Thanks,
AartiFor anyone who is having the same problem the issue has been resolved here: http://forums.adobe.com/message/1971043
Thank you Sikandar! -
How to have a button remove itself when clicked?
Here is my code...it should technically work, shouldn't it? Yet when you try it out and click the first button it will fail to refresh or update the frame. When I resize the frame after clicking the first button, the three buttons that were there before disappear and the new button appears. What can I do to fix this? Please help, try it out for yourself and see.
Also, if you can explain to me, how can I center these buttons all to the right?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CPT extends JPanel implements ActionListener
protected JButton AddEntryButton, ViewEntriesButton, SearchEntriesButton, AddButton;
private final static String newline = "\n";
public CPT ()
super (new GridLayout (10, 10));
AddEntryButton = new JButton ("Add Entry");
AddEntryButton.setVerticalTextPosition (AbstractButton.TOP);
AddEntryButton.setHorizontalTextPosition (AbstractButton.LEFT);
AddEntryButton.setToolTipText ("Click this button to add a database entry.");
AddEntryButton.setMnemonic (KeyEvent.VK_A);
AddEntryButton.setActionCommand ("AddEntry");
AddEntryButton.addActionListener (this);
ViewEntriesButton = new JButton ("View Entries");
ViewEntriesButton.setVerticalTextPosition (AbstractButton.CENTER);
ViewEntriesButton.setHorizontalTextPosition (AbstractButton.LEFT);
ViewEntriesButton.setToolTipText ("Click this button to add view all database entries.");
ViewEntriesButton.setMnemonic (KeyEvent.VK_V);
ViewEntriesButton.setActionCommand ("ViewEntries");
ViewEntriesButton.addActionListener (this);
SearchEntriesButton = new JButton ("Search Entries");
SearchEntriesButton.setVerticalTextPosition (AbstractButton.BOTTOM);
SearchEntriesButton.setHorizontalTextPosition (AbstractButton.LEFT);
SearchEntriesButton.setToolTipText ("Click this button to search through all database entries.");
SearchEntriesButton.setMnemonic (KeyEvent.VK_S);
SearchEntriesButton.setActionCommand ("SearchEntries");
SearchEntriesButton.addActionListener (this);
AddButton = new JButton ("Add");
AddButton.setVerticalTextPosition (AbstractButton.TOP);
AddButton.setHorizontalTextPosition (AbstractButton.RIGHT);
AddButton.setToolTipText ("Click this button to add a database entry.");
AddButton.setMnemonic (KeyEvent.VK_A);
AddButton.setActionCommand ("Add");
AddButton.addActionListener (this);
add (AddEntryButton);
add (ViewEntriesButton);
add (SearchEntriesButton);
public void actionPerformed (ActionEvent e)
if ("AddEntry".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
add (AddButton);
if ("ViewEntries".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
if ("SearchEntries".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
// Create the GUI and show it. For thread safety,
// this method should be invoked from the
// event-dispatching thread.
private static void createAndShowGUI ()
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated (true);
//Create and set up the window.
JFrame frame = new JFrame ("Swisha Computer House");
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent newContentPane = new CPT ();
newContentPane.setOpaque (true); //content panes must be opaque
frame.setContentPane (newContentPane);
//Display the window.
frame.pack ();
frame.setSize (300, 300);
frame.setVisible (true);
public static void main (String[] args)
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater (new Runnable ()
public void run ()
createAndShowGUI ();
}You should tell the container it needs to be layed out again and then request for a UI update.
Your first clause in actionPerformed:
if ("AddEntry".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
add (AddButton);
}would then be:
if ("AddEntry".equals (e.getActionCommand ()))
remove (AddEntryButton);
remove (ViewEntriesButton);
remove (SearchEntriesButton);
add (AddButton);
invalidate();
updateUI();
}The same applies for the two other clauses, resulting in:
public void actionPerformed(ActionEvent e)
if ("AddEntry".equals(e.getActionCommand()))
remove(AddEntryButton);
remove(ViewEntriesButton);
remove(SearchEntriesButton);
add(AddButton);
invalidate();
updateUI();
if ("ViewEntries".equals(e.getActionCommand()))
remove(AddEntryButton);
remove(ViewEntriesButton);
remove(SearchEntriesButton);
invalidate();
updateUI();
if ("SearchEntries".equals(e.getActionCommand()))
remove(AddEntryButton);
remove(ViewEntriesButton);
remove(SearchEntriesButton);
invalidate();
updateUI();
} -
ORA-00600:6711 When clicking tables in SQL Developer 1.5.1
Hello everyone.
This will be my first time to post something in this forum. I have used SQL Developer for quite sometime already and it has really helped me in my daily tasks. I am looking after multiple databases. I have no problem in moving around in most of them except one. I always encounter this ORA-600 error when I try to click on Tables from the tree on the left-hand side of the screen to list all the tables in the database. The suggested action is to "Report as a bug".
Hope anyone can help with this.Nobody can help without details...
What DB? What version? Connection details? Can you connect with other tools?
K. -
Form disappears when clicking search help multiple times
Hi All,
I have created an interactive adobe form with Web dynpro application.
We have multiple multiple search helps (custom and standard) on the form.
when the user clicks on any search helps multiple times (4-5 times), the whole form disappears.
Please provide some solution / hints.
Best regards,
Meep.We are not facing this problem on Adobe 9.4. The newest v10.1 has this problem.
Also, this issue is only on 1 server and on other, it works fine.
We are using Native control with ZCI layout. -
Hi!
Something very strange started happening. When I click the spotlight icon on the top bar, all system apps icons disappear and then reapear.
I've also seen this happen without me clicking the spotlight icon.
I'm using a iMac 2.8 GHz Intel Core i7 with 8 GB of RAM using Mountain Lion (10.8).
Any idea of what this is?
I've attached a screenshot:
Thanks!
PatriciaWell, I self-answer.
Following advices found on very old threads here (like this), I understood one possible cause could be some incompatibility of the extras in menu bar. I tried removing Bluetooth extra and also the volume controller (that I never use), and it seems, after a few days, the problem is no more present. -
How to make another button to availabe when click one button
Hi,
There are two buttons (Button A and B)on my page. The disable property of button A is false. The disable property of button B is ture. My issue is when I click Button A, how can I change the disable property of button B to false. Then Button B can be pressed.
Thanks,
Eileen
Message was edited by:
EileenGenerate a PPR event from button A and handle the PPR event, in the code after handling the event, write logic to set the enabled property of button B to true.
read PPR chapter in devguide to understand thr details.
Thanks
Tapash -
IE8 - Underline and color disappear when clicking back arrow on links or colors incorrect
I understand my heading may sound confusing. I have an issue which I cant seem to figure out with the help of a friend as well.
1) I have to clear out the cashe or select "delete browsing history" and then refresh to get the page to look right (the links to be blue with an underline underneath the word) - it shows up Black.
2) When I refresh the page and colors are correct, I click on the link such as on the "PRINT" page on the word "HERE" it goes to the next page. Then I click the back arrow and now the word is black and the underline is missing? It is suppose to return to the same color (blue) with an underline underneath the word.
The same issue is when you click on: "Portfolio" then go to "Web" then click on the second webpage on the slider - images (VYTEK website). I am having the same problems with the links ("NEXT WEBPAGE", "PREVIOUS WEBPAGE" and the "HERE"). It looks fine at first, click on the link and click the back arrow, now the links are black and the underline is gone?
I have included the link below. If you view in Firefox, you will see the correct pages not problem. But look at it in IE8 and you will see my dilemmia.
http://jourisdictiondesigns.com/print3.html
http://jourisdictiondesigns.com/web3.html
I have also included a IE8 CSS page to fix the issues, but nothing seems to work. I have included the link to the IE8.css page.
IE8 CSS PAGE LINK: http://jourisdictiondesigns.com/css/ie8.css
VYTEK_WEBSITE.CSS LINK: http://jourisdictiondesigns.com/css/vytek_website.css
VYTEK_WEBSITE.HTML LINK: http://jourisdictiondesigns.com/vytek_website.htmlCSS Pseudo Classes (link states). There are 6 links states.
a (rules for all links)
a:link (unvisted link)
a:visited (visited link)
a:hover (on mouse over)
a:active (on click)
a:focus (on tab key or on click in IE)
If you define a rule for a:visited, you'll get better results when you hit the browser's back button.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Safari 8 radio buttons jumping around when clicked
When I click a radio button in the safari 8 browser, the radio button jumps te the left.
Anybody else has the same problem?When I click a radio button in the safari 8 browser, the radio button jumps te the left.
Anybody else has the same problem?
Maybe you are looking for
-
Adding the /etc/host.deny file like linux in solaris 10.
Dears, I need to add a file which will works like the file of /etc/hosts.deny of Linux in Solaris. If it is possible in the same manner please let me know that, and if it need some other trick to deny a specific host to access the system please tell
-
Team, Table T77RCF_SMASK has reference to T77RCF_SMG_ASM. When compared the two tables we found that following entries are missing in T77RCF_SMASK: 71 72 73 74 75 78 92 95 96 Can you please guide on what should be the entry for these in table T77RCF
-
Tool or framework to interact with OTM and Logistic Service Provider(LSP)
Hi, We are using Oracle Transportation Management (OTM) service for the transportation management. But to interact with the LSP(logistic service provider) We need some tool. Please suggest me some tool or stable framework that can interact with OTM a
-
Desktop running XP recognises router but won't con...
I have a Dell computer into which I installed a wireless network card about 8 years ago. It runs XP and was used to read emails until December 2014 when I changed from Sky Broadband to BT. After the change the computer recognised my secure broadband
-
How do i change my security settings so I can download an app
I was trying to down load an app that is not iTunes approved?? and it wont let me. I got some info about holding down the control button and opening it that way but it still came up with the same thing....i need to change my settings to allow it to o