John_165 44 Junior Poster

aeb59cf1-d7da-4116-bd96-1a3aea4163ec.jpeg

This is so me

John_165 44 Junior Poster

Working from home until 31 March.

John_165 44 Junior Poster

Hello :)

John_165 44 Junior Poster

Why not call banker?

John_165 44 Junior Poster

What are all num referring to ?

class Sample {
  int num;

  void method() {
    num = 1;
    int num = num = 2;
    num = 3;
  }
}
John_165 44 Junior Poster

Get well soon Dani and take care.

John_165 44 Junior Poster

Welcome on board, rabeccaruffin :)

John_165 44 Junior Poster

There must be a stacktrace. Paste the stacktrace here if possible.

John_165 44 Junior Poster

Hi Muhaimin, welcome to be a part of member here !

John_165 44 Junior Poster

Hi Stefan, welcome back !

What is your status now? Have you received push notification ?

John_165 44 Junior Poster

Possible show us Lab Task 2 ?

John_165 44 Junior Poster

Sailormoon XD

John_165 44 Junior Poster

Hi,

Are you trying to connect with MySQL? Have you successfully connected your java app with MySQL?

John_165 44 Junior Poster

Hi ayo,

welcome aboard !

John_165 44 Junior Poster

Hi Hasan,

welcome aboard !

John_165 44 Junior Poster

welcome aboard alfredz

John_165 44 Junior Poster

Can you post completed code here?

John_165 44 Junior Poster

There is one button called Watch Setting in CodeRanch which has 3 options for user to choose

15648125207732914.png

Let say If I have interested on Android forum, I can click that Watch Setting button and choose Watch for new topics in this forum. So everytime there are new posts created, I will receive an email notifications.

DaniWeb so far don't have such feature right?

John_165 44 Junior Poster

Hi,if I have interested on one of the forum, example post which has Java tag, can I receive notification if someone is posting on that forum?

John_165 44 Junior Poster

Can you show us the code you have tried?

John_165 44 Junior Poster

I not really familar with C++, but the error seems like you trying to return a value in void function, which is illegal.

Try replace the void with the return value datatype.

float Saltax::get() {
    cout << "Enter the salary:";
    cin>>x;
    return x;
}

Don't forget to change this

float get();

Also, I don't think void main() is allowed in C++. Shouldn't it be int main() ?

John_165 44 Junior Poster

Maybe you need to install Java Advanced Imaging (JAI) as well.

John_165 44 Junior Poster

When we build an application, which layer should we start with?
From top (UI) to bottom(Data Layer) or bottom to top?

John_165 44 Junior Poster

@James, is there a way we can know whether the license allow us continue to use?

John_165 44 Junior Poster

affected?

John_165 44 Junior Poster

I making an android app which need to display data analysis in Gantt Chart.
I implement this library from https://github.com/PhilJay/MPAndroidChart and it runs smoothly in my app.

But what I'm worrying is if this library has been removed from github repo, will my app get effected?

John_165 44 Junior Poster

C Language is used to be considered as most powerful programming language.

Where you get such info?

John_165 44 Junior Poster

The bug haven't fixed.

John_165 44 Junior Poster

Your class is already extend to JFrame. So you don't need to create a new JFrame instance.

public class BusPayment extends JFrame {

    private JButton paynow;
    private JButton cancel;
    private JComboBox<String> jComboBox1;
    private JFrame frame;
    private JLabel label1, label2, label3, label4;
    private JPanel panel1, panel2, panel3;
    private JRadioButton destination1;
    private JRadioButton destination2;
    private JRadioButton destination3;
    private JRadioButton destination4;
    private JRadioButton destination5;
    private JRadioButton destination6;
    private JComboBox company;
    private JTextField passengerstextfield;

    public BusPayment() {
        buildPanel();
    }

