想设计一个java小程序,在文本框输入一个数,然后每一秒+1,求给完整代码

想设计一个java小程序,在文本框输入一个数,然后每一秒+1,求给完整代码,第1张

package com.demo

import java.awt.BorderLayout

import java.awt.Dimension

import java.awt.event.ActionEvent

import java.awt.event.ActionListener

import java.util.Timer

import java.util.TimerTask

import javax.swing.JButton

import javax.swing.JFrame

import javax.swing.JTextField

public class TimerTest {

private Timer timer

private JTextField field

private JButton button

private boolean flag = true

public TimerTest() {

timer = new Timer()

addview()

}

private void addview() {

JFrame frame = new JFrame("Timer test")

field = new JTextField()

field.setPreferredSize(new Dimension(0, 30))

button = new JButton("start")

button.setPreferredSize(new Dimension(100, 30))

button.addActionListener(new ActionListener() {

@Override

public void actionPerformed(ActionEvent e) {

if (flag) {

auto()

flag = false

button.setText("stop")

} else {

timer.cancel()

flag = true

button.setText("start")

}

}

})

frame.add(field, BorderLayout.CENTER)

frame.add(button, BorderLayout.EAST)

frame.setBounds(200, 200, 300, 60)

frame.setVisible(true)

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)

}

public static void main(String[] args) {

new TimerTest()

}

private void auto() {

timer.schedule(new TimerTask() {

@Override

public void run() {

int num = Integer.parseInt(field.getText().trim())

num += 1

field.setText(num + "")

auto()

}

}, 1000)

}

}

Fairy Tale http://224.cachefile26.rayfile.com/84db/zh-cn/preview/0a5205e4970b8137ebcce196b9bbede6/preview.mp3

