Language Selector Component Choice
Hi Everyone,
I have a Flash AS2 Pull-Down language selector for 11 languages that I use for Director 11, Authorware 7 and web pages. Now, time marches on and I must add 19 more languages. It will be too large for several of it use locations. I also re-work it for OEM versions where I add or delete a few languages. I need to remain with the AS2 for backwards compatibility. It won't fit with the new languages.
I am looking for examples, samples, ideas, free components and FLAs. I have 3 variables (4 if you count regions) that I pass/use/display to set and display localised content. I am really looking for a free spinning globe I can modify for regions and usability improvements tha tI may get requested to do. Can anyone help me?
I already detect the OS or browser language. I am using Flash CS3.
I have been looking at menus with submenus for regions, spinning globes (with regional hot spots), Trees, etc. for my new language selector. I am looking for pieces that I can ultimately take and create dynamically with lists or XML. I would like to create global regions. I have not found a good, free spinning globe I can use yet. I did find an example for making one using masks. It might cause issues with my large Authorware developed projects. Authorware seems to see undisplayed pieces of flash components and cause interaction problems. I would like to build a globe with all the UTF-8 codes in an XML reference the includes the Lang code, 1-3 locale lang. phrases, a region number and active state of language in the for the project.
Icons are best because they require little or no translations (and their associated font issues) - that is why the globe method is so attractive.
Thanks,
Jim Wiley
Thanks anyway.
This is a very stupid question and maybe for another post, but I couldn't try the class you posted here
http://forum.java.sun.com/thread.jspa?threadID=5203492
because I couldn't compile it because I downloaded the library and got the folder in for example here:
C:\Documents and Settings\Mis documentos\softsmithy-v20070520\softsmithy-v20070520\src\org\softsmithy\lib
From there I added them one by one to my own folder (the one where I have my Java projets and where I downloaded the class you posted) and then I started recompiling each class I was asked for when started compiling the class you posted, but there are so many classes in the library, each one needed to compile the other and I don't know how to compile all at once or include the whole library as a package..
Message was edited by:
drholiday
Similar Messages
-
I've recently upgraded my SDK to allow me encorporate other features such as the Text Layout Framework and such. To avoid issues i've had to make Flash player 10 as required, which is where the problems are occuring in my main project.
We knew the switch would cause some issues, and we now have a lovely batch of 100+ Warnings, that are all along the lines of
Type '[component name]' in CSS selector '[component name]' must be qualified with a namespace
all the warnings are on line locations that have no reference to the component they are talking about.. so i'm kinda stumped on what to do. Anybody else run into this issue before?
cheers<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" >
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
Button
// The warning
</fx:Style>
<s:Button label="提交" textAlign="center" height="30"/>
</s:Application>
I think you have use flex4.
Please change the code to :
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" >
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
s|Button
// ok. The is style for spark button }
mx|Button
//ok. The is style for halo button
</fx:Style>
<s:Button label="提交" textAlign="center" height="30"/>
</s:Application> -
Language selector works fine but just for one language
Hi, I've got this language selector working for english language, it is just a combo box and a text label, you select the language in the combo box and it shows the label translated to that language, it works for english, but now I'm trying to make it work for Spanish. This is done in the commented part of the text but when I try to compile that part I get the error in this line:
Locale localizacion2 = Locale.ES;
as if Locale.ES does not exist.
I listed all the Locales and there it is an ES locale, and i did the same for both languages, can't find what's wrong...
I defined the Datos_en_US.properties file containing just this line:
TextLabel = Hellooooooooo
and it works fine
and I also defined the Datos_es_ES for the spanish translation.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
public class Selector extends javax.swing.JFrame
private ResourceBundle resources;
private javax.swing.JLabel jEtSaludo;
private javax.swing.JButton jBtSaludo;
private javax.swing.JComboBox langList;
private javax.swing.JButton jbtAceptar;
private javax.swing.JLabel jlbGradosC;
public Selector() // constructor
{ //loadResources();
setSize(300, 200); // tama�o del formulario
setTitle("Language Selector"); // t�tulo del formulario
initComponents(); // iniciar controles o componentes
private void initComponents()//GEN-BEGIN:initComponents
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter()
public void windowClosing(java.awt.event.WindowEvent evt)
exitForm(evt);
jlbGradosC = new javax.swing.JLabel();
jlbGradosC.setText("TestLabel");
getContentPane().add(jlbGradosC);
jlbGradosC.setBounds(12,28,116,16);
String[] langStrings = { "Espa�ol", "French", "Dutch", "Chinese", "Ingles" };
langList = new JComboBox(langStrings);
langList.setSelectedIndex(4);
getContentPane().add(langList);
langList.setBounds(42,90,204,30);
jbtAceptar= new javax.swing.JButton();
jbtAceptar.setText("Aceptar");
getContentPane().add(jbtAceptar);
jbtAceptar.setBounds(195,20,85,26);
jbtAceptar.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent evt)
jbtAceptarActionPerformed(evt);
}//GEN-END:initComponents
private void jbtAceptarActionPerformed(java.awt.event.ActionEvent evt)
Object nombre;
nombre = langList.getSelectedItem();
System.out.println("Language--> " + nombre);
if(nombre.equals("Ingles")){
Locale localizacion = Locale.US; //en ingl�s
ResourceBundle mensajes = ResourceBundle.getBundle("Datos",localizacion);
jlbGradosC.setText(mensajes.getString("TestLabel"));
//else if(nombre.equals("Espa�ol")){
// Locale localizacion2 = Locale.ES;
// ResourceBundle mensajes2 = ResourceBundle.getBundle("Datos",localizacion2);
// jlbGradosC.setText(mensajes2.getString("TestLabel"));
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
System.exit (0);
}//GEN-LAST:event_exitForm
public static void main (String args[])
new Selector().setVisible(true);
}But when I list all the available Locales using this class, I get the list below where it is es_ES
import java.util.*;
import java.text.*;
public class Available {
static public void main(String[] args) {
Locale list[] = DateFormat.getAvailableLocales();
for (Locale aLocale : list) {
System.out.println( aLocale.toString() +" "+ aLocale.getDisplayName());
}zgsdfg
ar �rabe
ar_AE �rabe (Emiratos �rabes Unidos)
ar_BH �rabe (Bahr�in)
ar_DZ �rabe (Argelia)
ar_EG �rabe (Egipto)
ar_IQ �rabe (Iraq)
ar_JO �rabe (Jordania)
ar_KW �rabe (Kuwait)
ar_LB �rabe (L�bano)
ar_LY �rabe (Libia)
ar_MA �rabe (Marruecos)
ar_OM �rabe (Om�n)
ar_QA �rabe (Qatar)
ar_SA �rabe (Arabia Saudita)
ar_SD �rabe (Sud�n)
ar_SY �rabe (Siria)
ar_TN �rabe (T�nez)
ar_YE �rabe (Yemen)
hi_IN hind� (India)
iw hebreo
iw_IL hebreo (Israel)
ja japon�s
ja_JP japon�s (Jap�n)
ko coreano
ko_KR coreano (Corea del Sur)
th tailand�s
th_TH tailand�s (Tailandia)
th_TH_TH tailand�s (Tailandia,TH)
vi vietnamita
vi_VN vietnamita (Vietnam)
zh chino
zh_CN chino (China)
zh_HK chino (Hong Kong)
zh_TW chino (Taiw�n)
be bielorruso
be_BY bielorruso (Bielorrusia)
bg b�lgaro
bg_BG b�lgaro (Bulgaria)
ca catal�n
ca_ES catal�n (Espa�a)
cs checo
cs_CZ checo (Chequia)
da dan�s
da_DK dan�s (Dinamarca)
de alem�n
de_AT alem�n (Austria)
de_CH alem�n (Suiza)
de_DE alem�n (Alemania)
de_LU alem�n (Luxemburgo)
el griego
el_GR griego (Grecia)
en_AU ingl�s (Australia)
en_CA ingl�s (Canad�)
en_GB ingl�s (Reino Unido)
en_IE ingl�s (Irlanda)
en_IN ingl�s (India)
en_NZ ingl�s (Nueva Zelanda)
en_ZA ingl�s (Sud�frica)
es espa�ol
es_AR espa�ol (Argentina)
es_BO espa�ol (Bolivia)
es_CL espa�ol (Chile)
es_CO espa�ol (Colombia)
es_CR espa�ol (Costa Rica)
es_DO espa�ol (Rep�blica Dominicana)
es_EC espa�ol (Ecuador)
es_ES espa�ol (Espa�a)
es_GT espa�ol (Guatemala)
es_HN espa�ol (Honduras)
es_MX espa�ol (M�xico)
es_NI espa�ol (Nicaragua)
es_PA espa�ol (Panam�)
es_PE espa�ol (Per�)
es_PR espa�ol (Puerto Rico)
es_PY espa�ol (Paraguay)
es_SV espa�ol (El Salvador)
es_UY espa�ol (Uruguay)
es_VE espa�ol (Venezuela)
et estonio
et_EE estonio (Estonia)
fi fin�s
fi_FI fin�s (Finlandia)
fr franc�s
fr_BE franc�s (B�lgica)
fr_CA franc�s (Canad�)
fr_CH franc�s (Suiza)
fr_FR franc�s (Francia)
fr_LU franc�s (Luxemburgo)
hr croata
hr_HR croata (Croacia)
hu h�ngaro
hu_HU h�ngaro (Hungr�a)
is island�s
is_IS island�s (Islandia)
it italiano
it_CH italiano (Suiza)
it_IT italiano (Italia)
lt lituano
lt_LT lituano (Lituania)
lv let�n
lv_LV let�n (Letonia)
mk macedonio
mk_MK macedonio (Macedonia)
nl Neerland�s
nl_BE Neerland�s (B�lgica)
nl_NL Neerland�s (Holanda)
no noruego
no_NO noruego (Noruega)
no_NO_NY noruego (Noruega,Nynorsk)
pl polaco
pl_PL polaco (Polonia)
pt portugu�s
pt_BR portugu�s (Brasil)
pt_PT portugu�s (Portugal)
ro rumano
ro_RO rumano (Rumania)
ru ruso
ru_RU ruso (Rusia)
sk eslovaco
sk_SK eslovaco (Eslovaquia)
sl eslovenio
sl_SI eslovenio (Eslovenia)
sq alban�s
sq_AL alban�s (Albania)
sr serbio
sr_BA serbio (Bosnia y Hercegovina)
sr_CS serbio (Serbia y Montenegro)
sv sueco
sv_SE sueco (Suecia)
tr turco
tr_TR turco (Turqu�a)
uk ucranio
uk_UA ucranio (Ucrania)
en_US ingl�s (Estados Unidos)
en ingl�sThanks anyway.
This is a very stupid question and maybe for another post, but I couldn't try the class you posted here
http://forum.java.sun.com/thread.jspa?threadID=5203492
because I couldn't compile it because I downloaded the library and got the folder in for example here:
C:\Documents and Settings\Mis documentos\softsmithy-v20070520\softsmithy-v20070520\src\org\softsmithy\lib
From there I added them one by one to my own folder (the one where I have my Java projets and where I downloaded the class you posted) and then I started recompiling each class I was asked for when started compiling the class you posted, but there are so many classes in the library, each one needed to compile the other and I don't know how to compile all at once or include the whole library as a package..
Message was edited by:
drholiday -
Multiple values selection in Selector Component of Xcelsius
I wanted to select Mutiple values in Selector Component?I dont want List Builder..I wanted to Select multiple values in Combo box or List box..
Is there any way?
Thanks in Advance..
MiniHi Mini,
First of all check your version of Xcelsius ( open Xcelsius -> got to Help tab ->About Xcelsius check the version) if it is 5.3.3.0 then its ok...otherwise open the below link to download the HotFix-
[https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
the functionality is offered in latest Fix Pack only. After you install the fix, you will get an additional functionality of multiple series selection in Combo Box as well as in List Box.
Add as many series as you want for multiple value selection.
Good Luck. -
Hi! I'm trying to let the end user select the language of a menu, to do that first I developed this Selector class, that is only a form showing a label and a combo box where he selects the language, here he can select the language of the label I show in the form and works fine.
Now I need to use this combo box to select the language of the whole application, to try this I have another class named menu where I show the user some options (FILE, HELP,) when he selects FILE and then CONFIGURATION I show him the Selector class where he should select the language of the options.
The question is: where do I set the text of all the labels showed in the menu class? in the selector class? in the if else sentences of the selector class do I have to set the text of the menu class labels?
So If my application had 100 menues and submenues all of their labels should be set there?
I think that all the labels should be in one file (Datos in my example) but should all the labels of all the menues also be set in one class??
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
public class Selector extends javax.swing.JFrame
//private ResourceBundle resources;
private javax.swing.JLabel jEtSaludo;
private javax.swing.JButton jBtSaludo;
private javax.swing.JComboBox langList;
private javax.swing.JButton jbtAceptar;
private javax.swing.JLabel jlbTest;
public Selector() // constructor
{ //loadResources();
setSize(300, 200); // tama�o del formulario
setTitle("Language Selector"); // t�tulo del formulario
initComponents(); // iniciar controles o componentes
private void initComponents()//GEN-BEGIN:initComponents
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter()
public void windowClosing(java.awt.event.WindowEvent evt)
exitForm(evt);
jlbTest = new javax.swing.JLabel();
jlbTest.setText("TestLabel");
getContentPane().add(jlbTest);
jlbTest.setBounds(12,28,116,16);
String[] langStrings = { "Espa�ol", "French", "Dutch", "Catalan", "Ingles" };
langList = new JComboBox(langStrings);
langList.setSelectedIndex(4);
getContentPane().add(langList);
langList.setBounds(42,90,204,30);
jbtAceptar= new javax.swing.JButton();
jbtAceptar.setText("Aceptar");
getContentPane().add(jbtAceptar);
jbtAceptar.setBounds(195,20,85,26);
jbtAceptar.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent evt)
jbtAceptarActionPerformed(evt);
}//GEN-END:initComponents
private void jbtAceptarActionPerformed(java.awt.event.ActionEvent evt)
Object nombre;
nombre = langList.getSelectedItem();
System.out.println("Language--> " + nombre);
if(nombre.equals("Ingles")){
Locale localizacion = Locale.US; //en ingl�s
ResourceBundle mensajes = ResourceBundle.getBundle("Datos",localizacion);
jlbTest.setText(mensajes.getString("Etiquetaprueba"));
else if(nombre.equals("Espa�ol")){
Locale localizacion2;
localizacion2 = new Locale("es", "ES");
ResourceBundle mensajes = ResourceBundle.getBundle("Datos",localizacion2);
jlbTest.setText(mensajes.getString("Etiquetaprueba"));
else if(nombre.equals("Catalan")){
Locale localizacion3;
localizacion3 = new Locale("ca", "ES");
ResourceBundle mensajes = ResourceBundle.getBundle("Datos",localizacion3);
jlbTest.setText(mensajes.getString("Etiquetaprueba"));
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
System.exit (0);
}//GEN-LAST:event_exitForm
public static void main (String args[])
new Selector().setVisible(true);
import java.awt.event.*;
import java.util.ResourceBundle;
public class Menus extends javax.swing.JFrame
//ResourceBundle res = ResourceBundle.getBundle("Resources");
public Menus()
setSize(500, 300);
//String title = res.getString("TITLE");
this.setTitle("APPLICATION TITLE");
initComponents();
private void initComponents()
jmbarBarraDeMenus = new javax.swing.JMenuBar();
jmnuArchivo = new javax.swing.JMenu();
//String fi = res.getString("FILE");
jmnuArchivo.setText("FILE");
jmbarBarraDeMenus.add(jmnuArchivo);
jmbarBarraDeMenus.add(jmnuArchivo);
jmnuHelp = new javax.swing.JMenu();
//String hel = res.getString("HELP");
jmnuHelp.setText("HELP");
jmbarBarraDeMenus.add(jmnuHelp);
jmnuLang = new javax.swing.JMenu();
//String lang = res.getString("LANGUAGE");
jmnuLang.setText("ABOUT");
jmbarBarraDeMenus.add(jmnuLang);
jmnuAbrir = new javax.swing.JMenuItem();
//String op = res.getString("OPEN");
jmnuAbrir.setText("OPEN");
jmnuArchivo.add(jmnuAbrir);
jmnuConfigura = new javax.swing.JMenuItem();
//String co = res.getString("CONFIGURATION");
jmnuConfigura.setText("CONFIGURATION");
jmnuArchivo.add(jmnuConfigura);
jmnuConfigura.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jMenuConf_actionPerformed(e);
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter()
public void windowClosing(java.awt.event.WindowEvent evt)
exitForm(evt);
setJMenuBar(jmbarBarraDeMenus);
}//GEN-END:initComponents
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit (0);
void jMenuConf_actionPerformed(ActionEvent e) {
Selector dlg = new Selector();
dlg.setVisible(true) ;
public static void main (String args[])
new Menus().setVisible(true);
private javax.swing.JMenuBar jmbarBarraDeMenus;
private javax.swing.JMenu jmnuArchivo;
private javax.swing.JMenu jmnuHelp;
private javax.swing.JMenu jmnuLang;
private javax.swing.JMenuItem jmnuAbrir;
private javax.swing.JMenuItem jmnuConfigura;
}I don't understand, if I've got an application with 100 GUI classes, I don't see how does this work.
My 2 classes example I think could work to show my problem, in the Menu class when user hits in CONFIGIRATION I call the Selector class:
void jMenuConf_actionPerformed(ActionEvent e) {
Selector dlg = new Selector();
dlg.setVisible( true) ;
} in Selector class is where I define the different locales (one for each language) and the label for each one, so the Menu class never gets those locales, and if I had other 100 classes they would not notice that change.
Do I have to declare the CONFIGURATION option and all the other options in the Selection class? -
Questions about Selectors Component
Any idea which selectors component would allow users to select multiple items? I tried the Filter and/or Combo box, they only allow user to select one item from the drop-down list.
Thanks.Hi Blossom,
If you are trying to fetch the data in the dashboard using Query browser option, The useful component would be Query Prompt selector.
Apart from that for a static dashboard or other dynamic connections you could use Check box, List builder or Accordion menu as per your requirement.
Let me know if this information is helpful.
Regards,
Noopur -
i've read that to solve a problem that i have using virtualbox, i may use gnome-language-selector and enable "Enable support to enter complex characters".
where's gnome-language-selector on Arch? i've tried gconf-editor to enable this, but i couldn't find anything.
any suggestions?It looks like it's an ubuntu program. It seems that you can get it here: http://packages.ubuntu.com/source/hardy … e-selector.
-
Building custom Component -- choice of base class...
Hello,
I am building a customer component. The component will be a AJAX enable Grid.
I am not sure what base class would be the best.
I am planning on using the "UIComponentTag" as the base class of my tag file. Here is the declaration:
public class EbaAjaxGridTag extends UIComponentTag {
Let me know how-you all feel about this choice.
Cheers,
GodfreyYep, that's the right class. All JSF component tags inherit UIComponentTag (eventually in their hierarchy). I suppose there is UIComponentBodyTag, but you should make a custom renderer instead of writing the tag body from the tag class. In other words, you don't want UIComponentBodyTag.
It would also be ok if you wanted to extend another component tag (i.e. InputTextTag). This would give you access to the pre-existing attributes of that tag class. HOWEVER, you should be warned that these tag classes can change in future versions of JSF. So make sure you are willing to maintain it in the future before doing that.
CowKing -
I want the freedom to use the language of my choice
I live in Spain, thus my billing details are linked to a Spanish debit card. I don't want to communicate in Spanish. I want to have a choice about the language iTunes Store is comunicating with me (and App Store). I imagine this is due to common lack of knowledge how the EU works, but you have many expats of all different countries living in another country. Just because my IP address or VISA card is coming from one country that does NOT mean I want to communicate in language of that country. I have noticed many post about this on Apple discussion forums, how long do we have to wait until the big American brother (Apple) will get an idea that this is not working for their paying customers, and they loosing revenues. Give me the freedom to choose the language I want to use when buying your products!
These are user-to-user forums, they are not monitored by Apple and they don't read or reply to posts here (there are too many forums/threads/messages for that to happen). If you want to leave feedback for Apple then you can do so here : http://www.apple.com/feedback/
-
Language selector for resourcebundle
Hi! I was asked to internationalizate a lot of menues, and I'm stuck in how the user selects the language, in here
http://java.sun.com/docs/books/tutorial/i18n/intro/after.html
the language is passed as a parameter but I need the user to select it from a menu, in here
http://weblogs.java.net/blog/joconner/archive/2004/04/i18n_howto_just.html
i've found what i need but still with no user parameters and I can't find out how to select the language in a swing interface and pass it to the resourcebundleHi,
here is a small sample to give you a start:
import java.util.Locale;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComponent;
import javax.swing.SwingUtilities;
import org.softsmithy.lib.swing.LocaleCellRenderer;
import org.softsmithy.lib.swing.XDefaultListCellRenderer;
import org.softsmithy.lib.util.LocaleDisplay;
import org.softsmithy.lib.util.Locales;
public class LocaleSelectionTestFrame extends javax.swing.JFrame {
private Locale[] locales;
private Locale currentLocale = Locale.ENGLISH;
/** Creates new form LocaleSelectionTestFrame */
public LocaleSelectionTestFrame() {
initComponents();
locales = new Locale[] {Locale.ENGLISH,
Locale.FRENCH,
Locale.GERMAN,
Locale.ITALIAN,
new Locale("de", "CH"),
new Locale("fr", "CH"),
new Locale("it", "CH")};
localeBox.setRenderer(new XDefaultListCellRenderer(new LocaleCellRenderer()));
updateLocale();
updateModel();
setSize(300, 150);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
localeBox = new javax.swing.JComboBox();
getContentPane().setLayout(new java.awt.GridBagLayout());
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
localeBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
localeBoxActionPerformed(evt);
getContentPane().add(localeBox, new java.awt.GridBagConstraints());
pack();
}// </editor-fold>
private void localeBoxActionPerformed(java.awt.event.ActionEvent evt) {
currentLocale = (Locale) localeBox.getSelectedItem();
updateLocale();
updateModel();
private void updateLocale() {
Locale.setDefault(currentLocale);
JComponent.setDefaultLocale(currentLocale);
SwingUtilities.updateComponentTreeUI(this);
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new LocaleSelectionTestFrame().setVisible(true);
private void updateModel() {
Locale[] l = Locales.sort(locales, LocaleDisplay.NAME, currentLocale);
DefaultComboBoxModel model = new DefaultComboBoxModel(l);
model.setSelectedItem(currentLocale);
localeBox.setModel(model);
// Variables declaration - do not modify
private javax.swing.JComboBox localeBox;
// End of variables declaration
}Note: it uses some utility classes of my open source library:
Homepage:
http://www.softsmithy.org
Download:
http://sourceforge.net/project/showfiles.php?group_id=64833
Source:
http://sourceforge.net/svn/?group_id=64833
http://softsmithy.svn.sourceforge.net/viewvc/softsmithy/trunk/lib/src/org/softsmithy/lib/
-Puce -
Post Author: dcp013
CA Forum: Xcelsius and Live Office
A have a Label Based Menu using the Status List option to Insert Data. By defult one cell is always set to 1 (there is not an option to set the default value to "none"). Is the any way to dynamically set all cells to zero without user action?Thanks for your answer.
I make a selection in a table and the first time it works as you'd expect,
but subsequent selections on different JTables don't...
I still get the information from the very first selection...
So apparently I'm missing something..
Here's what I've got:
if(e.getSource() == popupIngredientItem)
JTable t = ((JTable)e.getSource());
String confirm = "Print details for item: ";
int r,c;
r = t.getSelectedRow();
c = t.getSelectedColumn();
String selectedItem = t.getModel().getValueAt (r,c).toString();
int yesNo = JOptionPane.showConfirmDialog(null, confirm + selectedItem +
" ?" , "Confirm Print Item", JOptionPane.OK_CANCEL_OPTION);
} -
Hey, so I've made a switch to E17 (community/e-svn from), and found that a long known bug doesn't let me use the keyboard layout switcher tool. Google gives nothing, the ticket is open. I just wanted to ask, has anyone here stumbled upon this problem and solved it?
Thanks anyway.
This is a very stupid question and maybe for another post, but I couldn't try the class you posted here
http://forum.java.sun.com/thread.jspa?threadID=5203492
because I couldn't compile it because I downloaded the library and got the folder in for example here:
C:\Documents and Settings\Mis documentos\softsmithy-v20070520\softsmithy-v20070520\src\org\softsmithy\lib
From there I added them one by one to my own folder (the one where I have my Java projets and where I downloaded the class you posted) and then I started recompiling each class I was asked for when started compiling the class you posted, but there are so many classes in the library, each one needed to compile the other and I don't know how to compile all at once or include the whole library as a package..
Message was edited by:
drholiday -
Possibility to change number delimitors according to language or choice
I would like to see a possibility to change number delimitors according to language or by choice after they have been inserted or content placed. Example: if figures come in with commas like 22,33 and you need periods like 22.33 (or the other way around), it ought to be possible to select that or any part of a a table or an entire table and just choose which delimitor in the figure you want. Or that it changed automatically according to chosen language when language is set for the selected text (as language rules for which to use are different depending on the language), regardless of how it was formatted when typed or placed.
It would require you to "tag" every 'real' number in your text, wouldn't it?
I would not trust an algorithm that makes the distinction for me. If I see decimal delimiters possibly used the wrong way, I search the entire document for both (digit).(digit) and (digit),(digit); then I make a judgement call on whether "n = 31.245" is about a large number of patients, and "p < 1,000" is a probability. I saw both of these in one single book to-day -- in the middle of correctly formatted numbers.
Then again, tables could be enhanced to act like real miniature spreadsheets. -
I have a list of company names which I get from a rule... and from the end user pages I need to implement the selector component (IDM 7.1) to look up the company name from this list...
Can anybody post some sample code or point me in the right direction?
Thanks in advance...Hi redindian,
To display the values make sure u use the allowedValues Property. Hope this code helps
<Field name='accounts[Lighthouse].Company'>
<Display class='Select'>
<Property name='title' value='Company'/>
<Property name='noNewRow' value='false'/>
<Property name='allowedValues'>
<rule name='GetCompanyNames'/>
</Property>
</Display>
</Field> -
Purchase OS X.?.? and choice of language
I browsed through several non-English speaking Apple Shops to plan the purchase of my next computer. The delivery of OS X is proposed in the language of the country, or alternatively in International English.
I always thought that OS X is delivered in one version, and that the user can choose the language of his choice at the moment of the installation.
Advise welcome.
Patrick
Powerbook G4 1GHz 512 Mb RAM, IMAC G5, 2 GHz Mac OS X (10.4.9)your feedback is clear enough amd re-assuring, but
why then propose the 2 choices to the
customer...domestic language, or English?
Not all the world works in English, but Apple is a US corporation and its prime language is English.
is it to facilitate the life of the user who may not
know the first word of english and would be incapable
of installing the freshly purchased software?
I would think so. If you look at some of the languages that come ready to roll, like Korean, Russian, Japanese and Chinese, some of those native speakers may not be able to function in a second language (English) in as sophisticated a way as we might.
Maybe you are looking for
-
Creative Cloud for teams - a problem with the license.
Hi, I bought on 25.04.2013 CC licenses for teams (for 12 months). In my account (in subscriptions) I can see the end date 02/06/2014 (only 9 months). According to the license shall be for 12 months to 24/04/2014. Why? Regards
-
hi . just yesterday i update my itune to version 10.5 but when ever i coonect to itune store it is not showing any application there that i can purchae . what shall i do .
-
New source system for HR extractors - easy way to change source system?
Hi Our HR module is going to be seperated from the ECC module and thereby placed on a new server and have its own source system. In BI we have to handle this as well so that all 7.0 transformations and 3.5 transferrules etc. have to be mapped to the
-
Deleting songs and scanning for broken links.
I've encountered a couple weird problems today. I've read through every area of the preferences, right-clicked everywhere I can think of in the iTunes window to see what pops up in those menus, and can't find the solutions to my problems. 1) It used
-
Tape marked as offsite ready due to a single protection group left behind on tape
Hi, we're using DPM2012, we have it on two nodes, the first backs up to disk and then offsite to the second server which goes to disk + tape. In general tape colocation works however I have a slight issue; At the moment we are running close to the nu