Pop Up Menu in Forms 6.0 on Web
Can Popup menu working in developer 6.0
on the web. Because in my forms it doesn't
work.
My configuration is
Forms 6.0 Patch 5.0
JInitiator 1.1.7.18
OAS 4.0.8
Thanks for the answer
We were able to solve the problem. Registry.dat file needs to be modified to incorporate the following parameters
- default.icons.iconpath - where we have to specify the virtual directory where the files are located
- default.icons.iconextension=gif
Rajesh
Similar Messages
-
Hi there,
I am stuck with a pop up menu, not displaying correctly the columns, when it launches the designated report - via oracle forms and is there any way to ensure that the items displayed on the form are displayed the same way in a report through the pop up menu?
Example :
ets say on the screen(oracle forms) if you see "Name, place, animal, thing" and when you click on block report all(block report all is the pop up menu on my form), I am seeing "place,animal,thing,name" as opposed to "Name, place, animal, thing" . Is there any way to ensure consistency.
Please help.
Thanks in advance
SSorry, but i didn't get your requirement? What is "Name, place, animal, thing" is this the order of items shown in your form, or is it the order of records queried into your form?
And what is the thing you want get the same sorting for. Is it the same set of data to be displayed in the report. If its for sorting data, you will have to provide an ORDER BY both on your forms-block and your reports-query. -
Using a conditional pop-up menu for creating an order form...
I am trying to create an order form on Numbers (version 2.0.1) using my iPad. My idea is to create a pop-up menu that would contain a number of products (about 50 or so). I'd copy this pop-up menu on all the cells in the column under "Description". That part is no problem. BUT ... ideally when a product is selected from the pop-up menu, I would like for its price to automatically populate the corresponding cell under "Unit Price". Obviously the various products will have various prices. For example, I might have three products listed as "Assorted Miniatures" which cost $5 each; "Animal Pot" which costs $10; and "Geometric Pot" which costs $15. Can this be done???
If and when that is accomplished, then I presume I can easily apply the basic formulas to get total amounts. All of this means that once completed the only thing I really need to do is select products and then all the pricing and total amounts are automatically listed and calculated. Can someone assist? I have a show coming up this weekend and I hope to fill out lots of order forms!!! :-) Thank you!!!MicMac22,
Here is my take. Lookup table as Wayne suggests.
Popup menu is a great idea.
description
quant
unit price
total Amt
Item 2
$2.00
Item 1
$1.00
My entry table would look like yours.
item
price
item 1
$1.00
item 2
$2.00
item 3
$3.00
Table 2 is your lookup table.
The formula in your entry table unit price is pasted into row 2 and copied down.
IFERROR(OFFSET(Table 2::$A$1,MATCH(A2,item,0)−1,1,,),"")
This says find the match of entry in A2 in item column in table 2 return the value in the column 1 over. If error return nothing ("").
Will this work for you?
Q -
Adobe Fireworks cs5 pop up menu stile benutzerdefiniert
Hallo,
habe alles gemacht was in der Hilfe geschildert wird doch ich kann trotzdem nicht im pop up menu editor meinen eigen stil auswählen und habe nur die standard schwartweißen zur verfügung
vielleicht könntet Ihr mir weiter helfen
DANKE im Voraus
Hinzufügen benutzerdefinierter Menüstile zum Popupmenü-Editor
Legen Sie fest, welcher Zellenstil verwendet werden soll, wenn „Grafik“ als Zellenstil ausgewählt ist. Weitere Informationen zu Stilen finden Sie unter Erstellen und Löschen von Stilen.
Hinweis: Der genaue Speicherort des Ordners „Menu Bars“ ist abhängig vom jeweiligen Betriebssystem. Weitere Informationen finden Sie unter Arbeiten mit Konfigurationsdateien.
Wenden Sie eine beliebige Kombination aus Strich, Füllung, Textur und Live-Filtern auf ein Objekt an und speichern Sie es im Bedienfeld „Stile“ als neuen Stil.
Wählen Sie den neuen Stil im Bedienfeld „Stile“ aus und wählen Sie dann in demselben Bedienfeld im Optionsmenü die Option „Stilbibliothek speichern“ aus.
Suchen Sie den Ordner „Menu Bars“ auf Ihrer Festplatte, geben Sie der Stildatei, falls gewünscht, einen anderen Namen und klicken Sie auf „Speichern“.All Active content on a page will always rise to the top, so
to speak,
including Flash, certain form elements, Java applets, and
Active X controls.
This means that each of these will poke through layers. There
is not a good
cross-browser/platform reliable way to solve this issue, but
if you can be
confident in your visitors using IE 5+ or NN6+, then you can
use the Flash
wmode parameter.
MM articles:
http://www.macromedia.com/support/flash/ts/documents/flash_top_layer.htm
http://www.macromedia.com/support/flash/ts/documents/wmode.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"sonneym" <[email protected]> wrote in
message
news:e3tgtr$kbb$[email protected]..
> hi,
> I want to have a page layout like adobe.com. Fireworks
Pop up menu on top
> and
> flash swf file beneth it, but my Fireworks css pop up
menu is hidden by
> flash
> swf file embeded when I bring it all together in
Dreamweaver.
> I guess this is because embeded files superceed the css
z-indexing but how
> do
> I overcome this isue. As I can see it can be done at
adobe.com.
> -
TO ADD A CUSTOM ENTRY IN RIGHT CLICK POP UP MENU IN ORACLE HRMS FLEX FIELDS
We are building a custom help for Oracle HRMS. For this I need to add a custom Help entry in the right click pop up menu. I did this by adding the code APP_POPUP.INSTANTIATE('POPUP10','Custom Help',TRUE,'LINE') in the APPCORE lib. After this change the right click menu shows the new entry 'Custom Help' when user right clicks in any of the form but the new entry Custom Help' doesn't show up when I right click in flexfields. I am sure I need to do some thing else for flex fields.. Does any one have any idea on this ?
You have to refer to the Current Form, Current Block , Current Item so that the menu appears only in the form where you want to see.
-
Fireworks pop up menu and flash
hi,
I want to have a page layout like adobe.com. Fireworks Pop up
menu on top and flash swf file beneth it, but my Fireworks css pop
up menu is hidden by flash swf file embeded when I bring it all
together in Dreamweaver.
I guess this is because embeded files superceed the css
z-indexing but how do I overcome this isue. As I can see it can be
done at adobe.com.All Active content on a page will always rise to the top, so
to speak,
including Flash, certain form elements, Java applets, and
Active X controls.
This means that each of these will poke through layers. There
is not a good
cross-browser/platform reliable way to solve this issue, but
if you can be
confident in your visitors using IE 5+ or NN6+, then you can
use the Flash
wmode parameter.
MM articles:
http://www.macromedia.com/support/flash/ts/documents/flash_top_layer.htm
http://www.macromedia.com/support/flash/ts/documents/wmode.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"sonneym" <[email protected]> wrote in
message
news:e3tgtr$kbb$[email protected]..
> hi,
> I want to have a page layout like adobe.com. Fireworks
Pop up menu on top
> and
> flash swf file beneth it, but my Fireworks css pop up
menu is hidden by
> flash
> swf file embeded when I bring it all together in
Dreamweaver.
> I guess this is because embeded files superceed the css
z-indexing but how
> do
> I overcome this isue. As I can see it can be done at
adobe.com.
> -
Hi All,
I am building a form and would like to create a pop down menu on the left (and ideally with the options being colour boxes boxes but this does not seem possible), and then have three text separated text lines on the right of the pop down menu for notes related to the pop down choices.
Do you know if this is possible?
Thanks,
MattIt sounds like you're creating the form in FormsCentral. You have limited options in the FormsCentral designer as far as layout. You can place multiple fields on a line, or one field per line. If you create the design/layout in a program like InDesign or Word, generate a PDF, and add the fields form in Acrobat, you have complete flexibility over the placement of the fields.
The items in a dropdown field are limited to text that are all the same color. -
Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?
Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?
BM,
Pop-Up menu format is not dynamic. It is created in the Cells Inspector and can't be modified contingent upon the state of other cells.
You could program a table to list the options available for the previous selection, but it wouldn't be in the form of a Pop-Up.
Jerry -
Using COUNTIF on time values in pop-up menu (employee schedule template)
I have modified the Numbers employee schedule template to my liking and it works very well. I would like to add a column to the beginning which shows, at a glance, how many people I have scheduled for AM shifts and PM shifts on a given day. My AM shifts start at 9:00 AM and my PM shifts end at 6:30 or 8:30 PM.
So I thought I could use COUNTIF, but after I set the array, I cannot get the condition right to return anything except "0". How do you make it detect the appropriate times? The times in each cell for In and Out times are selected using a pop-up menu, just like the template.
Here is what I tried: =COUNTIF(E3:AE3,"9:00 AM")
What should the condition be to return a proper count?ac,
You shouldn't feel badly about having trouble with this template. It is a rather tricky one. The values in the Pop-Up menus are Date/Time values. That is to say, they have year, month, day, hour and minute components, even if only the hours and minutes are displayed. So if you only compare to the hours and minutes, you will never get a match.
I don't know if you have experienced this yet, but when you changed the Pop-Up menu content, you probably entered the current year, month and day unknowingly and will have trouble doing math against the Pop-Up content that was originally in the template.
My suggestion in your case would be to convert the time references to decimal hours before doing a comparison. For instance, if the time you wish to compare to is in cell C4, you could extract the decimal hours with =HOUR(C4)+MINUTE(C4)/60
Remember that the hours will reflect a 24-hour day, so times in the afternoon will run from 12.0 to 23.99...
Then after converting to decimal, instead of using "9:00 AM" for the COUNTIF criteria, use 9.
There are probably ways to do this using the Duration format as well, but I prefer the decimal hours.
Hope this helps.
Jerry -
I am repeatedly told to upgrade my version of Firefox.
Each time I attempt this, whether I disable my anti-virus software (AVG) or not, I get a pop-up menu telling me the download was completed but I still seem to be on the 3.0 version.You appear to have upgraded to a supported version. I will also attempt to answer your other question. [/questions/885242]
-
I had a power failure and then began getting a message that the printer (Canon Pixma 610) was not detected. So, I unplugged it from the computer, restarted the computer and no change. The printer was still showing as the default printer, but not being detected. So I deleted the printer and then tried to reinstall it. However, when I clicked on the + sign to reinstall nothing came up. The screen was blank with no printer choices. I went to the Canon website to try and download the driver and received this message: There is no driver for the OS Version you selected. The driver may be included in your OS or you may not need a driver. I would appreciate any help...
MSG2014 wrote:
I finally contacted Canon and they informed me that my printer is not compatible with Maverick
As Greg stated, the Canon support person is simply referring to what they see on the web and knosw nothing about Mac's. The reality is that the v10.8 driver will work on 10.9. You just may need to get past Gatekeeper to install it. So here is a link to the v10.8 driver. If you get a message stating that the driver is not signed and cannot be installed, then this is Gatekeeper blocking it. So to install it, right click (or Control-click) on the installer and select Open from the pop-up menu. Now you will have the option to install.
The second issue is the printer not appearing in the Add printer window. The USB cable is often the cause as suggested already. Also USB hubs can be a cause. To check if the Mac can see the printer, open System Information and select USB in the left column. The top right pane will show all the USB busses in your Mac. The MP610 should be listed under one of these busses. If it is not present, then try another USB cable and/or another USB port on the Mac. Until you see the MP610 in this view, you will not be able to add the printer. -
Pop up menu on right clicking an image?
Hello,
I am new to LabWindows/CVI.
Requirement: "To get a pop-up menu on right clicking on image"
Right now, I display my images in window numbers (0 - 15). Is it possible to be able to get a pop-up menu on right clicking an image window. If yes, how? If not, could you please suggest other methods to achieve this task? Should I display the image in a separate parent panel for example? How could I do this?
Any help would be great.
CheersI would use the code generator for right click event. then fill it up with whatever code you want under right click case. You can access these when you double click your UIR file, then on the top of the page click Code\Preferences\Default... then choose desired events for picture then go to Code\Generate\all callbacks and skip through the ones you don't want to be replaced.
-
Keyboard shortcut to open a cells pop-up menu and select from list of options.
I guessed Option-Return would be the shortcut from this, as it typically lets you edit a cells contents, but no. Read the keyboard Shortcuts list in Numbers>Help but didn't see anything.
Hi ts,
Thanks for drawing my attention to this! Let's add some missing detail…
While "you just press spacebar" to open the pop-up menu, that won't select a menu item.
After you've opened the menu, 'you could press the first letter' of an entry, ( 'like every other pop-up list on Earth,') or you could press the down arrow to step down the list (and the up arrow to step up, if you went beyond the item you wanted to choose).
And you can change your mind; the menu will stay open until you confirm your choice (by pressing the space bar again, OR by pressing return OR by pressing enter).
Note that pressing the first letter will select the 'smallest' item name beginning with that letter. To move to another item name starting with that letter, you'll need to use the up or down arrow key (or the mouse).
Thanks again for posting. With luck, WideEyedPupil will still be monitoring this discussion, and will see these posts.
Regards,
Barry -
Need Help: JTable POP up menu in a CellEditor to display on a right click
This was from a previous post:
I am trying to make a POP menu in a JTextComponent that has a assigned JEditorPane for a HTMLDocument to make use of the HTMLEditorKit to allow modifying HTML by the POP up menu.
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import javax.swing.text.html.*;
import javax.swing.undo.*;
import javax.swing.border.*;
import javax.swing.filechooser.*;
public class SimpleTableDemo extends JFrame {
public SimpleTableDemo() throws Exception {
final JTable table = new JTable(new MyTableModel());
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
TableColumn fileColumn = table.getColumnModel().getColumn(2);
FileTableCellEditor editor = new FileTableCellEditor();
fileColumn.setCellRenderer(editor);
fileColumn.setCellEditor(editor);
JScrollPane scrollPane = new JScrollPane(table);
getContentPane().add(scrollPane, BorderLayout.CENTER);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
table.setRowHeight(100);
public static void main(String[] args) throws Exception {
SimpleTableDemo frame = new SimpleTableDemo();
frame.pack();
frame.setVisible(true);
class MyTableModel extends AbstractTableModel {
String[] columnNames = {"First Name","Last Name","HTML File"};
public Object[][] data;
MyTableModel() throws Exception
data = createArray();
private Object[][] createArray() throws Exception
Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
return data;
private Document createDoc(String url) throws Exception
File file = new File(url);
URL baseURL = file.toURL();
InputStream in = baseURL.openStream();
InputStreamReader r = new InputStreamReader(filterTag(in));
HTMLEditorKit kit = new HTMLEditorKit();
Document doc = kit.createDefaultDocument();
kit.read(r,doc,0);
return doc;
} // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
private InputStream filterTag(InputStream in) throws IOException {
DataInputStream dins = new DataInputStream( in);
ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
DataInputStream din = new DataInputStream(new BufferedInputStream(in));
while (din.available() > 0) {
String line = din.readLine();
String lline = line.toLowerCase();
if (0 <= lline.indexOf("<meta ")) // skip meta tags
continue;
bos.write( line.getBytes());
din.close();
return new ByteArrayInputStream( bos.toByteArray());
public int getColumnCount() {
return columnNames.length;
public int getRowCount() {
return data.length;
public String getColumnName(int col) {
return columnNames[col];
public Object getValueAt(int row, int col) {
return data[row][col];
public Class getColumnClass(int c) {
return getValueAt(0, c).getClass();
public boolean isCellEditable(int row, int col) {
if (col >< 1) {
return false;
} else {
return true;
public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
public JTextComponent jtext;
JEditorPane editor;
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = new HTMLDocument();;
private EventListenerList listenerList = new EventListenerList();
private ChangeEvent event = new ChangeEvent(this);
public FileTableCellEditor()
editor = new JEditorPane();
editor.setContentType("text/html");
doc=new HTMLDocument();
editor.addMouseListener(new MouseHandler());
editor.setEditorKit(kit);
editor.setDocument(doc);
editor.setEditable(true);
editor.setCaretColor(Color.RED);
getViewport().setView(editor);
setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column)
// System.out.println("has focus: "+hasFocus+", isSelected: "+isSelected);
if (isSelected)
table.editCellAt(row,column);
table.editCellAt(row,column);
return getTableCellEditorComponent(table,value,isSelected, row, column);
public Component getTableCellEditorComponent(JTable table,
Object value, boolean isSelected, int row, int column)
editor.setDocument((Document)value);
return this;
public boolean isCellEditable(EventObject anEvent)
{ return true;
public boolean shouldSelectCell(EventObject anEvent)
{ return true;
public void cancelCellEditing()
{ fireEditingStopped();
public boolean stopCellEditing()
{ return true;
public Object getCellEditorValue()
{ return null;
public void addCellEditorListener(CellEditorListener l)
{ listenerList.add(CellEditorListener.class, l);
public void removeCellEditorListener(CellEditorListener l)
{ listenerList.remove(CellEditorListener.class, l);
protected void fireEditingStopped()
{ Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2)
((CellEditorListener)listeners[i+1]).
editingStopped(event);
protected void fireEditingCanceled()
{ Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2)
((CellEditorListener)listeners[i+1]).
editingCanceled(event);
///////////createPopupMenu///////////////
protected JPopupMenu createPopupMenu()
JPopupMenu popup =new JPopupMenu();
popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.cutAction)).setAccelerator(null);
popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.copyAction)).setAccelerator(null);
popup.add(getTextComponent().getActionMap().get(HTMLEditorKit.pasteAction)).setAccelerator(null);
popup.addSeparator();
popup.add(getTextComponent().getActionMap().get("font-bold"));
popup.add(getTextComponent().getActionMap().get("font-italic"));
popup.add(getTextComponent().getActionMap().get("font-underline"));
//popup.add(getTextComponent().getActionMap().get("break"));
return popup;
public JTextComponent getTextComponent()
return jtext;
protected class MouseHandler extends MouseAdapter{
public void mouseReleased(MouseEvent me){
if(me.getButton()==MouseEvent.BUTTON3){
Point p=me.getPoint();
createPopupMenu().show((Component)me.getSource(),p.x,p.y);
}I got the pop up to work, I had to go back to and add a createActionTable editor that is a JEditorPane, vs the JTextComponent!
Here is the latest version:
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.HashMap;
import javax.swing.*;
import javax.swing.undo.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import javax.swing.text.html.*;
import javax.swing.undo.*;
import javax.swing.border.*;
import javax.swing.filechooser.*;
public class SimpleTableDemo extends JFrame {
public SimpleTableDemo() throws Exception {
final JTable table = new JTable(new MyTableModel());
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
TableColumn fileColumn = table.getColumnModel().getColumn(2);
FileTableCellEditor editor = new FileTableCellEditor();
fileColumn.setCellRenderer(editor);
fileColumn.setCellEditor(editor);
JScrollPane scrollPane = new JScrollPane(table);
getContentPane().add(scrollPane, BorderLayout.CENTER);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
table.setRowHeight(100);
public static void main(String[] args) throws Exception {
SimpleTableDemo frame = new SimpleTableDemo();
frame.pack();
frame.setVisible(true);
class MyTableModel extends AbstractTableModel {
String[] columnNames = {"First Name","Last Name","HTML File"};
public Object[][] data;
MyTableModel() throws Exception
data = createArray();
private Object[][] createArray() throws Exception
Object[][] data = {{"One", "Andrews", createDoc("file1.html")}
return data;
private Document createDoc(String url) throws Exception
File file = new File(url);
URL baseURL = file.toURL();
InputStream in = baseURL.openStream();
InputStreamReader r = new InputStreamReader(filterTag(in));
HTMLEditorKit kit = new HTMLEditorKit();
Document doc = kit.createDefaultDocument();
kit.read(r,doc,0);
return doc;
} // workaround for HTMLEditorKit.Parser, cant deal with "content-encoding"
private InputStream filterTag(InputStream in) throws IOException {
DataInputStream dins = new DataInputStream( in);
ByteArrayOutputStream bos = new ByteArrayOutputStream(10000);
DataInputStream din = new DataInputStream(new BufferedInputStream(in));
while (din.available() > 0) {
String line = din.readLine();
String lline = line.toLowerCase();
if (0 <= lline.indexOf("<meta ")) // skip meta tags
continue;
bos.write( line.getBytes());
din.close();
return new ByteArrayInputStream( bos.toByteArray());
public int getColumnCount() {
return columnNames.length;
public int getRowCount() {
return data.length;
public String getColumnName(int col) {
return columnNames[col];
public Object getValueAt(int row, int col) {
return data[row][col];
public Class getColumnClass(int c) {
return getValueAt(0, c).getClass();
public boolean isCellEditable(int row, int col) {
if (col < 1) {
return false;
} else {
return true;
public class FileTableCellEditor extends JScrollPane implements TableCellEditor , TableCellRenderer
JEditorPane editor = new JEditorPane();
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = new HTMLDocument();;
private EventListenerList listenerList = new EventListenerList();
private ChangeEvent event = new ChangeEvent(this);
HashMap<Object, Action> actions;
public FileTableCellEditor()
getContentPane();
editor.setContentType("text/html");
doc=new HTMLDocument();
editor.addMouseListener(new MouseHandler());
editor.setEditorKit(kit);
editor.setDocument(doc);
editor.setEditable(true);
editor.setCaretColor(Color.RED);
getViewport().setView(editor);
createActionTable(editor);
makeActionsPretty();
setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
public void makeActionsPretty(){
Action a;
a=editor.getActionMap().get(HTMLEditorKit.cutAction);
a.putValue(Action.SHORT_DESCRIPTION,"Cut");
a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('X',Event.CTRL_MASK));
a=editor.getActionMap().get(HTMLEditorKit.copyAction);
a.putValue(Action.NAME,"Copy");
a.putValue(Action.SHORT_DESCRIPTION,"Copy");
a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('C',Event.CTRL_MASK));
a=editor.getActionMap().get(HTMLEditorKit.pasteAction);
a.putValue(Action.NAME,"Paste");
a.putValue(Action.SHORT_DESCRIPTION,"Paste");
a.putValue(Action.ACCELERATOR_KEY,KeyStroke.getKeyStroke('V',Event.CTRL_MASK));
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column)
if (isSelected)
table.editCellAt(row,column);
table.editCellAt(row,column);
return getTableCellEditorComponent(table,value,isSelected, row, column);
public Component getTableCellEditorComponent(JTable table,
Object value, boolean isSelected, int row, int column)
editor.setDocument((Document)value);
return this;
public boolean isCellEditable(EventObject anEvent)
{ return true;
public boolean shouldSelectCell(EventObject anEvent)
{ return true;
public void cancelCellEditing()
{ fireEditingStopped();
public boolean stopCellEditing()
{ return true;
public Object getCellEditorValue()
{ return null;
public void addCellEditorListener(CellEditorListener l)
{ listenerList.add(CellEditorListener.class, l);
public void removeCellEditorListener(CellEditorListener l)
{ listenerList.remove(CellEditorListener.class, l);
protected void fireEditingStopped()
{ Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2)
((CellEditorListener)listeners[i+1]).
editingStopped(event);
protected JPopupMenu createPopupMenu()
JPopupMenu popup =new JPopupMenu();
popup.add(getActionByName(DefaultEditorKit.cutAction));
return popup;
protected class MouseHandler extends MouseAdapter{
public void mouseReleased(MouseEvent me){
if(me.getButton()==MouseEvent.BUTTON3){
Point p=me.getPoint();
createPopupMenu().show((Component)me.getSource(),p.x,p.y);
private void createActionTable(JTextComponent textComponent) {
actions = new HashMap<Object, Action>();
Action[] actionsArray = textComponent.getActions();
for (int i = 0; i < actionsArray.length; i++) {
Action a = actionsArray;
actions.put(a.getValue(Action.NAME), a);
private Action getActionByName(String name) {
return actions.get(name); -
ICal 5.0.3 Repeat pop-up menu not appearing
I created a new calendar and then copied events from the previous year into it. Now I'm trying to set events to repeat yearly, but when I pull up the event, I'm not getting the pop-up menu that allows me to reset the time or repetition. This problem only seems to happen in the events I copied from the previous calendar. Is there anything I can do, short of re-typing each event?
Using iCal 5.0.3, I used to see a "repeat" option for events on my MacBook Pro (OS X 10.7.5) and on my iPhone 4S (iOS 5.1.1), but the option has disappeared, both for new events and for existing events opened for editing. iCal on both the MBP on iPhone syncs to iCloud.
What could have happened to the "repeat" option?
Maybe you are looking for
-
My delete key is not working properly
I have a late 2010 MacBook Air that is running OS X 10.9.3 . Lately I have noticed that my delete key is now working as a backspace key. This is super annoying and I have tried googling the problem, but I haven't found a solution yet. Also, my top ro
-
Description Faulting Application Path: C:\Program Files\Safari\Safari.exe Problem signature Problem Event Name: APPCRASH Application Name: Safari.exe Application Version: 5.34.57.2 Application Timestamp: 4f982b5e Fault Module Name:
-
I click on the attach button and nothing happens.
-
2 Legitimate Unlocking Questions
I'm traveling abroad this summer (Greece, Israel, and Turkey) and need voice/data access while I'm there. I live in the U.S. and would love to take my iPhone with me but naturally can't because AT&T refuses to unlock it due to it being under contrac
-
Hi , Currently landscape is updated to Unicode, i'm getting blankspace after each character in the attachemnt. i have tested the same program on diffrent servers which is working properly. is this the unicode issue or help me out how to resolve the p