i can`t hide http://224.cachefile8.rayfile.com/84db/zh-cn/preview/1cc832e244fe45ce28a48b58cb50f206/preview.mp3

抱歉我只找到这两首

一直喜欢Enya、Moya般飘幻的嗓音,从来没想过在国内也有同样的歌手。今天无意中在网上瞎溜达时,竟然发现一个上海的女歌手--钟茌所演绎的一首《12:44》,歌曲在开头营造出如同一段梦呓般的场景。她的声音像被蒙上了一层水汽随着音符飘荡,在抵达歌曲高潮处哽咽爆发,随即是一阵断裂的鼓声,场景随之破碎消失。一种无奈的心绪和不安感呼之欲出,整首曲子美伦美奂,惊喜之余下了她的《Easy World》这张专辑,相信喜欢飘的朋友们一定会喜欢的。

01.《12:44》

点击下载《Easy World》专辑

http://img.namipan.com/downfile/ac505f82a0e3748a7d767a3ec9ac78e68635f18002c25505/Zhong%20Chi-Easy%20%20World.rar

歌词:12:44

I’m confounded that I cannot

See where am I going after here

After I left this world.

You give out a hint to me

A code that I must find it first

Then turn on the channel

I drop into my blood

Float to the heart with the wave

To seek it

Seeing all my faces

Hearing all my voices

Feeling all my greed

(floating~ I am floating)

Then I’m cleared who am I

Someone is floating besides me

I hope this is a shadow of you

A shining shadow

You give out a hint to me

A code that I must find it first

Then turn on the channel

I drop into my blood

Float to the heart with the wave

To seek it

Seeing all my faces

Hearing all my voices

Feeling all my greed

(floating~ I am floating)

Seeing all my faces

Hearing all my voices

Feeling all my greed

(floating~ I am floating)

Then I’m cleared who am I

引用信息:************************************************************************************************************************************

《简单世界》是上海独立场牌SOMA公司发行的第一张唱片。由制作人嘉洋益西经过16个月的探寻与磨合才最终得以完成。这是一张概念性专集,以环保为理念。每一首歌都有一个主题,围绕在发生在我们身边的事物进行阐述,对于自然主义的追求和保护环境的呼吁在这喃喃的吟唱中得以传达。这张专集见证了国内音乐人的独立理念和对音乐形式的进一步探寻。整张专集无论封面的设计还是歌曲的制作和编曲都有很高的水准,包含了很丰富的国际化元素。

《Easy World》随着空旷的电音推进,用强烈的打击乐器结合在一起构成喧闹的背景,钟茌的声音变得坚定而高亢。当这种纯粹和原始的呼唤越来越强烈时,我们能否感觉到在人类的命运也越为岌岌可危。这是本能的呼唤,对简单世界的追求隐藏在每一个人的心中。

歌词:

I will stop your crazy work

I’ll lead you to easy world

Can’t you see they are looking for

Another day to paradise

I won’t leave you alone

And let this be the reason makes you failed

I am not another passenger in your life

To be a kite without the string

Then you will have nothing to slay

Who asked you must to be a murderer

(I will stop your crazy work)

Why can’t you be another kite?

(I’ll lead you to easy world)

To be a kite without the string

(Can’t you see they are looking for)

Then you will have a chance to paradise

(Another day to paradise)

I won’t leave you alone

And let this be the reason makes you failed

I am not another passenger~

I won’t leave you alone

And let this be the reason makes you failed

I am not another passenger in your life

《Fairy Tale》恍惚易碎的音乐背景,钟茌的声音在一片迷离电音中浮出水面,如冰凌般散烁而迷离,她带着仙气的低吟和轻叹.像穿梭在一面面冰墙上,诡异得如同仙境.你可以听到音韵间散落着幽悒而神伤的思绪,也可以感受到彷徨与迷失的心境.仿佛童话中失去家园的美人鱼。

歌词:

I’m in love I’m in love with you

So in love so in love with you

To carry you away

To leave her alone

You never belong to me

Don’t know how to take your sorrow

Don’t know how to be in fairy tale~ fairy tale

Just wanna make you follow

Just wanna be your hero~~ hero

(let me be there~ wait for me)

(let me take you out! Wait for me)

I’ll be there I’ll be there for you

(wait for me)

In the light in the night with you

(please let me with you~ go with you~)

Though still you are

Unable to mate my soul

(leave her alone)

(I’m) returning you back to home

(I’m) learning how to wipe your sorrow

I am taking you to fairy tale~~ fairy tale

Getting closer to your rescue

I am mean to be your hero~~ hero

《from the moon》缓慢而诚挚的女声贯穿于整个歌的结构。这首歌写的是一个居住在月球的女人以四季的角度表达离开地球的痛苦。歌曲有一种由低迷走向希望和前进的感觉。

歌词:

Turning to winter

How come I still see

somewhere in red

It’s burning your skin

You still hope they will wake up

Greens are not coming

Even it is already spring

She tried to escape

Finally was trapped

I can see your panic

tell your sorrow

hear your helpless groan

But I’m sorry they don’t even think of you

Then a light of goodness

from the east side

trying to get grow

Is it the time for me to

get back from the moon

Missing the feeling

(a kinda feeling)

Enjoy coolness of the summer

And now it’s all gone

(it’s all gone)

Even oceans are steaming

(steaming)

Wind just passed us by

(just pass by)

Nothing’s falling down from the trees

You don’t remember

(don’t remember)

What’s called golden fall

I can see your panic

(your panic)

tell your sorrow

(your sorrow)

hear your helpless groan

But I’m sorry they don’t even think of you

(think of you)

Then a light of goodness

from the east side

(east side)

trying to get grow

Is it the time for me to get back from the moon

(get back from the moon)

《I Can’t Hide》也是用琐碎的打击乐构成一个有些喧嚣的背景,钟茌Portishead式的吟唱和咒语似的男声采样的加入使这个曲子充满了异域氛围。

歌词:

There’s a voice

Keep telling me

You r trying

To escape from me

I didn’t believe

Until you are lying in the casket

I didn’t care until nothing can hold

Tell me what should I do?

I can’t hide from the pain of losing you

I can’t cry even being treated like a fool

Is the same voice

Invited you to be

Someone who

Only break me up

I can only get

The feeling you want me to have

Couldn’t find a way

To leave

This pain away

How can I leave the pain away?

I can’t hide from the pain of losing you

I can’t cry even being treated like a fool

I can’t hide from the pain of losing you

I can’t cry even being treated like a fool

(Om Ban Ja Sa Do Hum)

Om Ban Ja Sa Do Sa Ma Ya Ma Nu Ba La Ya

Ban Ja Sa Do De Lo Ba Di Tsa Ds Dso Me Ba Wa

Su Do Ka Yo Me Ba Wa Su Bo Ka Yo Me Ba Wa

Ah Nu Ro Do Me Ba Wa

Sa Wa SDi Ma Me Ja Ya TsaSa Wa Ga Ma Su Ja Me

Ds Dang SriYangGu Lu Hum Ha Ha Ha Ha Ho

Ba Ga Wen Sa Wa Da Ta Ga Da

Ban Ja Ma Me Mu Ja Ban Ja Ba Wa

Ma Ha Sa Ma Ya Sa Do Ah

(Hum Pa)

《Rain》是首颇具梦幻流行色彩的歌曲。这首歌说的是寻找水精灵的童话故事。低靡静谧的音乐背景,钟茌的声音在这也更显飘渺迷离,有如躲藏在雾气中吟唱的精灵,在幻觉般轻盈虚无的音效中喃喃自语。

歌词:

If I could set you free

I’d give up all my wishes

If I were to keep you here

Would you ever run away

In our dreams, we last forever

Frozen in time

Trapped in lies

In your cage, you surrender

(but)You can’t see

You can’t feel

RAIN RAIN RAIN

RAIN RAIN RAIN

RAIN RAIN Just fan your wings

I Prayed

If you would let me go

I would grant you life

Or would you just leave me be

In my desolation

In my dreams I soar above all

Unattached

Free to roam

In your eyes I see my pain

I can’t breath

I can’t feel

RAIN RAIN RAIN

RAIN RAIN RAIN

RAIN RAIN Just lead me be

Where you at

《Truth》是钟茌最满意的作品,灵感来源于《魔戒三部曲》。这首歌表达的是在人类的贪婪和欲望面前,真相就越难以被发觉。这首歌的节拍被迷雾环绕一般,带有工业的冰冷质感,着重突出了声音部分的感觉,十分悦耳。

歌词:

What you do may not be what you want ideally feedback

Stand on what you believe

may not be what you see

After all the truth is here

No one chase it anymore

It’s beautiful to see you’re clean

But we don’t

(I think we don’t I think we don’t I think we don’t)

We don’t leave

(we can’t leave we can’t leave)

We can’t leave the lord

And I need

(and I need)

I need you

Want you to follow me

(want you to follow me)

《And this is cut》是一首静谧而充满迷幻感的曲子,开始用了一段女声作为采样与曲中钢琴构造的阴郁氛围是这首歌的点睛之作。

歌词:

And This Is Cut

And This Is Cut

And This Is Cut

And This Is Cut

Free your mind

Start the night

Get between

Into the light

She’s there, you’ll meet her in someday

She’s left, and this is cut

Free your hand

Let her go to where she wants

Until she wants to come back

You’ll be there

She’s there, you’ll meet her in someday

She’s left, and this is cut

《kill sarah》只有简单的钢琴和女声的喃喃自语,和众多INDIA一样,有更加自我的和自省的色彩。

歌词:

I want to cry but no tears

I also lost my smiles

Like the wind goes by

Every single person who came who left

And I realized there’s nothing changed after anything

In the real world all I can take all I can hold is me

I want to cry but no tears

I also lost my smiles

Like the wind goes by

Every single person who came who left

So I realized what people have said may never be

In the messy place even myself even myself got lost

………..my tears

………..my smiles

………..my heart

………..myself

《Angel Eyes》写的是一个天使彷徨而失落的情绪。有着强裂的迷幻氛围和丰富层次感的音色。女声也十分飘渺迷离。

歌词:

I see you just landed,

From somewhere called heaven

You are trying to open

Open your angle eyes

Close~

Close~

Don’t look around the wreckage

Close~

Close~

You wouldn’t want to see

You opened your eyes

And opened your mouth without voice

You are trying to open

Open your angle wings

Close~

Close~

It is not the time yet to fly

Close~

Close~

Wait until the night

I am not another passenger in your life

this

就是AdapterListener对象本身

frm.addWindowListener(this)

的意思就是把AdapterListener加入到侦听器中


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/11362151.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-15
下一篇 2023-05-15

发表评论

登录后才能评论

评论列表(0条)

保存