|
Message Closed
modified 30-Jan-17 13:00pm.
|
|
|
|
|
You need to click on the link in the main part of his reply, which will lead you to the Java Tutorials. Or you could just use Google to do your own research.
|
|
|
|
|
happyvalentinesdaywishess.com wrote: suggest any website
www.codeproject.com is a pretty decent website for learning programming.
Speed of sound - 1100 ft/sec
Speed of light - 186,000 mi/sec
Speed of stupid - instantaneous.
|
|
|
|
|
Your username makes you look like a spammer. Please change it.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I created program where when user checks checkbox edit text is enabled, but when I check any of checkboxes nothing happens!!!
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
editText2 = (EditText) findViewById(R.id.editText_symbols);
editText3 = (EditText) findViewById(R.id.editText_numbers);
editText4 = (EditText) findViewById(R.id.editText_lowercase);
editText5 = (EditText) findViewById(R.id.editText_uppercase);
editText2.setEnabled(false);
editText3.setEnabled(false);
editText4.setEnabled(false);
editText5.setEnabled(false);
}
public void checkCheckBox(View view)
{
boolean checked = (((CheckBox)view).isChecked());
switch (view.getId())
{
case R.id.checkBox_uppercase:
if(checked)
editText2.setEnabled(true);
else
editText2.setEnabled(false);
break;
case R.id.checkBox_lowercase:
if(checked)
editText3.setEnabled(true);
else
editText3.setEnabled(false);
break;
case R.id.checkBox_numbers:
if(checked)
editText4.setEnabled(true);
else
editText4.setEnabled(false);
break;
case R.id.checkBox_symbols:
if(checked)
editText5.setEnabled(true);
else
editText5.setEnabled(false);
break;
}
}
modified 10-Jan-17 5:53am.
|
|
|
|
|
|
Try this
((CheckBox)view).setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean checked) {
switch (view.getId())
{
case R.id.checkBox_uppercase:
if(checked)
editText2.setEnabled(true);
else
editText2.setEnabled(false);
break;
case R.id.checkBox_lowercase:
if(checked)
editText3.setEnabled(true);
else
editText3.setEnabled(false);
break;
case R.id.checkBox_numbers:
if(checked)
editText4.setEnabled(true);
else
editText4.setEnabled(false);
break;
case R.id.checkBox_symbols:
if(checked)
editText5.setEnabled(true);
else
editText5.setEnabled(false);
break;
}
}
});
Late but hope this helps!
|
|
|
|
|
I want to track video portal uing j2ee by suscribe button not username and password.
plz anyone can send me the source code otherwise send me the link 
|
|
|
|
|
|
Hi,
1) I want to integrate Apple Pay on my website (so it's a Apple Pay - Web Integration), using the Braintree payment provider, JS as a client side language and Java as a server side language.
I'm having difficulties creating a proper sandbox environment for my Apple Pay implementation Testing.
Followed the steps from the Apple docs but it seems they are not accurate :
-says to create a Merchant Id, one for sandbox and one for production (as far as I can see, at the moment of creating those 2, there's no way of telling that you want to use one for the development environment and the other for the production)
- after that, says to create a Certificate using the Merchant ID created before; if I sign in to my Apple Developer Account, I can see the 'Development' and the 'Production' sections, but when I try to create a sandbox/development certificate, Apple Pay is not available for it, only in the production section (see below images).
Is there a way to create a Sandbox / Development Apple Pay certificate, or are there any other ways to properly test the Apple Pay integration ?
2) I tried creating a sandbox user tester account from iTunes, but when I tried to login on Itunes on my Ipad which I'm using for testing, I get the following error: 'Itunes account creation not allowed. This Apple ID cannot be used with the Itunes Store at this time. Please try again later.' (I already verified my Apple ID and followed all the steps to activate the account, but without any success)
3) As I was trying to create Sandbox Apple Pay certificates I mistakenly created 2 for the production environment. Could I revoke them without any problems and create another ones ?
If you integrated Apple Pay on the WEB, I would highly appreciate any help, since I'm having such difficulty in simply setting up my testing environment.
Images - links:
https://i.stack.imgur.com/7aGer.png
https://i.stack.imgur.com/WEYPR.png
Thanks :)
|
|
|
|
|
You are more likely to get an answer to this on the Apple Pay website.
|
|
|
|
|
I was trying to solve a problem on techgig.It is the addition of two matrices, at last, i used to format the output.They need space in between every value without using single space in double cots (" ") and "\t" I am using (%-2d)for formating but it not helps.Tell me any suggestion??.
|
|
|
|
|
|
I have designed two HTML pages. One is Login page and Landing page. I have Javascript code for client side validation. so how do i import them into eclipse and use Servlet and JSP codes to connect and run the project. For database i used MySql workbench.
|
|
|
|
|
|
|
It's a link: click on it and the page will open.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
First create the servlet and then through the "doget" method
ad = request.getParameter("ad");//html input name
After insert database.. good luck
Java Developer
|
|
|
|
|
HOW ARE PACKAGES USED IN JAVA?
|
|
|
|
|
|
I am Newbie to Java programming. I have written the following code to add checkbox to a frame, but it doesn't appear on frame. There's no error when compiling..so can anyone please check and let me know how to add checkbox in frame?
import java.awt.*;
import java.awt.event.*;
public class CheckBoxTest {
private Frame f;
private Checkbox chk;
private CheckboxGroup cg;
CheckBoxTest()
{
f=new Frame();
cg=new CheckboxGroup();
chk=new Checkbox("Hello",cg, true);
f.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent we)
{
f.dispose();
}
});
f.add(chk);
f.setSize(300, 300);
f.setLayout(null);
f.setVisible(true);
}
public static void main(String[] args) {
new CheckBoxTest();
}
}
|
|
|
|
|
|
I want to prepare hotel reservation programme.
|
|
|
|
|
Well, go ahead - you have our permission.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Idjit vote reversed
Never underestimate the power of human stupidity
RAH
|
|
|
|