    private void buildPanel() {
        panel1 = new JPanel();
        label1 = new JLabel("Welcome to the Express Bus Ticketing System! ");
        panel2 = new JPanel();
        label2 = new JLabel("Number of Passenger(s): ");
        company = new JComboBox();
        passengerstextfield = new JTextField(8);
        label3 = new JLabel("Selected Bus Company: ");
        final JComboBox<String> comp = new JComboBox<>(new String[]{"Company1", "Company2", "Company3", "Company4"});
        panel3 = new JPanel();
        label4 = new JLabel("Select a ticket: ");
        destination1 = new JRadioButton("Destination 1 RM15");
        JRadioButton des1 = new JRadioButton(Double.toString(15));
        des1.setSelected(true);
//        des1.add(des1);
        destination2 = new JRadioButton("Destination 2 RM18");
        JRadioButton des2 = new JRadioButton(Double.toString(18));
        des2.setSelected(true);
//        des2.add(des2);
        destination3 = new JRadioButton("Destination 3 RM15");
        JRadioButton des3 = new JRadioButton(Double.toString(15));
        des3.setSelected(true);
//        des3.add(des3);
        destination4 = new JRadioButton("Destination 4 RM12");
        JRadioButton des4 = new JRadioButton(Double.toString(12));
        des4.setSelected(true);
//        des4.add(des4);
        destination5 = new JRadioButton("Destination 5 RM16");
        JRadioButton des5 = new JRadioButton(Double.toString(16));
        des5.setSelected(true);
//        des5.add(des5);
        destination6 = new JRadioButton("Destination 6 RM13");
        JRadioButton des6 = new JRadioButton(Double.toString(13));
        des6.setSelected(true);
//    des6.add(des6);
        paynow = new JButton("Proceed");
        paynow.addActionListener(new PayNowListener());
        cancel = new JButton("Cancel");
        cancel.addActionListener(new CancelListener());

        panel1.add(label1);
        panel2.add(label2);
        panel2.add(passengerstextfield);
        panel2.add(label3);
        panel2.add(company);
        panel3.add(destination1);
        panel3.add(destination2);
        panel3.add(destination3);
        panel3.add(destination4);
        panel3.add(destination5);
        panel3.add(destination6);
        panel3.add(paynow); …
John_165 44 Junior Poster

Does the Momo still appear on Youtube?

John_165 44 Junior Poster

Yes, I have received email now. Thanks

John_165 44 Junior Poster

Hi All,

Thanks for the reply. I have tested and it works fine.
I will share the screen shot next time if this issue happened again.

Thanks.

John_165 44 Junior Poster

Testing

public static void main(String[] args){
       System.out.print("Testing");
}
John_165 44 Junior Poster

I got null pointer exception because you did not initialize frame.

frame = new JFrame();

Geanna Afera commented: Oh I see. Is there anything else that is wrong in my code? +0
John_165 44 Junior Poster

We need to see your code in order to help

John_165 44 Junior Poster

Parents please be aware and very cautious of what your child watches on YouTube and KIDS YOUTUBE. There is a thing called ‘Momo’ that’s instructing kids to kill themselves, turn stoves on while everyone is sleep and even threatening to kill the children if they tell their parents!!!

download.jpeg

John_165 44 Junior Poster

Are there any differencies between these two code ?

    if (!a.equals("")) {
                editDate.setText(a)
     }

and

  if (a!="") {
        editDate.setText(a)
    }
John_165 44 Junior Poster

When posting code, I get error

begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not be used anywhere else.

John_165 44 Junior Poster

And who is the youngest member here ?

John_165 44 Junior Poster

I have changed my email from Hotmail to gmail, but still not receive any email .

John_165 44 Junior Poster

Uuh, why refuse ?

John_165 44 Junior Poster

Or I'm the only one who face this ?

John_165 44 Junior Poster

Recently I realized that I not receive any email notification from DaniWeb. When I check on the User Settings, I saw this alert message

We have been having problems emailing you. Has your email address changed? Please update your email address to begin receiving email from us again.

After I re-write my email, this message changed to

An email to verify your account has been sent to xxx@hotmail.com. Please click the link in the email to confirm your email address.

But when I check my mail, I don't receive any email from DaniWeb.

John_165 44 Junior Poster

thanks for the fix :)

John_165 44 Junior Poster

Yes, page 1 (Business Networking ) is fine.

Here the url after button continue to step2 of 2 clicked.

John_165 44 Junior Poster

Really?!?! That's what happens when you click on page 2?

Yes

John_165 44 Junior Poster

remember to click Continue to Step 2 at the bottom of the form.

Oops!
Your user profile does not have sufficient privileges.

John_165 44 Junior Poster

There are Complementary Goals in profile page. Where can I find the list of goals and what does this used for ?

John_165 44 Junior Poster

Welcome home :D

John_165 44 Junior Poster

Hi @Akshay_15,

Why not post your question as a new topic instead of commenting on an old post here ?